diff --git a/Makefile b/Makefile index 67c244f..b76f67b 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,10 @@ install: ##@repo Installs needed prerequisites and software to develop in the SR @.python/bin/pip install -r src/requirements.txt @asdf reshim +run-tests: ##@repo Run tests + $(info ********** Running Tests **********) + @bash test/run_tests.sh -u + ############# Development Section ############# help: ##@misc Show this help. @echo $(MAKEFILE_LIST) diff --git a/src/test_checks.py b/src/test_checks.py index f6ef780..4c0b0da 100644 --- a/src/test_checks.py +++ b/src/test_checks.py @@ -16,6 +16,15 @@ def test_repo(self): def test_prerequisites(self): self.args = Args() + assert prerequisites(args=self.args) == True, "The --target_repo argument is not set." + self.args.target_repo = "" - self.assertRaises(RepoError, prerequisites(), args=self.args), "The --target_repo argument is not set." - \ No newline at end of file + with self.assertRaises(RepoError): + prerequisites(args=self.args) + + self.args.target_repo = None + with self.assertRaises(RepoError): + prerequisites(args=self.args) + + + \ No newline at end of file