Skip to content
This repository was archived by the owner on Mar 27, 2019. It is now read-only.

Commit 854f40f

Browse files
committed
comment out remaning tests that don't deal with local defs or hovers
1 parent 0437207 commit 854f40f

File tree

4 files changed

+158
-165
lines changed

4 files changed

+158
-165
lines changed

Makefile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,4 @@ lint:
99

1010
test:
1111
# pipenv run pytest test_langserver.py
12-
cd ./test && pipenv run pytest test_jedi.py -vv
13-
cd ./test && pipenv run pytest test_graphql_core.py -vv
14-
cd ./test && pipenv run pytest test_tensorflow_models.py -vv
15-
cd ./test && pipenv run pytest test_modpkgsamename.py -vv
16-
cd ./test && pipenv run pytest test_dep_versioning.py -vv
17-
cd ./test && pipenv run pytest test_conflictingdeps.py -vv
18-
cd ./test && pipenv run pytest test_flask.py -vv
19-
cd ./test && pipenv run pytest test_fizzbuzz.py -vv
12+
cd ./test && pipenv run pytest test_*.py -vv

test/test_clone_workspace.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
from langserver.clone_workspace import CloneWorkspace
2-
from langserver.fs import TestFileSystem
3-
import delegator
4-
import pytest
1+
# from langserver.clone_workspace import CloneWorkspace
2+
# from langserver.fs import TestFileSystem
3+
# import delegator
4+
# import pytest
55

66

7-
@pytest.fixture()
8-
def test_data():
9-
repoPath = "repos/fizzbuzz_service"
10-
workspace = CloneWorkspace(TestFileSystem(repoPath), repoPath, repoPath)
11-
yield (workspace, repoPath)
7+
# @pytest.fixture()
8+
# def test_data():
9+
# repoPath = "repos/fizzbuzz_service"
10+
# workspace = CloneWorkspace(TestFileSystem(repoPath), repoPath, repoPath)
11+
# yield (workspace, repoPath)
1212

1313

14-
class TestCloningWorkspace:
15-
def test_clone(self, test_data):
16-
workspace, repoPath = test_data
14+
# class TestCloningWorkspace:
15+
# def test_clone(self, test_data):
16+
# workspace, repoPath = test_data
1717

18-
c = delegator.run("diff -r {} {}".format(repoPath,
19-
workspace.CLONED_PROJECT_PATH))
20-
assert c.out == ""
21-
assert c.err == ""
22-
assert c.return_code == 0
18+
# c = delegator.run("diff -r {} {}".format(repoPath,
19+
# workspace.CLONED_PROJECT_PATH))
20+
# assert c.out == ""
21+
# assert c.err == ""
22+
# assert c.return_code == 0

test/test_global_variables.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
from .harness import Harness
1+
# from .harness import Harness
22

3-
workspace = Harness("repos/global-variables")
4-
workspace.initialize("")
3+
# workspace = Harness("repos/global-variables")
4+
# workspace.initialize("")
55

66

7-
def test_name_definition():
8-
# The __name__ global variable should resolve to a symbol without
9-
# a corresponding location
10-
uri = "file:///name_global.py"
11-
line, col = 0, 4
7+
# def test_name_definition():
8+
# # The __name__ global variable should resolve to a symbol without
9+
# # a corresponding location
10+
# uri = "file:///name_global.py"
11+
# line, col = 0, 4
1212

13-
result = workspace.definition(uri, line, col)
14-
assert result == [
15-
{
16-
'symbol':
17-
{
18-
'package': {
19-
'name': 'name_global'
20-
},
21-
'name': '__name__',
22-
'container': 'name_global',
23-
'kind': 'instance',
24-
'file': 'name_global.py'
25-
},
26-
'location': None
27-
}
28-
]
13+
# result = workspace.definition(uri, line, col)
14+
# assert result == [
15+
# {
16+
# 'symbol':
17+
# {
18+
# 'package': {
19+
# 'name': 'name_global'
20+
# },
21+
# 'name': '__name__',
22+
# 'container': 'name_global',
23+
# 'kind': 'instance',
24+
# 'file': 'name_global.py'
25+
# },
26+
# 'location': None
27+
# }
28+
# ]

test/test_thefuck.py

Lines changed: 116 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -1,120 +1,120 @@
1-
from .harness import Harness
2-
import uuid
1+
# from .harness import Harness
2+
# import uuid
33

44

5-
thefuck_workspace = Harness("repos/thefuck")
6-
thefuck_workspace.initialize(
7-
"git://github.com/nvbn/thefuck?" + str(uuid.uuid4()))
5+
# thefuck_workspace = Harness("repos/thefuck")
6+
# thefuck_workspace.initialize(
7+
# "git://github.com/nvbn/thefuck?" + str(uuid.uuid4()))
88

99

10-
# make sure that the resulting locations don't refer to files on the local
11-
# filesystem
12-
def test_local_references():
13-
result = thefuck_workspace.references(
14-
"/thefuck/argument_parser.py", 22, 21)
15-
assert result == [
16-
{
17-
'uri': 'file:///thefuck/argument_parser.py',
18-
'range': {
19-
'start': {
20-
'line': 18,
21-
'character': 21
22-
},
23-
'end': {
24-
'line': 18,
25-
'character': 33
26-
}
27-
}
28-
},
29-
{
30-
'uri': 'file:///thefuck/argument_parser.py',
31-
'range': {
32-
'start': {
33-
'line': 22,
34-
'character': 21
35-
},
36-
'end': {
37-
'line': 22,
38-
'character': 33
39-
}
40-
}
41-
},
42-
{
43-
'uri': 'file:///thefuck/argument_parser.py',
44-
'range': {
45-
'start': {
46-
'line': 27,
47-
'character': 21
48-
},
49-
'end': {
50-
'line': 27,
51-
'character': 33
52-
}
53-
}
54-
},
55-
{
56-
'uri': 'file:///thefuck/argument_parser.py',
57-
'range': {
58-
'start': {
59-
'line': 32,
60-
'character': 21
61-
},
62-
'end': {
63-
'line': 32,
64-
'character': 33
65-
}
66-
}
67-
},
68-
{
69-
'uri': 'file:///thefuck/argument_parser.py',
70-
'range': {
71-
'start': {
72-
'line': 36,
73-
'character': 21
74-
},
75-
'end': {
76-
'line': 36,
77-
'character': 33
78-
}
79-
}
80-
},
81-
{
82-
'uri': 'file:///thefuck/argument_parser.py',
83-
'range': {
84-
'start': {
85-
'line': 40,
86-
'character': 21
87-
},
88-
'end': {
89-
'line': 40,
90-
'character': 33
91-
}
92-
}
93-
},
94-
{
95-
'uri': 'file:///thefuck/argument_parser.py',
96-
'range': {
97-
'start': {
98-
'line': 48,
99-
'character': 14
100-
},
101-
'end': {
102-
'line': 48,
103-
'character': 26
104-
}
105-
}
106-
},
107-
{
108-
'uri': 'file:///thefuck/argument_parser.py',
109-
'range': {
110-
'start': {
111-
'line': 52,
112-
'character': 14
113-
},
114-
'end': {
115-
'line': 52,
116-
'character': 26
117-
}
118-
}
119-
}
120-
]
10+
# # make sure that the resulting locations don't refer to files on the local
11+
# # filesystem
12+
# def test_local_references():
13+
# result = thefuck_workspace.references(
14+
# "/thefuck/argument_parser.py", 22, 21)
15+
# assert result == [
16+
# {
17+
# 'uri': 'file:///thefuck/argument_parser.py',
18+
# 'range': {
19+
# 'start': {
20+
# 'line': 18,
21+
# 'character': 21
22+
# },
23+
# 'end': {
24+
# 'line': 18,
25+
# 'character': 33
26+
# }
27+
# }
28+
# },
29+
# {
30+
# 'uri': 'file:///thefuck/argument_parser.py',
31+
# 'range': {
32+
# 'start': {
33+
# 'line': 22,
34+
# 'character': 21
35+
# },
36+
# 'end': {
37+
# 'line': 22,
38+
# 'character': 33
39+
# }
40+
# }
41+
# },
42+
# {
43+
# 'uri': 'file:///thefuck/argument_parser.py',
44+
# 'range': {
45+
# 'start': {
46+
# 'line': 27,
47+
# 'character': 21
48+
# },
49+
# 'end': {
50+
# 'line': 27,
51+
# 'character': 33
52+
# }
53+
# }
54+
# },
55+
# {
56+
# 'uri': 'file:///thefuck/argument_parser.py',
57+
# 'range': {
58+
# 'start': {
59+
# 'line': 32,
60+
# 'character': 21
61+
# },
62+
# 'end': {
63+
# 'line': 32,
64+
# 'character': 33
65+
# }
66+
# }
67+
# },
68+
# {
69+
# 'uri': 'file:///thefuck/argument_parser.py',
70+
# 'range': {
71+
# 'start': {
72+
# 'line': 36,
73+
# 'character': 21
74+
# },
75+
# 'end': {
76+
# 'line': 36,
77+
# 'character': 33
78+
# }
79+
# }
80+
# },
81+
# {
82+
# 'uri': 'file:///thefuck/argument_parser.py',
83+
# 'range': {
84+
# 'start': {
85+
# 'line': 40,
86+
# 'character': 21
87+
# },
88+
# 'end': {
89+
# 'line': 40,
90+
# 'character': 33
91+
# }
92+
# }
93+
# },
94+
# {
95+
# 'uri': 'file:///thefuck/argument_parser.py',
96+
# 'range': {
97+
# 'start': {
98+
# 'line': 48,
99+
# 'character': 14
100+
# },
101+
# 'end': {
102+
# 'line': 48,
103+
# 'character': 26
104+
# }
105+
# }
106+
# },
107+
# {
108+
# 'uri': 'file:///thefuck/argument_parser.py',
109+
# 'range': {
110+
# 'start': {
111+
# 'line': 52,
112+
# 'character': 14
113+
# },
114+
# 'end': {
115+
# 'line': 52,
116+
# 'character': 26
117+
# }
118+
# }
119+
# }
120+
# ]

0 commit comments

Comments
 (0)