Guarantee ctf version (#538)

* Make sure ctf_version is set correctly
This commit is contained in:
Kevin Chung
2017-12-22 16:22:31 -05:00
committed by GitHub
parent 7e5e18fd6e
commit fa9cb2498b
3 changed files with 12 additions and 1 deletions

View File

@@ -17,6 +17,14 @@ import requests
import six
def test_ctf_version_is_set():
"""Does ctf_version get set correctly"""
app = create_ctfd()
with app.app_context():
assert get_config('ctf_version') == app.VERSION
destroy_ctfd(app)
def test_get_config_and_set_config():
"""Does get_config and set_config work properly"""
app = create_ctfd()