Move tests to the root of the repository, in keeping with more common convention.
This commit is contained in:
parent
f9a9b42c58
commit
a125df991b
30 changed files with 7 additions and 7 deletions
|
@ -6,7 +6,7 @@ from flexmock import flexmock
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from borgmatic.borg import check as module
|
from borgmatic.borg import check as module
|
||||||
from borgmatic.tests.unit.test_verbosity import insert_logging_mock
|
from ..test_verbosity import insert_logging_mock
|
||||||
|
|
||||||
|
|
||||||
def insert_subprocess_mock(check_call_command, **kwargs):
|
def insert_subprocess_mock(check_call_command, **kwargs):
|
|
@ -4,7 +4,7 @@ import os
|
||||||
from flexmock import flexmock
|
from flexmock import flexmock
|
||||||
|
|
||||||
from borgmatic.borg import create as module
|
from borgmatic.borg import create as module
|
||||||
from borgmatic.tests.unit.test_verbosity import insert_logging_mock
|
from ..test_verbosity import insert_logging_mock
|
||||||
|
|
||||||
|
|
||||||
def test_initialize_environment_with_passcommand_should_set_environment():
|
def test_initialize_environment_with_passcommand_should_set_environment():
|
|
@ -4,7 +4,7 @@ import sys
|
||||||
from flexmock import flexmock
|
from flexmock import flexmock
|
||||||
|
|
||||||
from borgmatic.borg import extract as module
|
from borgmatic.borg import extract as module
|
||||||
from borgmatic.tests.unit.test_verbosity import insert_logging_mock
|
from ..test_verbosity import insert_logging_mock
|
||||||
|
|
||||||
|
|
||||||
def insert_subprocess_mock(check_call_command, **kwargs):
|
def insert_subprocess_mock(check_call_command, **kwargs):
|
|
@ -3,7 +3,7 @@ import logging
|
||||||
from flexmock import flexmock
|
from flexmock import flexmock
|
||||||
|
|
||||||
from borgmatic.borg import info as module
|
from borgmatic.borg import info as module
|
||||||
from borgmatic.tests.unit.test_verbosity import insert_logging_mock
|
from ..test_verbosity import insert_logging_mock
|
||||||
|
|
||||||
|
|
||||||
def insert_subprocess_mock(check_call_command, **kwargs):
|
def insert_subprocess_mock(check_call_command, **kwargs):
|
|
@ -3,7 +3,7 @@ import logging
|
||||||
from flexmock import flexmock
|
from flexmock import flexmock
|
||||||
|
|
||||||
from borgmatic.borg import list as module
|
from borgmatic.borg import list as module
|
||||||
from borgmatic.tests.unit.test_verbosity import insert_logging_mock
|
from ..test_verbosity import insert_logging_mock
|
||||||
|
|
||||||
|
|
||||||
def insert_subprocess_mock(check_call_command, **kwargs):
|
def insert_subprocess_mock(check_call_command, **kwargs):
|
|
@ -4,7 +4,7 @@ from collections import OrderedDict
|
||||||
from flexmock import flexmock
|
from flexmock import flexmock
|
||||||
|
|
||||||
from borgmatic.borg import prune as module
|
from borgmatic.borg import prune as module
|
||||||
from borgmatic.tests.unit.test_verbosity import insert_logging_mock
|
from ..test_verbosity import insert_logging_mock
|
||||||
|
|
||||||
|
|
||||||
def insert_subprocess_mock(check_call_command, **kwargs):
|
def insert_subprocess_mock(check_call_command, **kwargs):
|
2
tox.ini
2
tox.ini
|
@ -6,7 +6,7 @@ skipsdist=True
|
||||||
usedevelop=True
|
usedevelop=True
|
||||||
deps=-rtest_requirements.txt
|
deps=-rtest_requirements.txt
|
||||||
commands =
|
commands =
|
||||||
py.test --cov-report term-missing:skip-covered --cov=borgmatic borgmatic []
|
py.test --cov-report term-missing:skip-covered --cov=borgmatic tests []
|
||||||
black --skip-string-normalization --line-length 100 --check .
|
black --skip-string-normalization --line-length 100 --check .
|
||||||
flake8 .
|
flake8 .
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue