<commit_before># -*- coding: utf-8 -*-
import pytest
from fixture.application import Application
from model.contact import Contact


@pytest.fixture
def app(request):
    fixture = Application()
    request.addfinalizer(fixture.destroy)
    return fixture


def test_add_contact(app):
    app.session.login(username="admin", password="<PASSWORD>")
    app.contact.create(Contact(firstname="Vasyly", lastname="Petrov", nickname="vasya26", company="Google",
                               address="Belgorod, Lenina str., 10", mobile_phone="8-052-709-16-22", email="<EMAIL>"))
    app.session.logout()

<commit_msg>Deleted fixture creating from TestAddContact<commit_after># -*- coding: utf-8 -*-
from model.contact import Contact


def test_add_contact(app):
    app.session.login(username="admin", password="<PASSWORD>")
    app.contact.create(Contact(firstname="Oleg", lastname="Lesovoy", nickname="olegles", company="Google",
                               address="Belgorod, Lenina str., 12", mobile_phone="8-052-706-15-22", email="<EMAIL>"))
    app.session.logout()


{'fraction_non_alphanumeric': 0.15219421101774042, 'fraction_numerical': 0.028011204481792718, 'mean_word_length': 4.056603773584905, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7524507', 'n_tokens_mistral': 340, 'n_tokens_neox': 323, 'n_words': 62}