Skip to content

Commit

Permalink
Merge pull request #84 from kgashok/master
Browse files Browse the repository at this point in the history
Refactored to match pytest good practices setup
  • Loading branch information
arshadkazmi42 authored Jan 14, 2022
2 parents a19f0b2 + 18ebff6 commit 0084b5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ language: python
python:
- "3.6"
script:
- pytest test/tests.py
- pytest
7 changes: 5 additions & 2 deletions test/tests.py → tests/test_basics.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import os,sys
import os
import sys
relpath = os.path.dirname(__file__) # Find relative path: from current directory to test.py
abspath = os.path.abspath(".") # Find absolute path: from / to current directory
os.chdir(abspath + '/first_timers')
sys.path.append('./')
import first_timers as first_timers
import first_timers
import json


Expand All @@ -12,6 +13,7 @@


def test_fetcher():
"""Test whether first_timer_issues are getting picked up."""
issue_list = first_timers.get_first_timer_issues()
assert len(issue_list) > 0

Expand All @@ -20,6 +22,7 @@ def test_fetcher():


def test_get_fresh():
"""Test whether fresh issues are retrieved."""
new_issues = first_timers.get_fresh(example_issues[:-1], example_issues)
assert new_issues[0] == example_issues[-1]

Expand Down

0 comments on commit 0084b5b

Please sign in to comment.