-
Notifications
You must be signed in to change notification settings - Fork 15
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
conflict between unit tests #3
Comments
Are you clearing the output tables as part of the text fixture before The process should be:
Thanks Bora On 10/20/2014 4:07 PM, David M. Lorenzetti wrote:
Help us find a cure for canine cancer. |
What I found is that when py.test is run directly the database is not setup and cleared correctly. To fix that, I run it through openeis which, for each test, sets up a temporary database in memory and inserts the fixtures. Try running the tests using I also found that to pass files and certain options to pytest, it must be done after a -- option, like so: Brandon |
Running -Dave |
There is a conflict between the unit tests. Running each test individually, they all pass. When run all at once, only the first one passes.
The conflict may relate to duplicate names on the output tables.
The following steps reproduce the problem, on both Mac and Windows machines, running in branch "1.x" (use changeset 7c57c07 for reference):
(1) Verify that the first three unit tests work when run individually:
(2) Verify that all unit tests after the first (daily_summary) fail when run all at once:
(3) Remove or rename the first unit test, so that it will not execute:
(4) Verify that what used to be the second unit test (energy_signature) now runs, while all else fail:
(5) Put things back to rights:
The failures from lines like the following (this one from energy_signature.py):
self.out.insert_row(LOAD_VS_OAT_TABLE_NAME, {
"oat": x['oat'][0],
"load": x['load'][0]
})
with an error message like the following:
E TypeError: 'load' is an invalid keyword argument for this function
Note that some later tests fail for other reasons. We are aware of, and working on, those applications.
The text was updated successfully, but these errors were encountered: