File tree Expand file tree Collapse file tree 4 files changed +60
-0
lines changed
Expand file tree Collapse file tree 4 files changed +60
-0
lines changed Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments