more stravastuff coverage
This commit is contained in:
@@ -1852,6 +1852,28 @@ description: ""
|
||||
response = self.c.get(url)
|
||||
self.assertEqual(response.status_code,200)
|
||||
|
||||
url = reverse('plannedsessions_print_view',kwargs={
|
||||
'userid':self.r.user.id,
|
||||
'startdatestring':self.ps_trimp.startdate.strftime("%Y-%m-%d"),
|
||||
'enddatestring':self.ps_trimp.enddate.strftime("%Y-%m-%d"),
|
||||
})
|
||||
|
||||
response = self.c.get(url)
|
||||
self.assertEqual(response.status_code,200)
|
||||
|
||||
# create shareable link
|
||||
form_data = {
|
||||
'url': url,
|
||||
'ndays': '7'
|
||||
}
|
||||
|
||||
urlshare = '/rowers/access/share/'
|
||||
|
||||
response = self.c.post(urlshare,form_data)
|
||||
self.assertEqual(response.status_code,200)
|
||||
|
||||
|
||||
|
||||
def test_plannedsessions_dateform_view(self):
|
||||
login = self.c.login(username=self.u.username, password=self.password)
|
||||
self.assertTrue(login)
|
||||
|
||||
Reference in New Issue
Block a user