-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 2023-sep3-loosen-alg-test-tolerance
- Loading branch information
Showing
3 changed files
with
25 additions
and
2 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,23 @@ | ||
"""Graph standardization is not tested at this time, but should be tested in the future.""" | ||
""" | ||
At the moment, only a smoke-test is done for graph standardization, | ||
but the exact behaviour is not well-tested. | ||
These tests should be added in the future. | ||
""" | ||
|
||
import pytest | ||
|
||
from syntheseus.search.graph.and_or import AndOrGraph | ||
from syntheseus.search.graph.molset import MolSetGraph | ||
from syntheseus.search.graph.standardization import get_unique_node_andor_graph | ||
|
||
|
||
def test_smoke_andor(andor_graph_non_minimal: AndOrGraph): | ||
with pytest.warns(UserWarning): | ||
output = get_unique_node_andor_graph(andor_graph_non_minimal) | ||
|
||
assert len(output) == len(andor_graph_non_minimal) # no nodes deleted here | ||
|
||
|
||
def test_smoke_molset(molset_tree_non_minimal: MolSetGraph): | ||
with pytest.warns(UserWarning): | ||
get_unique_node_andor_graph(molset_tree_non_minimal) |