Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit 8673e2f

Browse files
committed
Merge pull request #256 from bear/test-tweak
remove python v3 from travis until it's needed
2 parents 09b992f + a738b4e commit 8673e2f

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ language: python
22
sudo: false
33
python:
44
- "2.7"
5-
- "3.5"
65

76
before_install:
87
- pip install codecov

Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
.PHONY: docs test
21

32
help:
43
@echo " env create a development environment using virtualenv"
54
@echo " deps install dependencies"
65
@echo " clean remove unwanted stuff"
76
@echo " lint check style with flake8"
7+
@echo " coverage run tests with code coverage"
88
@echo " test run tests"
99

1010
env:
@@ -27,8 +27,15 @@ clean:
2727
lint:
2828
flake8 twitter > violations.flake8.txt
2929

30+
coverage:
31+
nosetests --with-coverage --cover-package=twitter
32+
3033
test:
31-
python test.py
34+
nosetests
35+
36+
build: clean
37+
python setup.py sdist
38+
python setup.py bdist_wheel
3239

3340
upload: clean
3441
python setup.py sdist upload

README.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ You can install python-twitter using::
2424

2525
$ pip install python-twitter
2626

27-
Testing::
28-
29-
$ python test.py
30-
3127
================
3228
Getting the code
3329
================
@@ -47,14 +43,18 @@ Activate the virtual environment created:
4743

4844
$ source env/bin/activate
4945

50-
Run tests:
46+
=============
47+
Running Tests
48+
=============
49+
Note that tests require ```pip install nose``` and optionally ```pip install coverage```:
50+
51+
To run the unit tests:
5152

5253
$ make test
5354

54-
To see other options available, run:
55-
56-
$ make help
55+
to also run code coverage:
5756

57+
$ make coverage
5858

5959
=============
6060
Documentation

0 commit comments

Comments
 (0)