UNC BACS 350

Web Apps with Python/Django

Logo

Lesson 20 - User Accounts

LEARN

Today

Last Lesson

Writing Tests

Data Tests

Example: BookDataTests

class BookDataTests(TestCase):

    def test_book_list()
    def test_book_detail()
    def test_book_add()
    def test_book_edit()
    def test_book_delete()

Data Test Features

View Tests

Example: AccountsViewTests

class AccountsViewTests(TestCase):

    def test_accounts_list_view()
    def test_accounts_detail_view()
    def test_accounts_add_view()
    def test_accounts_edit_view()
    def test_accounts_delete_view()

View Test Features

Test User Accounts

Django Test for Forms

class TestAccountsViews(TestCase):

    def test_home_view(self):
    def test_login_view(self):
    def test_logout_view(self):
    def test_signup_view(self):

BUILD

Linux Commands

Django Operations

Git Operations

Directory Navigation

Automation

bash $ source .bashrc

User Account Module

Add Accounts to Book Builder