Skip to content

Commit

Permalink
Remove repr full checks (#38)
Browse files Browse the repository at this point in the history
* Remove repr full checks

* Badges and codecov on merge

* Fix README
  • Loading branch information
IAlibay authored Feb 6, 2025
1 parent 2af7007 commit 0924033
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,10 @@ jobs:
- name: codecov-pr
if: ${{ github.repository == 'OpenFreeEnergy/pontibus'
&& github.event_name == 'pull_request' }}
uses: codecov/codecov-action@v4
&& github.event_name != 'schedule' }}
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.xml
fail_ci_if_error: False
verbose: True
flags: fast-tests
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# pontibus
Experimental OpenFE Protocols for Force Field Evaluation
[![Logo](https://img.shields.io/badge/OSMF-OpenFreeEnergy-%23002f4a)](https://openfree.energy/)
[![CI](https://github.com/OpenFreeEnergy/pontibus/actions/workflows/ci.yaml/badge.svg)](https://github.com/OpenFreeEnergy/pontibus/actions/workflows/ci.yaml)
[![Documentation](https://readthedocs.org/projects/pontibus/badge/?version=latest)](https://pontibus.readthedocs.io/en/latest/?badge=latest)
[![codecov](https://codecov.io/gh/OpenFreeEnergy/pontibus/graph/badge.svg?token=Lq4c3g9plQ)](https://codecov.io/gh/OpenFreeEnergy/pontibus)


!!WARNING!! This code is experimental and subject to change !!WARNING!!

Experimental OpenFE Protocols for Force Field Evaluation
22 changes: 18 additions & 4 deletions src/pontibus/tests/protocols/solvation/test_tokenization.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,20 @@ def protocol_result(afe_solv_transformation_json):

class TestProtocol(GufeTokenizableTestsMixin):
cls = ASFEProtocol
key = "ASFEProtocol-6d821918a2d558cda0c5bfa7d6d5bace"
repr = f"<{key}>"
key = None
repr = "ASFEProtocol-"

@pytest.fixture()
def instance(self, protocol):
return protocol

def test_repr(self, instance):
"""
Overwrites the base `test_repr` call.
"""
assert isinstance(repr(instance), str)
assert self.repr in repr(instance)


class TestSolventUnit(GufeTokenizableTestsMixin):
cls = ASFESolventUnit
Expand Down Expand Up @@ -111,9 +118,16 @@ def test_repr(self, instance):

class TestProtocolResult(GufeTokenizableTestsMixin):
cls = ASFEProtocolResult
key = "ASFEProtocolResult-e711f21656c3795ed9d545c326ec717a"
repr = f"<{key}>"
key = None
repr = "ASFEProtocolResult-"

@pytest.fixture()
def instance(self, protocol_result):
return protocol_result

def test_repr(self, instance):
"""
Overwrites the base `test_repr` call.
"""
assert isinstance(repr(instance), str)
assert self.repr in repr(instance)

0 comments on commit 0924033

Please sign in to comment.