Exclude tests in dependencies in test dir from pytest (#2618)

This commit is contained in:
Paulus Schoutsen 2016-07-25 08:26:07 -07:00 committed by GitHub
parent 4195254280
commit 8ee4503d7c
6 changed files with 4 additions and 3 deletions

4
.gitignore vendored
View File

@ -8,8 +8,8 @@ config/custom_components/*
!config/custom_components/hello_world.py
!config/custom_components/mqtt_example.py
tests/config/deps
tests/config/home-assistant.log
tests/testing_config/deps
tests/testing_config/home-assistant.log
# Hide sublime text stuff
*.sublime-project

View File

@ -3,6 +3,7 @@ universal = 1
[pytest]
testpaths = tests
norecursedirs = .git testing_config
[flake8]
exclude = .venv,.git,.tox,docs,www_static,venv,bin,lib,deps,build

View File

@ -18,7 +18,7 @@ _TEST_INSTANCE_PORT = SERVER_PORT
def get_test_config_dir():
"""Return a path to a test config dir."""
return os.path.join(os.path.dirname(__file__), "config")
return os.path.join(os.path.dirname(__file__), "testing_config")
def get_test_home_assistant(num_threads=None):