From 63111a5c3b02c51c9ba3d0e2ed243d9f03e6b22c Mon Sep 17 00:00:00 2001 From: roadscape <roadscape@users.noreply.github.com> Date: Thu, 12 Jul 2018 11:14:08 -0500 Subject: [PATCH] segment tests --- Makefile | 15 ++++++++++++--- tests/{ => server}/test_server_condenser_api.py | 0 tests/{ => steem}/test_steem_client.py | 0 tests/{ => utils}/test_imports.py | 0 tests/{ => utils}/test_utils_account.py | 0 tests/{ => utils}/test_utils_normalize.py | 0 tests/{ => utils}/test_utils_post.py | 0 7 files changed, 12 insertions(+), 3 deletions(-) rename tests/{ => server}/test_server_condenser_api.py (100%) rename tests/{ => steem}/test_steem_client.py (100%) rename tests/{ => utils}/test_imports.py (100%) rename tests/{ => utils}/test_utils_account.py (100%) rename tests/{ => utils}/test_utils_normalize.py (100%) rename tests/{ => utils}/test_utils_post.py (100%) diff --git a/Makefile b/Makefile index f13e571cf..197bcb6da 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ PROJECT_DOCKER_RUN_ARGS := --link db:db default: build -.PHONY: test run test-only test-lint fmt test-with-build build docs +.PHONY: test run test-all test-utils test-server test-steem test-lint fmt test-with-build build docs docs: pdoc --html hive --html-dir docs --overwrite @@ -37,13 +37,22 @@ db-head-state: ipython: docker run -it $(PROJECT_DOCKER_RUN_ARGS) $(PROJECT_DOCKER_TAG) ipython -test: test-only test-lint +test: test-all test-lint test-with-build: test build -test-only: +test-all: py.test --cov=hive --capture=sys +test-utils: + py.test tests/utils --cov=hive/utils --capture=sys + +test-steem: + py.test tests/steem --cov=hive/steem --capture=sys + +test-server: + py.test tests/server --cov=hive/server --capture=sys + test-lint: py.test --pylint -m pylint $(PROJECT_NAME) --pylint-error-types WEF diff --git a/tests/test_server_condenser_api.py b/tests/server/test_server_condenser_api.py similarity index 100% rename from tests/test_server_condenser_api.py rename to tests/server/test_server_condenser_api.py diff --git a/tests/test_steem_client.py b/tests/steem/test_steem_client.py similarity index 100% rename from tests/test_steem_client.py rename to tests/steem/test_steem_client.py diff --git a/tests/test_imports.py b/tests/utils/test_imports.py similarity index 100% rename from tests/test_imports.py rename to tests/utils/test_imports.py diff --git a/tests/test_utils_account.py b/tests/utils/test_utils_account.py similarity index 100% rename from tests/test_utils_account.py rename to tests/utils/test_utils_account.py diff --git a/tests/test_utils_normalize.py b/tests/utils/test_utils_normalize.py similarity index 100% rename from tests/test_utils_normalize.py rename to tests/utils/test_utils_normalize.py diff --git a/tests/test_utils_post.py b/tests/utils/test_utils_post.py similarity index 100% rename from tests/test_utils_post.py rename to tests/utils/test_utils_post.py -- GitLab