Initial tests

Change-Id: I6b01a57b05a507170f92d6a0f3e98ba46c2c68dd
This commit is contained in:
Darragh Bailey 2018-03-11 11:21:15 +00:00 committed by Darragh Bailey
parent 20f8c0c471
commit 3f753dfac9
7 changed files with 83 additions and 1 deletions

8
.testr.conf Normal file
View File

@ -0,0 +1,8 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-160} \
${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

2
test-requirements.txt Normal file
View File

@ -0,0 +1,2 @@
testtools
testrepository

0
tests/__init__.py Normal file
View File

0
tests/simple/__init__.py Normal file
View File

View File

@ -0,0 +1,34 @@
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import testtools
import fixtures_git
class TestBuildTree(testtools.TestCase):
def test_basic(self):
pass
def test_merge(self):
pass
def test_merge_and_replace(self):
pass
def test_merge_unrelated_history(self):
pass

37
tests/test_toposort.py Normal file
View File

@ -0,0 +1,37 @@
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import testtools
import fixtures_git
class TestResolve(testtools.TestCase):
def test_ordered(self):
pass
def test_unordered(self):
pass
def test_merge(self):
pass
def test_multiple_merges(self):
pass
def test_merge_unrelated_history(self):
pass

View File

@ -8,8 +8,9 @@ skip_missing_interpreters = True
usedevelop = True
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
python setup.py test
python setup.py testr --slowest --testr-args='{posargs}'
[testenv:pep8]
commands = flake8