File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ language: python
2
2
python :
3
3
- " 3.6"
4
4
script :
5
- - pytest test/tests.py
5
+ - pytest
Original file line number Diff line number Diff line change 1
- import os ,sys
1
+ import os
2
+ import sys
2
3
relpath = os .path .dirname (__file__ ) # Find relative path: from current directory to test.py
3
4
abspath = os .path .abspath ("." ) # Find absolute path: from / to current directory
4
5
os .chdir (abspath + '/first_timers' )
5
6
sys .path .append ('./' )
6
- import first_timers as first_timers
7
+ import first_timers
7
8
import json
8
9
9
10
12
13
13
14
14
15
def test_fetcher ():
16
+ """Test whether first_timer_issues are getting picked up."""
15
17
issue_list = first_timers .get_first_timer_issues ()
16
18
assert len (issue_list ) > 0
17
19
@@ -20,6 +22,7 @@ def test_fetcher():
20
22
21
23
22
24
def test_get_fresh ():
25
+ """Test whether fresh issues are retrieved."""
23
26
new_issues = first_timers .get_fresh (example_issues [:- 1 ], example_issues )
24
27
assert new_issues [0 ] == example_issues [- 1 ]
25
28
You can’t perform that action at this time.
0 commit comments