Skip to content
Snippets Groups Projects
Commit c53aec51 authored by Jenkins for Software Heritage's avatar Jenkins for Software Heritage
Browse files

Update upstream source from tag 'debian/upstream/0.3.1'

Update to upstream version '0.3.1'
with Debian dir d4baa25745a71a894d9b8e6fbb94b3a055167233
parents af16aa36 f42a299d
No related branches found
No related tags found
No related merge requests found
Metadata-Version: 2.1
Name: swh.vault
Version: 0.3.0
Version: 0.3.1
Summary: Software Heritage vault
Home-page: https://forge.softwareheritage.org/diffusion/DVAU/
Author: Software Heritage developers
......
Metadata-Version: 2.1
Name: swh.vault
Version: 0.3.0
Version: 0.3.1
Summary: Software Heritage vault
Home-page: https://forge.softwareheritage.org/diffusion/DVAU/
Author: Software Heritage developers
......
......@@ -36,27 +36,23 @@ def test_make_app_from_file_does_not_exist(tmp_path):
def test_make_app_from_env_variable(swh_vault_config_file):
"""Instantiation of the server should happen once (through environment variable)
"""Server initialization happens through env variable when no path is provided
"""
app0 = make_app_from_configfile()
assert app0 is not None
app1 = make_app_from_configfile()
assert app1 == app0
app = make_app_from_configfile()
assert app is not None
def test_make_app_from_file(swh_local_vault_config, tmp_path):
"""Instantiation of the server should happen once (through environment variable)
"""Server initialization happens trough path if provided
"""
conf_path = os.path.join(str(tmp_path), "vault-server.yml")
with open(conf_path, "w") as f:
f.write(yaml.dump(swh_local_vault_config))
app0 = make_app_from_configfile(conf_path)
assert app0 is not None
app1 = make_app_from_configfile(conf_path)
assert app1 == app0
app = make_app_from_configfile(conf_path)
assert app is not None
@pytest.fixture
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment