question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there any documentation on sqlalchemy.testing?

See original GitHub issue

It looks like the sqlalchemy.testing package contains utilities for writing tests, but I’m not able to find any documentation on how to use it. I’ve read through some of the code in the module as well as looked at a few SQLAlchemy’s own tests, but there’s a lot in there and I’m not sure where the best place to start might be.

Is there a guide on testing apps that use SQLAlchemy or reference documentation that I’m just not finding? (Bonus points if it also uses Alembic to run migrations for standing up the schema in the database.)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
zzzeekcommented, Nov 22, 2019

I think the question here refers to how one would write their application that includes tests against their SQLAlchemy models and/or Core code.

0reactions
zzzeekcommented, Nov 22, 2019

yes it’s unfortunately a bigger subject for which you’d need to reach out to the wider community. The “Essential SQLAlchemy 2nd Edition” book has some info on this and also there are tutorials and talks which discuss it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Testing — SQLAlchemy-Utils 0.38.3 documentation
This is checked by running an SQL update that assigns given column as None. Parameters: obj – SQLAlchemy declarative model object; column –...
Read more >
Develop - SQLAlchemy
Discussion in this room is intended for users who are interested in contributing code, tests, documentation, or other developmental resources. This channel is...
Read more >
4. Testing - Essential SQLAlchemy, 2nd Edition [Book] - O'Reilly
This chapter covers how to perform functional tests against a database, and how to mock out SQLAlchemy queries and connections. Testing with a...
Read more >
Setting up transactional tests with Pytest and SQLAlchemy
Recently I was looking for a similar solution for Python, but, to my surprise, I haven't found any. However, it's easy to leverage...
Read more >
A Guide To Database Unit Testing with Pytest and SQLAlchemy
Fixtures is a powerful feature in pytest. While testing a database created in an SQLAlchemy ORM, you need to ensure that the session...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found