chore(data): use prod data for test_all_instances, and centralize config for data directory#452
Conversation
| await test.check_result() | ||
|
|
||
|
|
||
| @pytest.mark.asyncio |
There was a problem hiding this comment.
note: moved to tests/api/test_cloud_e2e.py
1dd49aa to
aeab488
Compare
…fig for data directory
aeab488 to
3839e84
Compare
|
Hello @Shillaker , I took a look at the PR, it looks good to me (althought i did not run it on my env). I thought it would be convenient to use Env var to specify data_dir, i saw you had not kept that, maybe bc it added a dependency. |
|
Ok great, thanks! Yes I should have been clearer on why I didn't adopt the env-var change. I think it's a good idea, but currently we have config stored in two YAML files, and adding env vars means we then have two methods of configuration. Instead, I propose that we move all config to using |
|
There will be some small conflicts between this PR and #464, but I will manage them at merge time once they are both approved. |
Context
I have modified the work of @ju3ouz4n in #395 to test all cloud instances on the "prod" data. This should guarantee that we no longer have instances in the API that cause errors.
This is part of the solution suggested for #390.
Summary
boaviztapi/__init__.pydata_dirfrom the test-specific modulemake testa lot quicker 🏃Changes
tests/conftest.pywith--rune2epytest option to run E2E tests separatelytest_all_instancestotests/api/test_cloud_e2e.py), and marked ase2edata_dirboaviztapi/__init__.py- use test data only if running tests, and--rune2enot specified, otherwise use prod data (i.e. for normal operation, and E2E tests)