mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 05:54:19 +01:00
@@ -1,4 +1,4 @@
|
|||||||
1.1.0 / TBD
|
1.1.0 / 2017-12-22
|
||||||
==================
|
==================
|
||||||
|
|
||||||
**Themes**
|
**Themes**
|
||||||
|
|||||||
@@ -150,6 +150,9 @@ def create_app(config='CTFd.config.Config'):
|
|||||||
else:
|
else:
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
|
if not version:
|
||||||
|
utils.set_config('ctf_version', __version__)
|
||||||
|
|
||||||
if not utils.get_config('ctf_theme'):
|
if not utils.get_config('ctf_theme'):
|
||||||
utils.set_config('ctf_theme', 'core')
|
utils.set_config('ctf_theme', 'core')
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,14 @@ import requests
|
|||||||
import six
|
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():
|
def test_get_config_and_set_config():
|
||||||
"""Does get_config and set_config work properly"""
|
"""Does get_config and set_config work properly"""
|
||||||
app = create_ctfd()
|
app = create_ctfd()
|
||||||
|
|||||||
Reference in New Issue
Block a user