mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Add mock files for python tests
This commit is contained in:
parent
251c41f799
commit
f84c9a2e59
0
plugins/c9.fs/mock/python/app/__init__.py
Normal file
0
plugins/c9.fs/mock/python/app/__init__.py
Normal file
1
plugins/c9.fs/mock/python/app/tests/__init.py
Normal file
1
plugins/c9.fs/mock/python/app/tests/__init.py
Normal file
@ -0,0 +1 @@
|
||||
|
||||
4
plugins/c9.fs/mock/python/app/tests/tests.py
Normal file
4
plugins/c9.fs/mock/python/app/tests/tests.py
Normal file
@ -0,0 +1,4 @@
|
||||
from ..user.models import User
|
||||
|
||||
def test_user():
|
||||
return User()
|
||||
1
plugins/c9.fs/mock/python/app/user/__init__.py
Normal file
1
plugins/c9.fs/mock/python/app/user/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
|
||||
3
plugins/c9.fs/mock/python/app/user/models.py
Normal file
3
plugins/c9.fs/mock/python/app/user/models.py
Normal file
@ -0,0 +1,3 @@
|
||||
class User():
|
||||
def __repr__(self):
|
||||
return '<User test>'
|
||||
3
plugins/c9.fs/mock/python/test_user.py
Normal file
3
plugins/c9.fs/mock/python/test_user.py
Normal file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env python3
|
||||
from app.tests.tests import test_user
|
||||
print(test_user())
|
||||
Loading…
x
Reference in New Issue
Block a user