Skip to content

Commit

Permalink
Merge pull request #50 from lpsinger/separate-tests
Browse files Browse the repository at this point in the history
Omit tests from installation
  • Loading branch information
dakota002 authored Dec 9, 2024
2 parents f1c8359 + 7791c72 commit 1f9db77
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 8 deletions.
9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ source = "https://github.com/nasa-gcn/gcn-kafka-python"
[project.optional-dependencies]
test = ["pytest"]

[tool.setuptools.packages.find]
include = ["gcn_kafka"]

[tool.setuptools_scm]
write_to = "gcn_kafka/_version.py"
write_to = "src/gcn_kafka/_version.py"

[tool.coverage.run]
source = ["test"]
source_pkgs = ["gcn_kafka"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion gcn_kafka/test/test_core.py → test/test_core.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ..core import update_config
from gcn_kafka.core import update_config


def test_update_config_no_overwrite():
Expand Down
2 changes: 1 addition & 1 deletion gcn_kafka/test/test_env.py → test/test_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import os

from ..env import config_from_env
from gcn_kafka.env import config_from_env


def test_config_from_env(monkeypatch):
Expand Down
2 changes: 1 addition & 1 deletion gcn_kafka/test/test_oidc.py → test/test_oidc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from unittest.mock import MagicMock

from .. import oidc
from gcn_kafka import oidc


def test_no_oidc():
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ deps =
extras =
test
commands =
pytest gcn_kafka --cov {posargs}
pytest --cov {posargs}

0 comments on commit 1f9db77

Please sign in to comment.