-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
43 additions
and
42 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
Empty file.
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 |
---|---|---|
@@ -1,22 +1 @@ | ||
""" | ||
Common test support for dftatom. | ||
This single module should provide all the common functionality for abipy tests | ||
in a single location, so that test scripts can just import it and work right away. | ||
""" | ||
import sys | ||
|
||
from unittest import TestCase | ||
|
||
import numpy.testing.utils as nptu | ||
|
||
class DftAtomTest(TestCase): | ||
"""Extend TestCase with functions from numpy.testing.utils that support ndarrays.""" | ||
|
||
@staticmethod | ||
def assert_almost_equal(actual, desired, decimal=7, err_msg='', verbose=True): | ||
return nptu.assert_almost_equal(actual, desired, decimal, err_msg, verbose) | ||
|
||
@staticmethod | ||
def assert_equal(actual, desired, err_msg='', verbose=True): | ||
return nptu.assert_equal(actual, desired, err_msg=err_msg, verbose=verbose) | ||
from pseudo_dojo.testing import * |
File renamed without changes.
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,22 @@ | ||
""" | ||
Common test support for pseudo_dojo. | ||
This single module should provide all the common functionality for tests | ||
in a single location, so that test scripts can just import it and work right away. | ||
""" | ||
import sys | ||
|
||
from unittest import TestCase | ||
|
||
import numpy.testing.utils as nptu | ||
|
||
class DftAtomTest(TestCase): | ||
"""Extend TestCase with functions from numpy.testing.utils that support ndarrays.""" | ||
|
||
@staticmethod | ||
def assert_almost_equal(actual, desired, decimal=7, err_msg='', verbose=True): | ||
return nptu.assert_almost_equal(actual, desired, decimal, err_msg, verbose) | ||
|
||
@staticmethod | ||
def assert_equal(actual, desired, err_msg='', verbose=True): | ||
return nptu.assert_equal(actual, desired, err_msg=err_msg, verbose=verbose) |
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
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
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