# Path: tests/base.py
# def create_user(password):
# def login(browser, url, user, password):
# def login_and_confirm(browser, url, outbox, user, password):
# def workshop_create(browser, url, org, section):
# def profile_poc_create(
#         browser, url, usertype_id,
#         section_id, state_id, location_id):
# def profile_tutor_create(
#         browser, url, usertype_id,
#         section_id, state_id, location_id):
# 
# Path: tests/factories.py
# class Factory(factory.DjangoModelFactory):
#     class Meta:
# class UserTypeFactory(Factory):
#     class Meta:
# class UserFactory(Factory):
#     class Meta:
# class StateFactory(Factory):
#     class Meta:
# class LocationFactory(Factory):
#     class Meta:
# class OrganisationFactory(Factory):
#     class Meta:
# class RegionalLeadFactory(Factory):
#     class Meta:
# class WorkshopSectionFactory(Factory):
#     class Meta:
# class WorkshopFactory(Factory):
#     class Meta:
# class WorkshopRatingValuesFactory(Factory):
#     class Meta:
# def create_usertype(**kwargs):
# def create_user(**kwargs):
# def create_organisation(**kwargs):
# def create_regional_lead(**kwargs):
# def create_workshop(**kwargs):
# def create_workshop_rating(**kwargs):
# def create_workshop_section(**kwargs):
# def create_locaiton(**kwargs):
# def create_state(**kwargs):
# 
# Path: wye/base/constants.py
# class WorkshopStatus:
#     _DRAFT = [1, "Draft"]
#     _REQUESTED = [2, "Workshop Requested"]
#     _ACCEPTED = [3, "Workshop Accepted "]
#     _DECLINED = [4, "Workshop Declined"]
#     _FEEDBACK_PENDING = [5, "FeedBack Pending"]
#     _HOLD = [6, "Workshop On Hold"]
#     _COMPLETED = [7, "Workshop Completed"]
#     _UNABLE_TO_COMPLETE = [8, "Workshop unable to complete"]


from tests import base
from datetime import datetime, timedelta
from tests import factories as f
from .. utils import create_user_verify_login
from wye.base.constants import WorkshopStatus

# import os
outbox_len = 0
password = '123123'


def test_student_profile_create(base_url, browser, outbox):
    """
    """
    student_poc = f.create_usertype(slug='student', display_name='Student')
    f.create_usertype(slug='tutor', display_name='tutor')
    user = create_user_verify_login(base_url, browser, outbox)
    user.first_name = 'First Name'
    user.last_name = 'Last Name'
    user.save()
    location1 = f.create_locaiton()

# Path: tests/base.py
# def create_user(password):
# def login(browser, url, user, password):
# def login_and_confirm(browser, url, outbox, user, password):
# def workshop_create(browser, url, org, section):
# def profile_poc_create(
#         browser, url, usertype_id,
#         section_id, state_id, location_id):
# def profile_tutor_create(
#         browser, url, usertype_id,
#         section_id, state_id, location_id):
# 
# Path: tests/factories.py
# class Factory(factory.DjangoModelFactory):
#     class Meta:
# class UserTypeFactory(Factory):
#     class Meta:
# class UserFactory(Factory):
#     class Meta:
# class StateFactory(Factory):
#     class Meta:
# class LocationFactory(Factory):
#     class Meta:
# class OrganisationFactory(Factory):
#     class Meta:
# class RegionalLeadFactory(Factory):
#     class Meta:
# class WorkshopSectionFactory(Factory):
#     class Meta:
# class WorkshopFactory(Factory):
#     class Meta:
# class WorkshopRatingValuesFactory(Factory):
#     class Meta:
# def create_usertype(**kwargs):
# def create_user(**kwargs):
# def create_organisation(**kwargs):
# def create_regional_lead(**kwargs):
# def create_workshop(**kwargs):
# def create_workshop_rating(**kwargs):
# def create_workshop_section(**kwargs):
# def create_locaiton(**kwargs):
# def create_state(**kwargs):
# 
# Path: wye/base/constants.py
# class WorkshopStatus:
#     _DRAFT = [1, "Draft"]
#     _REQUESTED = [2, "Workshop Requested"]
#     _ACCEPTED = [3, "Workshop Accepted "]
#     _DECLINED = [4, "Workshop Declined"]
#     _FEEDBACK_PENDING = [5, "FeedBack Pending"]
#     _HOLD = [6, "Workshop On Hold"]
#     _COMPLETED = [7, "Workshop Completed"]
#     _UNABLE_TO_COMPLETE = [8, "Workshop unable to complete"]


# Path: tests/functional/test_student_flow.py
from tests import base
from datetime import datetime, timedelta
from tests import factories as f
from .. utils import create_user_verify_login
from wye.base.constants import WorkshopStatus


# import os
outbox_len = 0
password = '123123'


def test_student_profile_create(base_url, browser, outbox):
    """
    """
    student_poc = f.create_usertype(slug='student', display_name='Student')
    f.create_usertype(slug='tutor', display_name='tutor')
    user = create_user_verify_login(base_url, browser, outbox)
    user.first_name = 'First Name'
    user.last_name = 'Last Name'
    user.save()
    location1 = f.create_locaiton()

    poc_type = f.create_usertype(slug='poc', display_name='poc')