Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Catch up test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Sep 7, 2017
1 parent 8c02f8b commit 3d5faf0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/py/test_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ def test_remove_notification(self):
assert alice.notifications == ["abcd", "bcde"]

def test_star_announcement(self):
assert '/on/npm/">integrate' in self.client.GET('/').body
assert '/on/npm/">integrate' in self.client.GET('/about/').body
10 changes: 4 additions & 6 deletions tests/ttw/test_homepage.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@

class Tests(BrowserHarness):

def test_homepage_renders_copy_correctly_for_anon(self):
assert self.css('#content h1').html == 'Pay for Open Source'
def test_loads_for_anon(self):
assert self.css('#banner h1').html == 'Pay for open source.'
assert self.css('#header .sign-in button').html.strip()[:17] == 'Sign in / Sign up'

def test_homepage_renders_copy_correctly_for_authed(self):
def test_loads_for_authed(self):
self.make_participant('alice', claimed_time='now')
self.sign_in('alice')
self.reload()
assert self.css('#content h1').html == 'Pay for Open Source'
assert self.css('#banner h1').html == 'Pay for open source.'
assert self.css('.you-are a').html.strip()[:6] == '~alice'


0 comments on commit 3d5faf0

Please sign in to comment.