As your B31 is a 1946 model I would expect it to have a magdyno (magneto and dynamo in one unit)?
The magneto part of the magdyno supplies the ignition sparks, and works independently of, and is not connected to the electrical system (but the dynamo part should be).