-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Process: - unittest2pytest -n -w path/to/file - add `# pylint: disable=no-self-use` - replace `AiidaTestCase` with `@pytest.mark.usefixtures('clear_database_before_test_class')` - remove from `aiida.backends.testbase import AiidaTestCase` - change @unittest.skip -> @pytest.mark.skip, @unittest.skipIf -> @pytest.mark.skipif The were some issues where`assertAlmostEquals` had been used for strange cases Annoyingly there are some limitations, one being that the class fixture is called AFTER a `setup_class` method (see https://stackoverflow.com/questions/31484419/pytest-setup-class-after-fixture-initialization_) and also class methods don't accept fixtures. This makes it difficult to do a 1-to-1 replacement of any `setUpClass` methods used, and also replace the use of `self.computer`
- Loading branch information
1 parent
c07e3ef
commit 3361712
Showing
9 changed files
with
1,878 additions
and
1,886 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -124,3 +124,6 @@ def __float__(self): | |
|
||
def __int__(self): | ||
return int(self.value) | ||
|
||
def __abs__(self): | ||
return abs(self.value) |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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.