Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the test suite use real data #5

Open
3 tasks
wd15 opened this issue Apr 5, 2015 · 0 comments
Open
3 tasks

Make the test suite use real data #5

wd15 opened this issue Apr 5, 2015 · 0 comments
Assignees

Comments

@wd15
Copy link
Member

wd15 commented Apr 5, 2015

  • upload large Sumatra JSON data and add it to the repository for permanent testing
  • make the test suite use the data and check its veracity
  • make dbhandle.py use the test suite mechanics to populate the database with the test data (independently from the test)
@wd15 wd15 self-assigned this Apr 5, 2015
wd15 added a commit to wd15/ddsm-db that referenced this issue Apr 10, 2015
wd15 added a commit to wd15/ddsm-db that referenced this issue Apr 16, 2015
Address data-driven-science#5

The DBHandler class works with two test cases. The dbhandle.py script
uses DBHandler for all its functions.

 * The tests in the test/ directory are broken.

 * There are still issues when the tests shutdown their own database
   instance. It is probably better to start the database and then test
   rather than allow the tests to start their own DB instances
wd15 added a commit to wd15/ddsm-db that referenced this issue Apr 20, 2015
Address data-driven-science#5

Currently the tests run 5 times. This is an issue with Flask testing
and nosetest working together. Each test class seems to rerun the
entire test suite.
wd15 added a commit to wd15/ddsm-db that referenced this issue Apr 22, 2015
Address data-driven-science#5

 - Use test/config.py for all test configuration.

 - Use Handler to run the database daemon.

 - Delete the database on tear down.

 - Use TestCase instead of LiveServerTestCase to avoid running the
   tests multiple times.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant