Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
42a661c
commit 7dc4cd9
Showing
6 changed files
with
31 additions
and
21 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#! ../env/bin/python3 | ||
|
||
import application | ||
import pathlib | ||
|
||
|
||
class TestWebApplication: | ||
def setup_method(self): | ||
""" | ||
Creating a Flask app, and a bokeh resources path for each method of | ||
the class. | ||
""" | ||
self.app, self.bokeh_resources = application.config.create_app() | ||
|
||
|
||
def test_config(self): | ||
""" | ||
Tests if the config loads correctly. | ||
""" | ||
cwd = pathlib.Path.cwd() | ||
|
||
assert self.app.config['DEBUG'] == False | ||
assert self.app.import_name == 'application.config' | ||
assert self.app.template_folder == 'templates' | ||
assert self.app.static_folder == str(pathlib.Path(cwd, 'application', 'static')) | ||
assert self.bokeh_resources == str(pathlib.Path('application', 'static', 'bokeh_templates')) | ||
|
||
|
||
def test_index(self): | ||
return None | ||
|
This file was deleted.
Oops, something went wrong.