| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,10 +39,10 @@ mypy: | |||
| 39 | 39 | mypy examples/*.py zeroconf/*.py | |
| 40 | 40 | ||
| 41 | 41 | test: | |
| 42 | - pytest -v zeroconf/test.py zeroconf/test_aio.py zeroconf/test_asyncio.py | ||
| 42 | + pytest -v tests | ||
| 43 | 43 | ||
| 44 | 44 | test_coverage: | |
| 45 | - pytest -v --cov=zeroconf --cov-branch --cov-report html --cov-report term-missing zeroconf/test.py zeroconf/test_aio.py zeroconf/test_asyncio.py | ||
| 45 | + pytest -v --cov=zeroconf --cov-branch --cov-report html --cov-report term-missing tests | ||
| 46 | 46 | ||
| 47 | 47 | autopep8: | |
| 48 | 48 | autopep8 --max-line-length=$(MAX_LINE_LENGTH) -i setup.py examples zeroconf | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,6 @@ | |||
| 1 | + [tool:pytest] | ||
| 2 | + testpaths = tests | ||
| 3 | + | ||
| 1 | 4 | [flake8] | |
| 2 | 5 | show-source = 1 | |
| 3 | 6 | application-import-names=zeroconf | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,21 @@ | |||
| 1 | + """ Multicast DNS Service Discovery for Python, v0.14-wmcbrine | ||
| 2 | + Copyright 2003 Paul Scott-Murphy, 2014 William McBrine | ||
| 3 | + | ||
| 4 | + This module provides a framework for the use of DNS Service Discovery | ||
| 5 | + using IP multicast. | ||
| 6 | + | ||
| 7 | + This library is free software; you can redistribute it and/or | ||
| 8 | + modify it under the terms of the GNU Lesser General Public | ||
| 9 | + License as published by the Free Software Foundation; either | ||
| 10 | + version 2.1 of the License, or (at your option) any later version. | ||
| 11 | + | ||
| 12 | + This library is distributed in the hope that it will be useful, | ||
| 13 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 15 | + Lesser General Public License for more details. | ||
| 16 | + | ||
| 17 | + You should have received a copy of the GNU Lesser General Public | ||
| 18 | + License along with this library; if not, write to the Free Software | ||
| 19 | + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 | ||
| 20 | + USA | ||
| 21 | + """ | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,7 +10,7 @@ | |||
| 10 | 10 | ||
| 11 | 11 | import pytest | |
| 12 | 12 | ||
| 13 | - from . import ( | ||
| 13 | + from zeroconf import ( | ||
| 14 | 14 | BadTypeInNameException, | |
| 15 | 15 | NonUniqueNameException, | |
| 16 | 16 | ServiceInfo, | |
@@ -20,7 +20,7 @@ | |||
| 20 | 20 | _LISTENER_TIME, | |
| 21 | 21 | current_time_millis, | |
| 22 | 22 | ) | |
| 23 | - from .aio import AsyncServiceInfo, AsyncServiceListener, AsyncZeroconf | ||
| 23 | + from zeroconf.aio import AsyncServiceInfo, AsyncServiceListener, AsyncZeroconf | ||
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | 26 | @pytest.mark.asyncio | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ | |||
| 7 | 7 | ||
| 8 | 8 | import pytest | |
| 9 | 9 | ||
| 10 | - from .asyncio import AsyncZeroconf | ||
| 10 | + from zeroconf.asyncio import AsyncZeroconf | ||
| 11 | 11 | ||
| 12 | 12 | ||
| 13 | 13 | @pytest.mark.asyncio | |
| Back | FazBrowse Home | New Git URL |
0 commit comments