Skip to content

Add support for Django client driver - #146

Merged
michelts merged 16 commits into
pytest-dev:masterfrom
michelts:add-support-for-django-client
Jun 6, 2020
Merged

michelts merged 16 commits into
pytest-dev:masterfrom
michelts:add-support-for-django-client

Conversation

@michelts

@michelts michelts commented Jun 2, 2020

Copy link
Copy Markdown
Contributor

The splinter API is very useful to traverse over a Django client response body, but there is a minor bug that prevents one to use django as driver with pytest-splinter.

I fixed the bug and added a test for it.

Let me know if I missed anything!

michelts added 9 commits June 2, 2020 19:35
This is the result of the django-admin startproject
django_sample_project, without any modification.
If we reach admin, we can assume django is working!
This is an attempt to avoid the failing tests.
This way, we can opt out of pytest-django.
Python 2.7 accepts Django 1.11 at last, so the sample project needs to
be compatible with both.
@coveralls

coveralls commented Jun 3, 2020 •

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 87.5% when pulling a586d3f on michelts:add-support-for-django-client into e6af25a on pytest-dev:master.

@bubenkoff bubenkoff left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please address
please also add a changelog record

Comment thread pytest_splinter/plugin.py

@bubenkoff bubenkoff left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michelts sorry, forgot to mention, please also add your record to the authors

@michelts

michelts commented Jun 6, 2020

Copy link
Copy Markdown
Contributor Author

Done! Thank you @bubenkoff

bubenkoff
bubenkoff previously approved these changes Jun 6, 2020
@bubenkoff

Copy link
Copy Markdown
Member

@michelts added you to the repo, please merge by squashing the commits into one

@michelts
michelts merged commit 732d332 into pytest-dev:master Jun 6, 2020
@michelts
michelts deleted the add-support-for-django-client branch June 6, 2020 22:13
@bubenkoff

Copy link
Copy Markdown
Member

@michelts released 2.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants