Skip to content

Commit

Permalink
Use test NLP Web config when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martinburchell committed May 6, 2023
1 parent c10e730 commit 33d3255
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions github_action_scripts/python_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ echo checking python for style and errors
flake8 --config=setup.cfg .
echo running tests
export CRATE_RUN_WITHOUT_LOCAL_SETTINGS=True
export CRATE_NLP_WEB_CONFIG=${GITHUB_WORKSPACE}/github_action_scripts/test_nlp_web_config.ini
pytest -v
36 changes: 36 additions & 0 deletions github_action_scripts/test_nlp_web_config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This is a "paste" configuration file for the CRATE NLPRP web server.

# =============================================================================
# The CRATE NLPRP server web application
# =============================================================================

[app:main]

use = egg:crate_anon#main
pyramid.reload_templates = true

nlp_webserver.secret = 60p1-SeYk-J2ySVQXOIk-vWVlwUwxMnmPp5rMzsyXNg=
sqlalchemy.url = mysql://user:password@localhost/dbname?charset=utf8

# Absolute path of users file
users_file =

# Absolute path of processors file - this must be a .py file in the correct
# format
processors_path =

# URLs for queueing
broker_url = amqp://localhost/
backend_url =

# Key for reversible encryption. Use 'crate_nlp_webserver_generate_encryption_key'.
encryption_key = UbTKIZ999GEeYCN2xyIsupunOPpIOar3ML1xsrNs5VM=

# =============================================================================
# The web server software
# =============================================================================

[server:main]

use = egg:waitress#main
listen = localhost:6543

0 comments on commit 33d3255

Please sign in to comment.