Skip to content

Add SPEC_TEST_READY env var#23

Merged
jayrbolton merged 2 commits intodevelopfrom
spec_test_env_var
Aug 28, 2020
Merged

Add SPEC_TEST_READY env var#23
jayrbolton merged 2 commits intodevelopfrom
spec_test_env_var

Conversation

@ialarmedalien
Copy link
Copy Markdown
Collaborator

Add an environment variable that indicates when specs from the /app/spec directory (i.e. whatever is in spec when the docker image is created) have been loaded into ArangoDB. This ensures that all the tests in spec/, relation_engine_server/, and importers/ can be run without needing to be in any special order. The tests in client_src are (still) a special case as they need a certain PYTHONPATH env var to be set.

  • I updated the README.md docs to reflect this change. - N/A
  • This is not a breaking API change OR

…ar is not present and the tests require the full specs, they will be loaded.
Base automatically changed from parser_updates to develop August 28, 2020 20:36
with modified_environ(RES_ROOT_DATA_PATH=os.path.join(_TEST_DIR, 'djornl', 'test_data')):
parser = DJORNL_Parser()
parser.load_data()
self.assertEqual(True, parser.load_data())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be assertTrue(parser.load_data())

@jayrbolton jayrbolton merged commit cd9c48d into develop Aug 28, 2020
@jayrbolton jayrbolton deleted the spec_test_env_var branch August 28, 2020 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants