Jonahstanley/acceptance tests unique database - #298
Conversation
There was a problem hiding this comment.
These lines need comments. Specifically, why are we dropping the database in one case (the content store) but dropping collections in the other (the module store)?
|
@JonahStanley the modulestore collection is not being cleared out after the last test is run. To verify: run the tests, then from mongo 4 collections are created by running rake test_acceptance_lms. |
These databases/collections are cleared after harvest
This might allow parallel features in the future
This is to allow acceptance tests to properly link and know the names of its other parts
Acceptance_static is used to prevent collect static from using a seed test.py had its seed removed due to redundancy
There was a problem hiding this comment.
Add in a comment explaining why we did this, so that we remember and other people know why too.
This explains why acceptance_static is used
There was a problem hiding this comment.
Explain why we need to do this. Something like that we want the same settings as acceptance.py except for the db or collection names, because otherwise any call to django-admin (including collectstatic) will create another uniquely named one.
|
👍 |
…-database Jonahstanley/acceptance tests unique database
…roficiency-avg ziafazal/api-fix-company-proficiency-avg: fix for incorrect average calculation
i18n 1.28
* Commits: Run coverage via Github Action
Suggested Reviewers: @jzoldak @wedaly
Acceptance tests now pull from their own database/collection
These are destroyed at the end of each scenario