Skip to content

Commit

Permalink
fix failures
Browse files Browse the repository at this point in the history
  • Loading branch information
cbouy committed Jun 25, 2024
1 parent 6b49f0d commit cb39e2b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion prolif/plotting/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
from prolif.utils import requires

try:
from IPython.display import HTML, Javascript, display
from IPython.display import Javascript, display
except ModuleNotFoundError:
pass
else:
Expand Down
8 changes: 4 additions & 4 deletions tests/plotting/test_complex3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ def plot_3d(self, fp_mols):

def test_integration_display_single(self, plot_3d):
view = plot_3d.display(display_all=False)
html = view._make_html()
html = view._view._make_html()
assert "Hydrophobic" in html

def test_integration_display_all(self, plot_3d):
view = plot_3d.display(display_all=True)
html = view._make_html()
html = view._view._make_html()
assert "Hydrophobic" in html

def test_integration_compare(self, plot_3d):
view = plot_3d.compare(plot_3d)
html = view._make_html()
html = view._view._make_html()
assert "Hydrophobic" in html

def test_from_fingerprint_raises_not_executed(self, ligand_mol, protein_mol):
Expand All @@ -66,5 +66,5 @@ def test_from_fingerprint_raises_not_executed(self, ligand_mol, protein_mol):
def test_fp_plot_3d(self, fp_mols):
fp, lig_mol, prot_mol = fp_mols
view = fp.plot_3d(lig_mol, prot_mol, frame=0, display_all=fp.count)
html = view._make_html()
html = view._view._make_html()
assert "Hydrophobic" in html
4 changes: 2 additions & 2 deletions tests/plotting/test_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,5 @@ def test_from_fingerprint_raises_not_executed(self, ligand_mol):

def test_fp_plot_lignetwork(self, fp_mol):
fp, lig_mol = fp_mol
html = fp.plot_lignetwork(lig_mol, kind="frame", frame=0, display_all=fp.count)
assert "<iframe" in html.data
view = fp.plot_lignetwork(lig_mol, kind="frame", frame=0, display_all=fp.count)
assert "<iframe" in view._iframe

0 comments on commit cb39e2b

Please sign in to comment.