mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 05:54:19 +01:00
Adopting a challenge type layout from deckar01 (#399)
* Adopting a challenge type layout from deckar01 * Move standard challenge modals into the plugin * Migration to change challenge type id to a string * Travis testing now builds with MySQL, SQLite, and Postgres * Rework get_standings to use the row ID instead of the saved time because of differences in database time precision
This commit is contained in:
@@ -309,6 +309,7 @@ def test_register_plugin_script():
|
||||
output = r.get_data(as_text=True)
|
||||
assert '/fake/script/path.js' in output
|
||||
assert 'http://ctfd.io/fake/script/path.js' in output
|
||||
destroy_ctfd(app)
|
||||
|
||||
|
||||
def test_register_plugin_stylesheet():
|
||||
@@ -322,3 +323,4 @@ def test_register_plugin_stylesheet():
|
||||
output = r.get_data(as_text=True)
|
||||
assert '/fake/stylesheet/path.css' in output
|
||||
assert 'http://ctfd.io/fake/stylesheet/path.css' in output
|
||||
destroy_ctfd(app)
|
||||
|
||||
Reference in New Issue
Block a user