Skip to content

Commit

Permalink
platform agnostic tempdir fixes #791
Browse files Browse the repository at this point in the history
  • Loading branch information
vepkenez committed Feb 20, 2019
1 parent bd77bf5 commit d31e86b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/config/test_ursula_config.py
@@ -1,3 +1,4 @@
import tempfile
from constant_sorrow.constants import NO_KEYRING_ATTACHED, CERTIFICATE_NOT_SAVED
from nucypher.characters.lawful import Ursula
from nucypher.config.characters import UrsulaConfiguration
Expand Down Expand Up @@ -25,7 +26,7 @@ def test_ursula_development_configuration(federated_only=True):
# A Temporary Ursula
port = ursula_one.rest_information()[0].port
assert port == UrsulaConfiguration.DEFAULT_DEVELOPMENT_REST_PORT
assert '/tmp' in ursula_one.datastore.engine.url.database
assert tempfile.gettempdir() in ursula_one.datastore.engine.url.database
assert ursula_one.certificate_filepath is CERTIFICATE_NOT_SAVED
assert UrsulaConfiguration.TEMP_CONFIGURATION_DIR_PREFIX in ursula_one.keyring_dir
assert isinstance(ursula_one.node_storage, ForgetfulNodeStorage)
Expand Down

0 comments on commit d31e86b

Please sign in to comment.