Skip to content

Commit c425df9

Browse files
committed
Working on Actions and Testing
1 parent 0ca9cfb commit c425df9

2 files changed

Lines changed: 26 additions & 19 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,27 +35,27 @@ jobs:
3535
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3636
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3737
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
38-
- name: Test connection IPv4
39-
run: |
40-
pytest test/test_connection.py::Test_Connections_for_IPv4 -v
41-
- name: Test connection IPv6
42-
run: |
43-
pytest test/test_connection.py::Test_Connections_for_IPv6 -v
44-
- name: Test discovery
45-
run: |
46-
pytest test/test_discovery.py -v
47-
- name: Test functions
48-
run: |
49-
pytest test/test_functions.py -v
50-
- name: Test subscription
51-
run: |
52-
pytest test/test_subscription.py -v
38+
# - name: Test connection IPv4
39+
# run: |
40+
# pytest test/test_connection.py::Test_Connections_for_IPv4 -v
41+
# - name: Test connection IPv6
42+
# run: |
43+
# pytest test/test_connection.py::Test_Connections_for_IPv6 -v
44+
# - name: Test discovery
45+
# run: |
46+
# pytest test/test_discovery.py -v
47+
# - name: Test functions
48+
# run: |
49+
# pytest test/test_functions.py -v
50+
# - name: Test subscription
51+
# run: |
52+
# pytest test/test_subscription.py -v
5353
# - name: Test remote
5454
# run: |
5555
# pytest test/test_remote.py -v
56-
# - name: Test streamer
57-
# run: |
58-
# pytest test/test_streamer.py -v
56+
- name: Test streamer
57+
run: |
58+
pytest test/test_streamer.py -v
5959
# - name: Test celery
6060
# run: |
6161
# pytest test/test_celery.py -v

test/test_streamer.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,14 @@ async def asyncTearDown(self):
3737

3838
@classmethod
3939
def setUpClass(cls):
40-
subprocess.run(["python", "scripts/streamer_root.py"], check=True)
40+
path = os.path.abspath(
41+
os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
42+
)
43+
cls.streamer_process = subprocess.Popen(
44+
["python", f"{path}/chaski/scripts/streamer_root.py"],
45+
stdout=subprocess.PIPE,
46+
stderr=subprocess.PIPE,
47+
)
4148
time.sleep(1)
4249

4350
@pytest.mark.asyncio

0 commit comments

Comments
 (0)