-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rename test_init to test_utils * Updates tests - Removes a lot of the sys.path.append's and instead supplies an __init__.py. * test_inits gets moved to .utils which is much more transparent and is not accessed by pytest - Replaces any use of repr with testing attributes using an assert_attributes function + a dictionary * Using a dictionary allows the possibility of reuse * But using a dictionary will elude many automatic refactoring tools - Ran a python formatter on the tests. I didn't see any linting parameters, so I just used my own defaults. - Added a conftest.py to do helicsCloseLibrary. There are few functions which still call close library to ensure that files are run. * Remove a few extraneous close library commands * Remove extra import os --------- Co-authored-by: Joseph McKinsey <[email protected]>
- Loading branch information
1 parent
e15e8f7
commit f678689
Showing
15 changed files
with
930 additions
and
738 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# -*- coding: utf-8 -*- | ||
import pytest | ||
import helics as h | ||
|
||
|
||
@pytest.fixture(autouse=True) | ||
def run_around_tests(): | ||
yield | ||
h.helicsCleanupLibrary() | ||
h.helicsCloseLibrary() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.