Skip to content

Commit

Permalink
Refactor rss related tests and resources for testing
Browse files Browse the repository at this point in the history
Related Freeseer#671
Related Freeseer#484
  • Loading branch information
Stephen Romansky authored and dideler committed Dec 19, 2014
1 parent 63a1aeb commit 145f7f9
Show file tree
Hide file tree
Showing 4 changed files with 938 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
@pytest.yield_fixture
def presentation_feed():
httpretty.enable()

rss_file = os.path.join(os.path.dirname(__file__), 'presentation_feed.rss')
rss_data_relative_path = os.path.join(os.pardir, os.pardir, os.pardir, 'resources', 'sample_rss_data')
rss_file = os.path.join(os.path.dirname(__file__), rss_data_relative_path, 'summercamp2010.rss')
with open(rss_file, 'r') as presentation_rss_file:
rss_feed = presentation_rss_file.read()

json_file = os.path.join(os.path.dirname(__file__), 'presentation_feed.json')
json_file = os.path.join(os.path.dirname(__file__), rss_data_relative_path, 'summercamp2010.json')
with open(json_file, 'r') as presentation_json_file:
json_data = json.load(presentation_json_file)

Expand Down
Loading

0 comments on commit 145f7f9

Please sign in to comment.