# Path: pagarme/customer.py
# def create(dictionary):
# def find_all():
# def find_by(search_params):
# 
# Path: tests/resources/dictionaries/customer_dictionary.py
# ADDRESS = {
#     'address': {
#         'zipcode': '04571020',
#         'neighborhood': 'Dragon Village',
#         'street': 'Rua Drogon',
#         'street_number': '240'
#     }
# }
# PHONE = {
#     'phone': {
#         'number': '987654321',
#         'ddd': '11'
#     }
# }
# CUSTOMER = {
#     'email': 'daenerys.targaryen@gmail.com',
#     'name': 'Daenerys Targaryen',
#     'document_number': '18152564000105',
#     'address': ADDRESS['address'],
#     'phone': PHONE['phone']
# }


from pagarme import customer
from tests.resources.dictionaries import customer_dictionary
import time


def test_create_customer():
    _customer = customer.create(customer_dictionary.CUSTOMER)
    assert _customer['id'] is not None


def test_find_all_customers():
    all_customers = customer.find_all()
    assert all_customers is not None


def test_find_by(retry):

# Path: pagarme/customer.py
# def create(dictionary):
# def find_all():
# def find_by(search_params):
# 
# Path: tests/resources/dictionaries/customer_dictionary.py
# ADDRESS = {
#     'address': {
#         'zipcode': '04571020',
#         'neighborhood': 'Dragon Village',
#         'street': 'Rua Drogon',
#         'street_number': '240'
#     }
# }
# PHONE = {
#     'phone': {
#         'number': '987654321',
#         'ddd': '11'
#     }
# }
# CUSTOMER = {
#     'email': 'daenerys.targaryen@gmail.com',
#     'name': 'Daenerys Targaryen',
#     'document_number': '18152564000105',
#     'address': ADDRESS['address'],
#     'phone': PHONE['phone']
# }


# Path: tests/customer_test.py
from pagarme import customer
from tests.resources.dictionaries import customer_dictionary
import time



def test_create_customer():
    _customer = customer.create(customer_dictionary.CUSTOMER)
    assert _customer['id'] is not None


def test_find_all_customers():
    all_customers = customer.find_all()
    assert all_customers is not None


def test_find_by(retry):

    _customer = customer.create(customer_dictionary.CUSTOMER)