Skip to content

Commit 0af8777

Browse files
Merge pull request #80 from python-thread/chore/update-tests
Update tests Unreverts #59 Reverts #61 Co-authored-by: Rob van der Linde <robvdl@gmail.com>
2 parents 504155f + 2d963fd commit 0af8777

File tree

9 files changed

+8
-12
lines changed

9 files changed

+8
-12
lines changed

.github/workflows/test-worker.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,11 @@ jobs:
5151
set -xe
5252
python -m pip install poetry coverage pytest
5353
python -m poetry install
54-
python -m poetry self add poetry-plugin-export
55-
python -m poetry export -f requirements.txt --output requirements.txt
56-
python -m pip install -r requirements.txt
5754
5855
- name: Test with pytest
5956
run: |
6057
set -xe
61-
python -m pytest -sv
58+
python -m poetry run pytest -sv
6259
6360
check:
6461
if: always()

tests/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
from src.thread import Settings
1+
from thread import Settings
22

33
Settings.set_verbosity('quiet')

tests/test_algorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import random
22
from typing import Generator
33

4-
from src.thread.utils import algorithm
4+
from thread.utils import algorithm
55

66

77
def test_type():

tests/test_concurrentprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import time
22
import pytest
3-
from src.thread import ConcurrentProcessing, exceptions
3+
from thread import ConcurrentProcessing, exceptions
44

55

66
# >>>>>>>>>> Dummy Functions <<<<<<<<<< #

tests/test_dataframe_compatibility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import typing
22
import pytest
3-
from src.thread import ConcurrentProcessing
3+
from thread import ConcurrentProcessing
44

55

66
class DummyLengthOnly:

tests/test_decorator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import time
2-
from src.thread import threaded, processor
2+
from thread import threaded, processor
33

44

55
# >>>>>>>>>> Dummy Functions <<<<<<<<<< #

tests/test_thread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import time
22
import pytest
3-
from src.thread import Thread, exceptions
3+
from thread import Thread, exceptions
44

55

66
# >>>>>>>>>> Dummy Functions <<<<<<<<<< #

tests/test_verbosity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import pytest
2-
from src.thread.utils.config import Verbosity
2+
from thread.utils.config import Verbosity
33

44

55
# >>>>>>>>>> General Use <<<<<<<<<< #

0 commit comments

Comments
 (0)