GithubHelp home page GithubHelp logo

Comments (4)

fizyk avatar fizyk commented on June 14, 2024 2

I think that would be something worth considering.

As I'm not sure when I'll find the time to work on this, but you're welcome to create a pull request.
One thing to consider would be to put documentation warnings that the same connection has to be sued throughout the test suite as any new connection code will make would be outside of the transaction

from pytest-postgresql.

fizyk avatar fizyk commented on June 14, 2024 1

@efagerberg Could you take a look at a pr I'm baking? #407 it's not transactional testing per se, as it makes use of database templates instead. This approach sped up test in our project 4 times.

from pytest-postgresql.

efagerberg avatar efagerberg commented on June 14, 2024

I think having a transactional fixture is preferred. In my case I have noticed that sometimes the postgres server fails to start up leading to flakey test suits, just having one db that is more global in pytest would reduce the setup time for each test and hopefully make the test suite less brittle.

from pytest-postgresql.

fizyk avatar fizyk commented on June 14, 2024

Addressed by #407 / #393

from pytest-postgresql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.