Skip to content

Commit 89c6244

Browse files
Merge pull request #59 from wainuiomata/fix-tests
fix tests directory shouldn't have init.py
2 parents a05af8a + fa05440 commit 89c6244

File tree

7 files changed

+12
-6
lines changed

7 files changed

+12
-6
lines changed

.github/workflows/test-worker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
python -m poetry self add poetry-plugin-export
5555
python -m poetry export -f requirements.txt --output requirements.txt
5656
python -m pip install -r requirements.txt
57+
python -m pip install .
5758
5859
- name: Test with pytest
5960
run: |

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ keywords:
3232
license: BSD-3-Clause
3333
message: If you use this software, please cite it using these metadata.
3434
repository-code: https://github.com/python-thread/thread
35-
reposistory-artifact: https://pypi.org/project/thread
35+
repository-artifact: https://pypi.org/project/thread
3636
title: thread
3737
type: software
3838
version: 1.0.0

tests/__init__.py

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

tests/test_algorithm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import random
2-
from src.thread.utils import algorithm
2+
3+
from thread.utils import algorithm
34

45

56
def test_chunking_1():

tests/test_decorator.py

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

45

56
# >>>>>>>>>> Dummy Functions <<<<<<<<<< #

tests/test_parallelprocessing.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import time
2+
23
import pytest
3-
from src.thread import ParallelProcessing, exceptions
4+
5+
from thread import ParallelProcessing, exceptions
46

57

68
# >>>>>>>>>> Dummy Functions <<<<<<<<<< #

tests/test_thread.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import time
2+
23
import pytest
3-
from src.thread import Thread, exceptions
4+
5+
from thread import Thread, exceptions
46

57

68
# >>>>>>>>>> Dummy Functions <<<<<<<<<< #

0 commit comments

Comments
 (0)