Skip to content

Commit

Permalink
add pytest coverage library and add sample_index coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
bgunnar5 committed Dec 11, 2023
1 parent 38651f2 commit f10c896
Show file tree
Hide file tree
Showing 4 changed files with 508 additions and 170 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ flux.out
slurm*.out
docs/build/

# Tox files
# Test files
.tox/*
.coverage

# Jupyter
jupyter/.ipynb_checkpoints
Expand Down
2 changes: 1 addition & 1 deletion merlin/common/sample_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ def __setitem__(self, full_address, sub_tree):

# Replace if we already have something at this address.
if delete_me is not None:
self.children.__delitem__(full_address)
SampleIndex.check_valid_addresses_for_insertion(full_address, sub_tree)
self.children.__delitem__(full_address)
self.children[full_address] = sub_tree
return
raise KeyError
Expand Down
1 change: 1 addition & 0 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ dep-license
flake8
isort
pytest
pytest-cov
pylint
twine
sphinx>=2.0.0
Expand Down
Loading

0 comments on commit f10c896

Please sign in to comment.