-
Notifications
You must be signed in to change notification settings - Fork 89
Bring compatibility with Channels v3 #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
6c26537
a360cf6
e651c95
0c0abd1
3ee849c
3f3ccca
02ca5a6
0501fa9
94694e8
a6eea7e
94dbaaa
1d9b81c
f85bb99
43d447f
a36b30a
0ad2b87
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main, master] | ||
tags: | ||
- v[0-9]+.[0-9]+.[0-9]+ | ||
pull_request: | ||
branches: [main, master] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 5 | ||
matrix: | ||
include: | ||
- python-version: 2.7 | ||
tox-version: "py27" | ||
- python-version: 3.6 | ||
tox-version: "py36" | ||
- python-version: 3.7 | ||
tox-version: "py37" | ||
- python-version: 3.8 | ||
tox-version: "py38" | ||
- python-version: 3.9 | ||
tox-version: "py39" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Dependencies | ||
run: | | ||
pip install -U tox | ||
- name: Run Tests | ||
run: tox -e ${{ matrix.tox-version }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ maintainer = | |
PyYAML>=5.3,<6 | ||
dev = | ||
flake8>=3.7,<4 | ||
black | ||
tox>=3,<4 | ||
Sphinx>=1.8,<2 | ||
test = | ||
|
@@ -50,13 +51,12 @@ test = | |
pytest-asyncio; python_version>="3.4" | ||
graphene>=2.0,<3 | ||
gevent | ||
graphene>=2.0 | ||
graphene_django | ||
mock; python_version<"3" | ||
django==1.11.*; python_version<"3" | ||
channels==1.*; python_version<"3" | ||
django==2.*; python_version>="3" | ||
channels==2.*; python_version>="3" | ||
django==3.*; python_version>="3" | ||
channels==3.*; python_version>="3" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it safe to assume all python >3 users will use django ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure what you mean? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I meant "will use django 3" |
||
aiohttp; python_version>="3.5" | ||
|
||
[bdist_wheel] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,7 +91,7 @@ def test_observer_data(): | |
send_error=send_error, | ||
send_message=send_message, | ||
) | ||
observer.on_next('data') | ||
observer.on_next("data") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I ran black on the repo locally to fix various code style issues |
||
assert send_result.called | ||
assert not send_error.called | ||
|
||
|
@@ -107,6 +107,6 @@ def test_observer_exception(): | |
send_error=send_error, | ||
send_message=send_message, | ||
) | ||
observer.on_next(TypeError('some bad message')) | ||
observer.on_next(TypeError("some bad message")) | ||
fabienheureux marked this conversation as resolved.
Show resolved
Hide resolved
|
||
assert send_error.called | ||
assert not send_result.called |
Uh oh!
There was an error while loading. Please reload this page.