Skip to content

Revert "fix tests directory shouldn't have init.py" #61

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/test-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ jobs:
python -m poetry self add poetry-plugin-export
python -m poetry export -f requirements.txt --output requirements.txt
python -m pip install -r requirements.txt
python -m pip install .

- name: Test with pytest
run: |
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ keywords:
license: BSD-3-Clause
message: If you use this software, please cite it using these metadata.
repository-code: https://github.com/python-thread/thread
repository-artifact: https://pypi.org/project/thread
reposistory-artifact: https://pypi.org/project/thread
title: thread
type: software
version: 1.0.0
Expand Down
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Need this file, else it can't import src.thread
3 changes: 1 addition & 2 deletions tests/test_algorithm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import random

from thread.utils import algorithm
from src.thread.utils import algorithm


def test_chunking_1():
Expand Down
3 changes: 1 addition & 2 deletions tests/test_decorator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import time

from thread import threaded, processor
from src.thread import threaded, processor


# >>>>>>>>>> Dummy Functions <<<<<<<<<< #
Expand Down
4 changes: 1 addition & 3 deletions tests/test_parallelprocessing.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import time

import pytest

from thread import ParallelProcessing, exceptions
from src.thread import ParallelProcessing, exceptions


# >>>>>>>>>> Dummy Functions <<<<<<<<<< #
Expand Down
4 changes: 1 addition & 3 deletions tests/test_thread.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import time

import pytest

from thread import Thread, exceptions
from src.thread import Thread, exceptions


# >>>>>>>>>> Dummy Functions <<<<<<<<<< #
Expand Down
Loading