Skip to content

Commit

Permalink
Remove hanging test
Browse files Browse the repository at this point in the history
  • Loading branch information
iandioch committed Apr 25, 2016
1 parent 82e39c5 commit 56bd373
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions refresh_model/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,33 +19,5 @@ def test_get_user_data(self):
user_data = get_user_data(1337)
self.assertTrue(user_data is None)

def test_update_model(self):
print 'Testing refresh-model build_model'
init_gearman_client()
user_data = get_user_data('iandioch')
if 'model' in user_data:
del user_data['model']

update_user_data('iandioch', user_data)

user_data = get_user_data('iandioch')
self.assertFalse('model' in user_data)

print 'Building empty model'
votes = []
model = build_model(user_data, votes)
self.assertTrue(model is None)

print 'Building populated model'
votes = [{
'username': 'iandioch',
'article_url': 'http://www.apple.com/customer-letter/',
'feed_url': 'https://news.ycombinator.com/rss',
'positive_opinion': False,
'vote_datetime': datetime.now()
}]
model = build_model(user_data, votes)
self.assertFalse(model is None)

if __name__ == '__main__':
unittest.main()

0 comments on commit 56bd373

Please sign in to comment.