Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write tests for checking the archive request feature #177

Open
Tracked by #309
anshuldutt21 opened this issue Jun 11, 2020 · 0 comments
Open
Tracked by #309

Write tests for checking the archive request feature #177

anshuldutt21 opened this issue Jun 11, 2020 · 0 comments
Labels

Comments

@anshuldutt21
Copy link
Contributor

anshuldutt21 commented Jun 11, 2020

 ` driver.find_element_by_id('unarchive_button' + str(archive_license_obj.id)).click()
    driver.find_element_by_id('confirm_unarchive').click()
    self.assertEquals(LicenseRequest.objects.get(id=archive_license_obj.id).archive, False)

    if driver.find_element_by_id('unarchive_button' + str(archive_license_obj.id)):
        driver.find_element_by_id('unarchive_button' + str(archive_license_obj.id)).click()
        driver.find_element_by_id('confirm_unarchive').click()
        self.assertEquals(LicenseRequest.objects.get(id=archive_license_obj.id).archive, False)
    else:
        pass`

The archive request feature is available only for those who are github logged in. Currently the tests for users who are github logged in and for those who are not are under the same function. We need to write different functions(test cases) for github logged in users and users are not github logged in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants