Add mock files for python tests

pull/248/head
Lennart Kats 2016-01-29 09:35:21 +00:00
rodzic 251c41f799
commit f84c9a2e59
6 zmienionych plików z 12 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1 @@

Wyświetl plik

@ -0,0 +1,4 @@
from ..user.models import User
def test_user():
return User()

Wyświetl plik

@ -0,0 +1 @@

Wyświetl plik

@ -0,0 +1,3 @@
class User():
def __repr__(self):
return '<User test>'

Wyświetl plik

@ -0,0 +1,3 @@
#!/usr/bin/env python3
from app.tests.tests import test_user
print(test_user())