Skip to content

Commit

Permalink
docs: fix broken and wrong links
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiaraBi committed Mar 22, 2018
1 parent e5e45e2 commit 25ed466
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/alembic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ Testing revisions

When initially creating alembic revisions one has to provide a test case for them.

The test for the created revisions starts from an empty DB, upgrades to the last branch revision and then downgrades to the base. We can check that there are no discrepancies in the state of the DB between the revisions and the models, by asserting that alembic.compare_metadata() returns an empty list. An example can be found here: https://github.com/inveniosoftware/invenio-oauthclient/blob/master/tests/test_app.py#L141
The test for the created revisions starts from an empty DB, upgrades to the last branch revision and then downgrades to the base. We can check that there are no discrepancies in the state of the DB between the revisions and the models, by asserting that alembic.compare_metadata() returns an empty list. An example can be found here: `test_app.py#L130 <https://github.com/inveniosoftware/invenio-oauthclient/blob/d46de4d5e8269395b69230694ba073af88406404/tests/test_app.py#L130>`_
2 changes: 1 addition & 1 deletion docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ packages.

Please check following packages for further configuration options:

1. `Flask-SQLAlchemy <https://Flask-SQLAlchemy.readthedocs.io/config.html>`_
1. `Flask-SQLAlchemy <https://flask-sqlalchemy.readthedocs.io/en/stable/config/>`_
2. `Flask-Alembic <https://flask-alembic.readthedocs.io/en/stable/#configuration>`_
3. `SQLAlchemy-Continuum <https://sqlalchemy-continuum.readthedocs.io/en/latest/configuration.html>`_
Binary file added examples/test.db
Binary file not shown.
2 changes: 1 addition & 1 deletion invenio_db/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def do_sqlite_connect(dbapi_connection, connection_record):
"""Ensure SQLite checks foreign key constraints.
For further details see "Foreign key support" sections on
https://docs.sqlalchemy.org/en/latest/dialects/sqlite.html
https://docs.sqlalchemy.org/en/latest/dialects/sqlite.html#foreign-key-support
"""
# Enable foreign key constraint checking
cursor = dbapi_connection.cursor()
Expand Down

0 comments on commit 25ed466

Please sign in to comment.