Skip to content

Commit

Permalink
fix 'adev serve ...' (#235)
Browse files Browse the repository at this point in the history
* fix 'adev serve ...'

* fix tests

* upref
  • Loading branch information
samuelcolvin authored May 21, 2019
1 parent 2e4f034 commit 689f35f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
History
-------

0.13.0 (2019-05-21)
-------------------
* greatly simplify the ``start`` command, #233
* disable coloured output on windows, #234
* fix ``adev serve ...``, #235

0.12.0 (2019-02-20)
-------------------
* fix tests for python 3.7, #218
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ libraries.
Installation
------------

Requires **python 3.5** or **python 3.6**.
Requires **python 3.5**, **python 3.6** or **python 3.7**.

.. code:: shell
Expand Down
2 changes: 1 addition & 1 deletion aiohttp_devtools/runserver/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ def serve_static(*, static_path: str, livereload: bool = True, port: int = 8000)

livereload_status = 'ON' if livereload else 'OFF'
logger.info('Serving "%s" at http://localhost:%d, livereload %s', static_path, port, livereload_status)
return app, port, loop
return app, port, loop, AuxAccessLogger
2 changes: 1 addition & 1 deletion aiohttp_devtools/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__all__ = ['VERSION']

VERSION = StrictVersion('0.12')
VERSION = StrictVersion('0.13')
6 changes: 3 additions & 3 deletions tests/test_serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@pytest.yield_fixture
def cli(loop, tmpworkdir, aiohttp_client):
asyncio.set_event_loop(loop)
app, _, _ = serve_static(static_path=str(tmpworkdir), livereload=False)
app, _, _, _ = serve_static(static_path=str(tmpworkdir), livereload=False)
yield loop.run_until_complete(aiohttp_client(app))


Expand All @@ -33,7 +33,7 @@ async def test_file_missing(cli):


async def test_html_file_livereload(loop, aiohttp_client, tmpworkdir):
app, port, _ = serve_static(static_path=str(tmpworkdir), livereload=True)
app, port, _, _ = serve_static(static_path=str(tmpworkdir), livereload=True)
assert port == 8000
cli = await aiohttp_client(app)
mktree(tmpworkdir, {
Expand All @@ -52,7 +52,7 @@ async def test_html_file_livereload(loop, aiohttp_client, tmpworkdir):


async def test_serve_index(loop, aiohttp_client, tmpworkdir):
app, port, _ = serve_static(static_path=str(tmpworkdir), livereload=False)
app, port, _, _ = serve_static(static_path=str(tmpworkdir), livereload=False)
assert port == 8000
cli = await aiohttp_client(app)
mktree(tmpworkdir, {
Expand Down

0 comments on commit 689f35f

Please sign in to comment.