pytest-postgresql icon indicating copy to clipboard operation
pytest-postgresql copied to clipboard

Create examples directory with examples on how to approach specific problems

Open fizyk opened this issue 2 years ago • 3 comments

  • The examples have to be tested on CI
  • It'd be enough to run them on a single Python version (highest supported)
  • Each example should be in its test file.
  • Additional dependencies required for the examples should be added to the 'examples' dependency category in Pipfile

Add examples:

  • Examples to use SQLAlchemy with pytest-postgresql
  • Examples on using SQLAlchemy and load function (ie to create schema) https://github.com/ClearcodeHQ/pytest-postgresql?tab=readme-ov-file#using-sqlalchemy-to-initialise-basic-database-state

fizyk avatar Feb 15 '24 08:02 fizyk

Hi @fizyk , I was trying to get pytest-postgres working with SQLmodel (with FastAPI) which uses SQLAlchemy but had some issues getting the tests running as there are many existing tests using SQLite currently. If I provide an example attempt i'd be happy to use that as an example for this ticket. If it's okay with you I will create a separate issue with my problem.

robmsmt avatar Feb 26 '25 12:02 robmsmt

Sure! A separate issue would be perfect :)

fizyk avatar Feb 26 '25 14:02 fizyk

@robmsmt could you also check https://github.com/fizyk/pyramid_fullauth/tree/main/tests ?

fizyk avatar Feb 26 '25 14:02 fizyk