Skip to content
Snippets Groups Projects
Commit 8597ed21 authored by Erik Reid's avatar Erik Reid
Browse files

fixed test coverage

parent 6af921d4
Branches
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ setup(
'flask',
'flask-cors',
'stripe',
'requests',
],
include_package_data=True,
)
File moved
......@@ -8,8 +8,8 @@ import stripe_checkout
@pytest.fixture
def config_filename():
test_config_data = {
def test_config_data():
return {
'stripe': {
'api-key': 'api key xyz'
},
......@@ -19,6 +19,9 @@ def config_filename():
}
}
@pytest.fixture
def config_filename(test_config_data):
with tempfile.NamedTemporaryFile() as f:
f.write(json.dumps(test_config_data).encode('utf-8'))
f.flush()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment