Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Move tests directory outside of src #24

Merged
merged 1 commit into from
May 29, 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/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ jobs:
pip install pytest
- name: Test with pytest
run: |
cd src
pytest
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# pytest settings
[tool.pytest.ini_options]
pythonpath = "."
addopts = '-p no:warnings' # disable pytest warnings
2 changes: 1 addition & 1 deletion src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from retry_requests import retry
import requests
import pandas as pd
import helper
from src import helper


def get_coordinates(args):
Expand Down
4 changes: 2 additions & 2 deletions src/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"""

import json
import api
import art
from src import api
from src import art
import pandas as pd


Expand Down
File renamed without changes.
3 changes: 0 additions & 3 deletions src/tests/test_code.py → tests/test_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"""

import sys

sys.path.append("../src")

from unittest.mock import patch
import io
import time
Expand Down