Completed
Push — master ( 6a45fe...652fdd )
by Vijay
58s
created

test_signup_form()   A

Complexity

Conditions 4

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 4
dl 0
loc 5
rs 9.2
1
from wye.profiles.forms import UserProfileForm
2
from wye.profiles.forms import SignupForm
3
4
5
def test_edit_profile():
6
    userprofileform = UserProfileForm(auto_id=False)
7
    for field in userprofileform.fields.values():
8
        if (field.required):
9
            assert field.label.endswith("*")
10
11
12
def test_signup_form():
13
    signupform = SignupForm(auto_id=False)
14
    for field in signupform.fields.values():
15
        if (field.required):
16
            assert field.label.endswith("*")
17