Skip to content
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

docs: add warning about sqlite specific snippet + fix typos #666

Merged
merged 1 commit into from
Oct 26, 2018
Merged

docs: add warning about sqlite specific snippet + fix typos #666

merged 1 commit into from
Oct 26, 2018

Conversation

streeck
Copy link
Contributor

@streeck streeck commented Oct 26, 2018

I stumbled upon this snippet in docs but I'm using Postgres, so executescript is not available in psycopg, I quickly found that it was supposed to be execute only, however, I still think it's valuable to have this warning for whoever comes across this.
Took the time to also fix a few minor typos.

@@ -419,8 +419,8 @@ Create the test database from a custom SQL script

You can replace the :fixture:`django_db_setup` fixture and run any code in its
place. This includes creating your database by hand by running a SQL script
directly. This example shows how sqlite3's executescript method. In more a more
general use cases you probably want to load the SQL statements from a file or
directly. This example shows how sqlite3's executescript method. In a more
Copy link
Contributor

Choose a reason for hiding this comment

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

This example shows how sqlite3's executescript method.

Missing a verb?

Copy link
Contributor Author

@streeck streeck Oct 26, 2018

Choose a reason for hiding this comment

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

Oh, nice catch. I believe that "how" is extra actually. Should I amend previous commit with the removal of it? @blueyed

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, please do.. - but a new commit is fine, too - will squash-merge it then.
Consider using [ci skip] in the message.

checkqa job currently fails due to newer flake8 it seems, so just ignore it.
Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've amended the commit and added [ci skip]. Thanks to you guys for the project, keep up the good work, glad I could help somehow 😄

@codecov-io
Copy link

Codecov Report

Merging #666 into master will decrease coverage by 7.68%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #666      +/-   ##
==========================================
- Coverage   94.38%   86.69%   -7.69%     
==========================================
  Files          33       33              
  Lines        1834     1834              
  Branches      156      155       -1     
==========================================
- Hits         1731     1590     -141     
- Misses         78      195     +117     
- Partials       25       49      +24
Flag Coverage Δ
#dj110 ?
#dj111 86.69% <ø> (-1.91%) ⬇️
#dj18 ?
#dj19 ?
#dj20 ?
#dj21 ?
#djmaster ?
#mysql_innodb 86.69% <ø> (ø) ⬆️
#mysql_myisam ?
#postgres ?
#py27 86.69% <ø> (-4.86%) ⬇️
#py34 ?
#py35 ?
#py36 ?
#py37 ?
#sqlite ?
#sqlite_file ?
Impacted Files Coverage Δ
pytest_django_test/settings_mysql_myisam.py 0% <0%> (-100%) ⬇️
pytest_django_test/settings_sqlite.py 0% <0%> (-100%) ⬇️
pytest_django_test/settings_sqlite_file.py 0% <0%> (-100%) ⬇️
pytest_django_test/settings_postgres.py 0% <0%> (-85.72%) ⬇️
pytest_django/compat.py 33.33% <0%> (-66.67%) ⬇️
pytest_django_test/db_helpers.py 43.51% <0%> (-38.89%) ⬇️
pytest_django/live_server_helper.py 62.5% <0%> (-29.69%) ⬇️
pytest_django_test/compat.py 80% <0%> (-20%) ⬇️
pytest_django/migrations.py 80% <0%> (-20%) ⬇️
pytest_django_test/settings_base.py 71.42% <0%> (-14.29%) ⬇️
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8f741ff...c500dfe. Read the comment docs.

@blueyed blueyed merged commit 22ebd0a into pytest-dev:master Oct 26, 2018
@blueyed
Copy link
Contributor

blueyed commented Oct 26, 2018

Thanks!

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