Resolve broken test in appveyor

This commit is contained in:
Adam Hopkins 2020-10-24 23:03:25 +03:00
parent 5928c50057
commit fc18f86964

View File

@ -10,7 +10,7 @@ from sanic.utils import load_module_from_file_location
@pytest.fixture
def loaded_module_from_file_location():
return load_module_from_file_location(
str(Path(__file__).parent / "static/app_test_config.py")
str(Path(__file__).parent / "static" / "app_test_config.py")
)
@ -20,9 +20,7 @@ def test_load_module_from_file_location(loaded_module_from_file_location):
@pytest.mark.dependency(depends=["test_load_module_from_file_location"])
def test_loaded_module_from_file_location_name(
loaded_module_from_file_location,
):
def test_loaded_module_from_file_location_name(loaded_module_from_file_location,):
assert loaded_module_from_file_location.__name__ == "app_test_config"