Skip to content

Commit

Permalink
remove all test code
Browse files Browse the repository at this point in the history
This currently makes no sense to test, as it's entirely
declared models.

Signed-off-by: William Woodruff <[email protected]>
  • Loading branch information
woodruffw committed Oct 3, 2023
1 parent eed4d7a commit e86e489
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 61 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/tests.yml

This file was deleted.

25 changes: 1 addition & 24 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ SHELL := /bin/bash

PY_MODULE := sigstore_rekor_types

ALL_PY_SRCS := $(shell find $(PY_MODULE) -name '*.py') \
$(shell find test -name '*.py')
ALL_PY_SRCS := $(shell find $(PY_MODULE) -name '*.py')

# Optionally overriden by the user, if they're using a virtual environment manager.
VENV ?= env
Expand All @@ -17,25 +16,10 @@ endif
# Optionally overridden by the user in the `release` target.
BUMP_ARGS :=

# Optionally overridden by the user in the `test` target.
TESTS :=

# Optionally overridden by the user/CI, to limit the installation to a specific
# subset of development dependencies.
INSTALL_EXTRA := dev

# If the user selects a specific test pattern to run, set `pytest` to fail fast
# and only run tests that match the pattern.
# Otherwise, run all tests and enable coverage assertions, since we expect
# complete test coverage.
ifneq ($(TESTS),)
TEST_ARGS := -x -k $(TESTS)
COV_ARGS :=
else
TEST_ARGS :=
COV_ARGS := --fail-under 100
endif

.PHONY: all
all:
@echo "Run my targets individually!"
Expand All @@ -62,13 +46,6 @@ reformat:
black --preview $(ALL_PY_SRCS) && \
ruff --fix $(ALL_PY_SRCS)


.PHONY: test tests
test tests: $(VENV)/pyvenv.cfg
. $(VENV_BIN)/activate && \
pytest --cov=$(PY_MODULE) $(T) $(TEST_ARGS) && \
python -m coverage report -m $(COV_ARGS)

.PHONY: doc
doc: $(VENV)/pyvenv.cfg
. $(VENV_BIN)/activate && \
Expand Down
Empty file removed test/__init__.py
Empty file.
7 changes: 0 additions & 7 deletions test/test_init.py

This file was deleted.

0 comments on commit e86e489

Please sign in to comment.