Skip to content

Commit 9ee4eae

Browse files
committed
more minor changes
1 parent 6a84a9a commit 9ee4eae

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

fence/jwt/keys.py

-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@
1111
return default private key for the app
1212
"""
1313

14-
import datetime
1514
import os
1615

17-
import base64
1816
from cryptography.hazmat.backends import default_backend
1917
from cryptography.hazmat.primitives import serialization
2018
import dateutil.parser

migrations/env.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727

2828
target_metadata = Base.metadata
2929

30+
test_config_path = os.environ.get("TEST_CONFIG_PATH")
3031
fence_config.load(
31-
config_path=os.environ.get("TEST_CONFIG_PATH"), # for tests
32+
config_path=test_config_path, # for tests
3233
search_folders=CONFIG_SEARCH_FOLDERS, # for deployments
3334
)
3435
config.set_main_option("sqlalchemy.url", str(fence_config["DB"]))

0 commit comments

Comments
 (0)