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

Add numpy equality check for unit tests #1133

Merged
merged 3 commits into from
Jun 15, 2023
Merged

Add numpy equality check for unit tests #1133

merged 3 commits into from
Jun 15, 2023

Conversation

pmrv
Copy link
Contributor

@pmrv pmrv commented Jun 15, 2023

With this one can do self.assertEqual() on arrays directly. Downside side that really both values have to be arrays, so I had to add some conversions.

Because this relies on setUp I had to add a bunch of super calls.

@pmrv pmrv added the enhancement New feature or request label Jun 15, 2023
@pmrv pmrv requested a review from niklassiemer June 15, 2023 15:47
@pmrv pmrv added the format_black reformat the code using the black standard label Jun 15, 2023
Copy link
Member

@niklassiemer niklassiemer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@@ -13,6 +13,7 @@
class TestProjectData(PyironTestCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am happy to include this here, however, this would is not required for the functionality, is it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that was just because I was at it already anyway.

@niklassiemer niklassiemer added integration Start the integration tests with pyiron_atomistics/contrib for this PR format_black reformat the code using the black standard and removed integration Start the integration tests with pyiron_atomistics/contrib for this PR format_black reformat the code using the black standard labels Jun 15, 2023
@niklassiemer niklassiemer merged commit b6bf320 into main Jun 15, 2023
28 of 31 checks passed
@delete-merged-branch delete-merged-branch bot deleted the error branch June 15, 2023 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request format_black reformat the code using the black standard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants