Skip to content

Commit 035cd23

Browse files
committed
➕ Add new test modules for testing issue about cannot get multiple file path under one specific directory.
1 parent e26a3b4 commit 035cd23

File tree

4 files changed

+60
-0
lines changed

4 files changed

+60
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import test_gh_workflow.sample
2+
import logging
3+
import pytest
4+
5+
6+
@pytest.fixture(scope="function")
7+
def get_hello_python() -> str:
8+
return test_gh_workflow.sample.hello_python()
9+
10+
11+
def test_sample(get_hello_python: str) -> None:
12+
logging.info("Start Unit test.")
13+
assert get_hello_python == "Hello Python", "The return value should be 'Hello Python'."
14+
logging.info("This is Unit test done.")
15+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import test_gh_workflow.sample
2+
import logging
3+
import pytest
4+
5+
6+
@pytest.fixture(scope="function")
7+
def get_hello_python() -> str:
8+
return test_gh_workflow.sample.hello_python()
9+
10+
11+
def test_sample(get_hello_python: str) -> None:
12+
logging.info("Start Unit test.")
13+
assert get_hello_python == "Hello Python", "The return value should be 'Hello Python'."
14+
logging.info("This is Unit test done.")
15+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import test_gh_workflow.sample
2+
import logging
3+
import pytest
4+
5+
6+
@pytest.fixture(scope="function")
7+
def get_hello_python() -> str:
8+
return test_gh_workflow.sample.hello_python()
9+
10+
11+
def test_sample(get_hello_python: str) -> None:
12+
logging.info("Start Unit test.")
13+
assert get_hello_python == "Hello Python", "The return value should be 'Hello Python'."
14+
logging.info("This is Unit test done.")
15+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import test_gh_workflow.sample
2+
import logging
3+
import pytest
4+
5+
6+
@pytest.fixture(scope="function")
7+
def get_hello_python() -> str:
8+
return test_gh_workflow.sample.hello_python()
9+
10+
11+
def test_sample(get_hello_python: str) -> None:
12+
logging.info("Start Unit test.")
13+
assert get_hello_python == "Hello Python", "The return value should be 'Hello Python'."
14+
logging.info("This is Unit test done.")
15+

0 commit comments

Comments
 (0)