Skip to content

Commit

Permalink
Move to a single protocol test file. Now passing against sockjs-node.
Browse files Browse the repository at this point in the history
  • Loading branch information
brycekahle committed Aug 2, 2015
1 parent 6c6415e commit 532a8c0
Show file tree
Hide file tree
Showing 11 changed files with 78 additions and 7,209 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ PYCCO = $(VENV_DIR)/bin/pycco
all: pycco_deps test_deps build

build: pycco_deps
$(PYCCO) sockjs-protocol*.py
$(PYCCO) sockjs-protocol.py

clean:
@rm -rf $(BUILD_DIR)
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ And you're ready to run the tests against your server. By default we
assume that your test server is at
[http://localhost:8081](http://localhost:8081):

./venv/bin/python sockjs-protocol-0.3.3.py
./venv/bin/python sockjs-protocol.py

You can specify the test server URL manually:

SOCKJS_URL=http://localhost:1234 ./venv/bin/python sockjs-protocol-0.3.3.py -v
SOCKJS_URL=http://localhost:1234 ./venv/bin/python sockjs-protocol.py -v

You can run specific tests providing test class as an optional argument:

./venv/bin/python sockjs-protocol-0.3.3.py Protocol.test_simpleSession
./venv/bin/python sockjs-protocol.py Protocol.test_simpleSession


There is also another test, intended to look for some http quirks:
Expand All @@ -67,7 +67,7 @@ There is also another test, intended to look for some http quirks:
Generating literate html
------------------------

If you edited `sockjs-protocol*.py` files, you may want to see how it
If you edited `sockjs-protocol.py` files, you may want to see how it
looks rendered to html. To generate the html type:

make build
Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
unittest2
websocket-client==0.4.1
# Main source crashes https://github.com/Lawouach/WebSocket-for-Python/issues/16
-e git+git://github.com/majek/WebSocket-for-Python.git@master#egg=ws4py
ws4py
Loading

0 comments on commit 532a8c0

Please sign in to comment.