Skip to content

Commit

Permalink
[FIX CONTINUOUS INTEGRATION]
Browse files Browse the repository at this point in the history
  • Loading branch information
LucianaMartins26 committed Nov 11, 2024
1 parent 5b2806b commit 5b3582a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions tests/integration_tests/test_dfa.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

class TestDFA(TestCase):

@unittest.skip("Skipping this test in CI")
def setUp(self) -> None:
self.model_id = 'MODEL1507180028'
self.dataset_id = 'DielModel'
Expand All @@ -26,7 +25,7 @@ def setUp(self) -> None:
'results_troppo', self.dataset_id,
'reconstructed_models', 'Diel_Model.xml'))

@unittest.skip("Skipping this test in CI")
@unittest.skipIf(os.getenv('CI') == 'true', "Skipping this test in CI environment")
def test_sampling(self) -> None:
day_sampling, night_sampling = self.dfa.sampling(thinning=100, n_samples=1000)

Expand Down Expand Up @@ -61,7 +60,7 @@ def test_sampling(self) -> None:
expected_file = os.path.join(self.results_folder, '%s_sampling.csv' % modelname)
self.assertTrue(os.path.exists(expected_file))

@unittest.skip("Skipping this test in CI")
@unittest.skipIf(os.getenv('CI') == 'true', "Skipping this test in CI environment")
def test_ktest(self) -> None:

self.dfa.sampling()
Expand All @@ -82,7 +81,7 @@ def test_ktest(self) -> None:
expected_columns = ['Reaction', 'Pvalue', 'Padj', 'Reject', 'FC']
self.assertListEqual(list(result_df.columns), expected_columns)

@unittest.skip
@unittest.skipIf(os.getenv('CI') == 'true', "Skipping this test in CI environment")
def test_pathways(self) -> None:

self.dfa.sampling()
Expand Down
4 changes: 2 additions & 2 deletions tests/integration_tests/test_dfa_tomato.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def setUp(self) -> None:
self.dataset_id, 'reconstructed_models',
'Tomato_Diel_Model.xml'))

@unittest.skip("Skipping this test in CI")
@unittest.skipIf(os.getenv('CI') == 'true', "Skipping this test in CI environment")
def test_sampling(self) -> None:
day_sampling, night_sampling = self.dfa.sampling(thinning=100, n_samples=1000)

Expand Down Expand Up @@ -59,7 +59,7 @@ def test_sampling(self) -> None:
expected_file = os.path.join(self.results_folder, '%s_sampling.csv' % modelname)
self.assertTrue(os.path.exists(expected_file))

@unittest.skip("Skipping this test in CI")
@unittest.skipIf(os.getenv('CI') == 'true', "Skipping this test in CI environment")
def test_ktest(self) -> None:

self.dfa.sampling()
Expand Down

0 comments on commit 5b3582a

Please sign in to comment.