Skip to content

Commit

Permalink
fix: Skipped all tests from jaqpotpy_test.py
Browse files Browse the repository at this point in the history
The reason is that they refer to the old system. These need total refactoring based on the new API
  • Loading branch information
periklis91 committed Jun 4, 2024
1 parent 6520025 commit 733de9a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions jaqpotpy/jaqpotpy_tests/jaqpotpy_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,34 @@

class TestModels(unittest.TestCase):

@unittest.skip("Tests need refactoring")
def test_login(self):
jaqpot = Jaqpot()
jaqpot.login("pantelispanka", "kapan2")
jaqpot.login("pantelispanka", "")

@unittest.skip("Tests need refactoring")
def test_fail_login(self):
jaqpot = Jaqpot()
jaqpot.login("pante", "asdf")

@unittest.skip("Tests need refactoring")
def test_get_model(self):
jaqpot = Jaqpot()
jaqpot.login("pantelispanka", "kapan2")
jaqpot.login("pantelispanka", "")
model = jaqpot.get_model_by_id("Yon4zUuavqY46Umu9AKp")

@unittest.skip("Tests need refactoring")
def test_load_mol_mod(self):
jaqpot = Jaqpot()
jaqpot.set_api_key("..TBKGvyRK8VbwCKYEd06tbpV-Z3VhiTTBwsKOkcB9nB-ZFM31J6nEYALqi-PYO7rPX4bHeRiC83dbMGs9_OdtsiApz_ayi8QLA006CvRkuaag4SXNQqiFQ")
model = MolecularModel().load_from_jaqpot(jaqpot, "id")

@unittest.skip("Tests need refactoring")
def test_predict(self):
data = {'LFG': [0.1, 0.2], 'EQP': [0.1, 0.2], 'NEQ': [0.1, 0.2], 'GAP': [0.1, 0.2]}
df = pd.DataFrame.from_dict(data)
jaqpot = Jaqpot()
jaqpot.login("pantelispanka", "kapan2")
jaqpot.login("pantelispanka", "")
df, predicts = jaqpot.predict(df, "Yon4zUuavqY46Umu9AKp")
print(df)
print(predicts)

0 comments on commit 733de9a

Please sign in to comment.