From 733de9a3da7e2e65d82f5d3b414b8c9bd10aa294 Mon Sep 17 00:00:00 2001 From: Periklis_ts Date: Tue, 4 Jun 2024 16:56:03 +0300 Subject: [PATCH] fix: Skipped all tests from jaqpotpy_test.py The reason is that they refer to the old system. These need total refactoring based on the new API --- jaqpotpy/jaqpotpy_tests/jaqpotpy_test.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/jaqpotpy/jaqpotpy_tests/jaqpotpy_test.py b/jaqpotpy/jaqpotpy_tests/jaqpotpy_test.py index a1b284fc..55f71bd9 100644 --- a/jaqpotpy/jaqpotpy_tests/jaqpotpy_test.py +++ b/jaqpotpy/jaqpotpy_tests/jaqpotpy_test.py @@ -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)