mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Merge pull request +11932 from c9/improve-language
Fix python issue, improve language tests
This commit is contained in:
commit
c767b9a3da
2
node_modules/vfs-local/localfs.js
generated
vendored
2
node_modules/vfs-local/localfs.js
generated
vendored
@ -157,6 +157,8 @@ module.exports = function setup(fsOptions) {
|
||||
|
||||
// Export the API
|
||||
var vfs = wrapDomain({
|
||||
fsOptions: fsOptions,
|
||||
|
||||
// File management
|
||||
resolve: resolve,
|
||||
stat: stat,
|
||||
|
||||
@ -56,7 +56,7 @@
|
||||
"c9"
|
||||
],
|
||||
"c9plugins": {
|
||||
"c9.ide.language": "#dc02e5c4c2",
|
||||
"c9.ide.language": "#9ec48a2b65",
|
||||
"c9.ide.language.css": "#be07d72209",
|
||||
"c9.ide.language.generic": "#a4023db7f6",
|
||||
"c9.ide.language.html": "#9be847c0ce",
|
||||
@ -66,7 +66,7 @@
|
||||
"c9.ide.language.javascript.eslint": "#3127e1eba1",
|
||||
"c9.ide.language.javascript.tern": "#bf1072b11a",
|
||||
"c9.ide.language.javascript.infer": "#0561c69d67",
|
||||
"c9.ide.language.jsonalyzer": "#243e11bd42",
|
||||
"c9.ide.language.jsonalyzer": "#982a078159",
|
||||
"c9.ide.collab": "#4b93a497cd",
|
||||
"c9.ide.local": "#a6e689e33b",
|
||||
"c9.ide.find": "#e33fbaed2f",
|
||||
@ -91,7 +91,7 @@
|
||||
"c9.ide.imgeditor": "#612e75ef4f",
|
||||
"c9.ide.immediate": "#a962119bec",
|
||||
"c9.ide.installer": "#0fde9f0067",
|
||||
"c9.ide.language.python": "#4fad6f5a80",
|
||||
"c9.ide.language.python": "#675ddb4c8f",
|
||||
"c9.ide.language.go": "#8f6d0beae7",
|
||||
"c9.ide.mount": "#86c8985f34",
|
||||
"c9.ide.navigate": "#1fbb7cd53b",
|
||||
|
||||
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>'
|
||||
9
plugins/c9.fs/mock/python/test_user.py
Normal file
9
plugins/c9.fs/mock/python/test_user.py
Normal file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env python3
|
||||
from app.tests.tests import test_user
|
||||
from doesntexist import badimport
|
||||
|
||||
print(test_user())
|
||||
|
||||
bad_call()
|
||||
|
||||
badimport.foo()
|
||||
Loading…
x
Reference in New Issue
Block a user