Giter VIP home page Giter VIP logo

Comments (5)

DeoLeung avatar DeoLeung commented on July 26, 2024

after hunting down for a whole day the problem comes from the test cases
when using DRF's APITransactionTestCase with reset_sequences=True, the above happens.

from django-role-permissions.

filipeximenes avatar filipeximenes commented on July 26, 2024

Is there something we can do from rolepermissions point o view to fix this?

from django-role-permissions.

DeoLeung avatar DeoLeung commented on July 26, 2024

Thank you Filipe.
I think this shall be a problem in django itself.
I'm still farely new to django , it will be great if you could provide some advise on how to make this work with the Permission model in django's TransactionTestCase with reset_sequences=True.
However this does motivate me to rewrite my tests into normal TestCase which is indeed much faster:)

feel free to close the issue if it's trivial.

from django-role-permissions.

filipeximenes avatar filipeximenes commented on July 26, 2024

To be honest, I've never tried it with TransactionTestCase. I'll leave this open until me (when I get some time to play with it) or someone else comes up with a solution.

from django-role-permissions.

filipeximenes avatar filipeximenes commented on July 26, 2024

I'll close this issue for now

from django-role-permissions.

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.