From d1536d302848dca50aa49187efc767d20a1df738 Mon Sep 17 00:00:00 2001 From: Mohammad Twin Date: Tue, 19 Dec 2023 14:37:16 +0400 Subject: [PATCH] Feat: tests were updated based on best structure --- dags/github/tests/units/test_labels_storage.py | 2 +- docker-entrypoint.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/dags/github/tests/units/test_labels_storage.py b/dags/github/tests/units/test_labels_storage.py index 922cce36..29800965 100644 --- a/dags/github/tests/units/test_labels_storage.py +++ b/dags/github/tests/units/test_labels_storage.py @@ -1,6 +1,6 @@ import unittest -from neo4j_storage import save_label_to_neo4j +from github.neo4j_storage import save_label_to_neo4j class TestSaveLabelToNeo4j(unittest.TestCase): diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index f0ae4e87..e95edd19 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,3 +1,9 @@ #!/usr/bin/env bash +echo "chang dir to dags" +cd dags || exit + python3 -m coverage run --omit=tests/* -m pytest . + +cp .coverage ../.coverage +cd .. || exit python3 -m coverage lcov -i -o coverage/lcov.info \ No newline at end of file