Skip to content

Commit 1edbbc8

Browse files
committed
Add dummy test configuration
Add an ib3.tests module with a dummy test that only verifies that imports work in the test environment.
1 parent a8e8a57 commit 1edbbc8

File tree

6 files changed

+40
-2
lines changed

6 files changed

+40
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
/.venv/
99
/build/
1010
/dist/
11+
/docs/
1112
__pycache__/

ib3/tests/__init__.py

Whitespace-only changes.

ib3/tests/test_nothing.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# This file is part of IRC Bot Behavior Bundle (IB3)
4+
# Copyright (C) 2017 Bryan Davis and contributors
5+
#
6+
# This program is free software: you can redistribute it and/or modify it
7+
# under the terms of the GNU General Public License as published by the Free
8+
# Software Foundation, either version 3 of the License, or (at your option)
9+
# any later version.
10+
#
11+
# This program is distributed in the hope that it will be useful, but WITHOUT
12+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14+
# more details.
15+
#
16+
# You should have received a copy of the GNU General Public License along with
17+
# this program. If not, see <http://www.gnu.org/licenses/>.
18+
19+
# Dummy test file that really tests nothing other than that imports succeed
20+
21+
import ib3
22+
import ib3.auth
23+
import ib3.connection
24+
import ib3.mixins
25+
import ib3.nick
26+
27+
any((
28+
ib3,
29+
ib3.auth,
30+
ib3.connection,
31+
ib3.mixins,
32+
ib3.nick,
33+
)) # Ignore unused import warning

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ verbosity=2
1414
detailed-errors=1
1515
with-coverage=1
1616
with-doctest=1
17-
cover-package=iptools
17+
cover-package=ib3
1818
cover-html=1
1919
cover-html-dir=docs/_build/cover
2020
cover-branches=1

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
if 'nosetests' in sys.argv[1:]:
1111
setup_requires.append('nose>=1.0')
1212

13-
tests_require = ['nose>=1.0']
13+
tests_require = [
14+
'coverage',
15+
'nose>=1.0',
16+
]
1417

1518
name = 'ib3'
1619
description = 'IRC bot framework using mixins to provide common functionality'

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ envlist=flake8,py27,py34,py35,py36,py37,docs
66
[testenv]
77
deps=
88
-r{toxinidir}/requirements.txt
9+
coverage
910
nose
1011
setenv=
1112
PYTHONDONTWRITEBYTECODE=true

0 commit comments

Comments
 (0)