I am testing my code with pytest --cov but one of my modules gets 0% coverage.
The module has one class declaration as such:
class DataBaseMaker:
@staticmethod
def create_database():
conn = sqlite3.connect("database.db")
def __init__(self):
self.foo = 'bar'
The test does the following:
def test_create_database():
DataBaseMaker.create_database()
assert Path("database.db").is_file()
Test coverage for this is 0% - what am I doing wrong here?