Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ mypy:
mypy examples/*.py zeroconf/*.py

test:
pytest -v zeroconf/test.py zeroconf/test_aio.py zeroconf/test_asyncio.py
pytest -v tests

test_coverage:
pytest -v --cov=zeroconf --cov-branch --cov-report html --cov-report term-missing zeroconf/test.py zeroconf/test_aio.py zeroconf/test_asyncio.py
pytest -v --cov=zeroconf --cov-branch --cov-report html --cov-report term-missing tests

autopep8:
autopep8 --max-line-length=$(MAX_LINE_LENGTH) -i setup.py examples zeroconf
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[tool:pytest]
testpaths = tests

[flake8]
show-source = 1
application-import-names=zeroconf
Expand Down
21 changes: 21 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
""" Multicast DNS Service Discovery for Python, v0.14-wmcbrine
Copyright 2003 Paul Scott-Murphy, 2014 William McBrine

This module provides a framework for the use of DNS Service Discovery
using IP multicast.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
USA
"""
4 changes: 2 additions & 2 deletions zeroconf/test_aio.py → tests/test_aio.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import pytest

from . import (
from zeroconf import (
BadTypeInNameException,
NonUniqueNameException,
ServiceInfo,
Expand All @@ -20,7 +20,7 @@
_LISTENER_TIME,
current_time_millis,
)
from .aio import AsyncServiceInfo, AsyncServiceListener, AsyncZeroconf
from zeroconf.aio import AsyncServiceInfo, AsyncServiceListener, AsyncZeroconf


@pytest.mark.asyncio
Expand Down
2 changes: 1 addition & 1 deletion zeroconf/test_asyncio.py → tests/test_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import pytest

from .asyncio import AsyncZeroconf
from zeroconf.asyncio import AsyncZeroconf


@pytest.mark.asyncio
Expand Down
File renamed without changes.