Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 13aefe4

Browse files
author
renzon
committed
Implementedo roll_back para propiciar isolamento de testes
1 parent f7c587b commit 13aefe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libpythonpro/spam/db.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def listar(self):
1111
return self.usuarios
1212

1313
def roll_back(self):
14-
pass
14+
self.usuarios.clear()
1515

1616
def fechar(self):
1717
pass

0 commit comments

Comments
 (0)