Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 08a1588

Browse files
Merge pull request #61 from python-thread/revert-59-fix-tests
Revert "fix tests directory shouldn't have init.py"
2 parents 89c6244 + de9be7f commit 08a1588

File tree

7 files changed

+6
-12
lines changed

7 files changed

+6
-12
lines changed

‎.github/workflows/test-worker.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ 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 .
5857
5958
- name: Test with pytest
6059
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-
repository-artifact: https://pypi.org/project/thread
35+
reposistory-artifact: https://pypi.org/project/thread
3636
title: thread
3737
type: software
3838
version: 1.0.0

‎tests/__init__.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Need this file, else it can't import src.thread

‎tests/test_algorithm.py‎

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

54

65
def test_chunking_1():

‎tests/test_decorator.py‎

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

54

65
# >>>>>>>>>> Dummy Functions <<<<<<<<<< #

‎tests/test_parallelprocessing.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import time
2-
32
import pytest
4-
5-
from thread import ParallelProcessing, exceptions
3+
from src.thread import ParallelProcessing, exceptions
64

75

86
# >>>>>>>>>> Dummy Functions <<<<<<<<<< #

‎tests/test_thread.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import time
2-
32
import pytest
4-
5-
from thread import Thread, exceptions
3+
from src.thread import Thread, exceptions
64

75

86
# >>>>>>>>>> Dummy Functions <<<<<<<<<< #

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /