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

Fix tests #48

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "test/repos/flask"]
path = test/repos/flask
url = [email protected]:pallets/flask.git
url = [email protected]:sourcegraph/flask.git
[submodule "test/repos/cpython"]
path = test/repos/cpython
url = [email protected]:python/cpython.git
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.6.4
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ This is a language server for Python that adheres to the [Language Server Protoc

You'll need Python version 3.6 or greater or [pyenv](https://github.com/pyenv/pyenv) installed. You will also need [pipenv](https://github.com/pypa/pipenv) installed:

1. `pipenv install`
2. `pipenv run python python-langserver.py --mode=tcp --addr=2087`
1. `pipenv install`
2. `pipenv run python python-langserver.py --mode=tcp --addr=2087`

To try it in [Visual Studio Code](https://code.visualstudio.com), install the [vscode-client](https://github.com/sourcegraph/langserver/tree/master/vscode-client) extension and then open up a `.py` file.

Expand All @@ -20,3 +20,11 @@ To try it in [Visual Studio Code](https://code.visualstudio.com), install the [v
Run `make test`.

The tests require `pytest`. Note that some tests may fail if you're using `virtualenv` instead of the system Python.

Ensure you're using the correct Python version for this project (3.6.4). Using an incorrect version may cause local failures for tests related to the Python standard library. Use [`pyenv`](https://github.com/pyenv/pyenv) to easily switch to the correct version:

```
pyenv install
pyenv local # should show 3.6.4
pyenv version # should show 3.6.4 - you're good to go!
```
2 changes: 1 addition & 1 deletion test/repos/flask
Submodule flask updated from 45c8fb to 7bd3ad
2 changes: 1 addition & 1 deletion test/test_flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

flask_workspace = Harness("repos/flask")
flask_workspace.initialize(
"git://github.com/pallets/flask?" + str(uuid.uuid4()))
"git://github.com/sourcegraph/flask?" + str(uuid.uuid4()))


def test_x_packages():
Expand Down