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

fix #214: AttributeDict does not support hasattr #269

Conversation

jandom
Copy link
Collaborator

@jandom jandom commented Nov 10, 2023

as per title

Copy link

codecov bot commented Nov 10, 2023

Codecov Report

Merging #269 (cff4979) into main (6158f74) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #269      +/-   ##
==========================================
+ Coverage   69.18%   69.20%   +0.02%     
==========================================
  Files          22       22              
  Lines        3946     3949       +3     
  Branches      715      715              
==========================================
+ Hits         2730     2733       +3     
  Misses       1036     1036              
  Partials      180      180              
Files Coverage Δ
gromacs/utilities.py 75.78% <100.00%> (+0.20%) ⬆️

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

Copy link
Member

@orbeckst orbeckst left a comment

Choose a reason for hiding this comment

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

Thanks, just add an entry to CHANGES please.

(No idea why codecov doesn't see this one line covered that actually raises the AttributeError. But your tests seem to cover what's needed so I am ok with it.)

@@ -52,6 +52,11 @@ def test_dict_set(self):
self.d["gargl"] = "blaster"
assert self.d["gargl"] == "blaster"

def test_dict_hasttr(self):
Copy link
Member

Choose a reason for hiding this comment

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

:-)

Suggested change
def test_dict_hasttr(self):
def test_dict_hasattr(self):

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good catch!

@jandom jandom requested a review from orbeckst November 11, 2023 08:52
@orbeckst orbeckst merged commit 50591ba into Becksteinlab:main Nov 11, 2023
15 checks passed
@orbeckst
Copy link
Member

cheers!

@jandom jandom deleted the jandom/fix/210-attribute-dict-doesnt-support-hasattr branch November 11, 2023 15:40
@jandom
Copy link
Collaborator Author

jandom commented Nov 11, 2023

Thanks for the speedy merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AttributeDict does not support hasattr()
2 participants