Created
June 24, 2022 16:27
-
-
Save viniciusao/d023a9221f402ca2003818615074ea09 to your computer and use it in GitHub Desktop.
Pytest mock database: test same name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_same_name(session_same_name): | |
s, models = session_same_name | |
username = s.query(models['User'].__class__).first().name | |
actorname = s.query(models['Actor'].__class__).first().name | |
assert username == actorname |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment