Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wmelder committed Jan 10, 2024
1 parent 114d245 commit 24418d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
app = Flask(__name__)

# merge config with app config
app.config.update(cfg)

app.config.update(
cfg
) # note: works als long as no existing nested config dict needs to be updated
app.config["CORS_HEADERS"] = "Content-Type"
app.config["RESTPLUS_VALIDATE"] = False
app.config["GLOBAL_CACHE"] = {} # just put the cache in here
Expand Down
5 changes: 1 addition & 4 deletions src/tests/base_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,4 @@
# validate the config.yml
def test_settings_valid(application_settings):
config_valid, returned_error = validate_config(cfg)
if returned_error:
assert not config_valid
else:
assert config_valid
assert False if returned_error else config_valid

0 comments on commit 24418d7

Please sign in to comment.