mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 09:17:53 +00:00
Exclude tests in dependencies in test dir from pytest (#2618)
This commit is contained in:
parent
4195254280
commit
8ee4503d7c
4
.gitignore
vendored
4
.gitignore
vendored
@ -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
|
||||
|
@ -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
|
||||
|
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user