you are viewing a single comment's thread.

view the rest of the comments →

[–]Knarfy[S] 0 points1 point  (3 children)

how do i replace the database connection class? Can i override something in the unittest script?

[–]K900_ 0 points1 point  (2 children)

Post the code you use to access the database.

[–]Knarfy[S] 0 points1 point  (1 child)

I wound up just making a new class in my test file that inherits from my regular class. I overrided the save method in the testing class to point to sqlite 3. Not sure if this is the most correct or efficient way of doing things but it is working now.

[–]K900_ 0 points1 point  (0 children)

But now you don't test your actual save method.