Skip to content
Snippets Groups Projects
Commit 50833bc7 authored by Mateusz Klimaszewski's avatar Mateusz Klimaszewski
Browse files

Fix conditional test skipping.

parent 17cc88ce
No related branches found
No related tags found
1 merge request!16Add gitlab CI configuration.
Pipeline #2233 failed
This commit is part of merge request !16. Comments created here will be created in the context of that merge request.
...@@ -9,7 +9,7 @@ from allennlp.commands import train ...@@ -9,7 +9,7 @@ from allennlp.commands import train
from allennlp.common import Params, util from allennlp.common import Params, util
@unittest.skipIf(os.getenv("CI_JOB_ID", False), "Skipping for CI test.") @unittest.skipIf(os.getenv("CI", False), "Skipping for CI test.")
class TrainingEndToEndTest(unittest.TestCase): class TrainingEndToEndTest(unittest.TestCase):
PROJECT_ROOT = (pathlib.Path(__file__).parent / "..").resolve() PROJECT_ROOT = (pathlib.Path(__file__).parent / "..").resolve()
MODULE_ROOT = PROJECT_ROOT / "combo" MODULE_ROOT = PROJECT_ROOT / "combo"
......
...@@ -6,7 +6,7 @@ import combo.data as data ...@@ -6,7 +6,7 @@ import combo.data as data
import combo.predict as predict import combo.predict as predict
@unittest.skipIf(os.getenv("CI_JOB_ID", False), "Skipping for CI test.") @unittest.skipIf(os.getenv("CI", False), "Skipping for CI test.")
class PredictionTest(unittest.TestCase): class PredictionTest(unittest.TestCase):
PROJECT_ROOT = (pathlib.Path(__file__).parent / "..").resolve() PROJECT_ROOT = (pathlib.Path(__file__).parent / "..").resolve()
MODULE_ROOT = PROJECT_ROOT / "combo" MODULE_ROOT = PROJECT_ROOT / "combo"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment