From 4ac5bac6e8ed741dd2725d221d7702a2eba50c90 Mon Sep 17 00:00:00 2001
From: hbui <hong-phuc.bui@htwsaar.de>
Date: Tue, 23 Jul 2024 17:26:32 +0200
Subject: [PATCH] fix python automatically test discovery
---
num-int/tests/__init__.py | 0
num-int/Readme.md | 2 +-
num-int/tests/numint/ExpressionTest.py | 2 +-
num-int/tests/numint/riemann_sum_test.py | 0
stundenplan/Readme.md | 2 +-
num-int/tests/numint/__init__.py | 0
num-int/tests/numint/input_parser_test.py | 0
7 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/num-int/Readme.md b/num-int/Readme.md
index df3dab4..ac0e34d 100644
--- a/num-int/Readme.md
+++ b/num-int/Readme.md
@@ -13,7 +13,7 @@
## Run Unittest
```shell
-python3 -m unittest discover --pattern *test.py
+python3 -m unittest discover --pattern '*test.py'
```
## Run programm
diff --git a/num-int/test/__init__.py b/num-int/tests/__init__.py
similarity index 100%
rename from num-int/test/__init__.py
rename to num-int/tests/__init__.py
diff --git a/num-int/test/numint/ExpressionTest.py b/num-int/tests/numint/ExpressionTest.py
similarity index 95%
rename from num-int/test/numint/ExpressionTest.py
rename to num-int/tests/numint/ExpressionTest.py
index 2348948..7ced0e7 100644
--- a/num-int/test/numint/ExpressionTest.py
+++ b/num-int/tests/numint/ExpressionTest.py
@@ -4,7 +4,7 @@
class MyTestCase(unittest.TestCase):
"""
- test if the grammer file 'expression.lark' work
+ tests if the grammer file 'expression.lark' work
"""
def test_prio_product_exponent(self):
diff --git a/num-int/test/numint/__init__.py b/num-int/tests/numint/__init__.py
similarity index 100%
rename from num-int/test/numint/__init__.py
rename to num-int/tests/numint/__init__.py
diff --git a/num-int/test/numint/input_parser_test.py b/num-int/tests/numint/input_parser_test.py
similarity index 100%
rename from num-int/test/numint/input_parser_test.py
rename to num-int/tests/numint/input_parser_test.py
diff --git a/num-int/test/numint/riemann_sum_test.py b/num-int/tests/numint/riemann_sum_test.py
similarity index 100%
rename from num-int/test/numint/riemann_sum_test.py
rename to num-int/tests/numint/riemann_sum_test.py
diff --git a/stundenplan/Readme.md b/stundenplan/Readme.md
index 9fbf682..00ba398 100644
--- a/stundenplan/Readme.md
+++ b/stundenplan/Readme.md
@@ -17,5 +17,5 @@
## Run programm
```shell
-
+echo "TODO: to be done by student"
```
\ No newline at end of file
--
Gitblit v1.10.0