<reponame>Necrno/osint-scraper
"""Fixture and request setup for test."""


from pyramid.config import Configurator

import pytest

from osint_scraper.scripts.recon_handler import recon_handler


def main(global_config, **settings):
    """Function returns a Pyramid WSGI application."""
    config = Configurator(settings=settings)
    config.include('pyramid_jinja2')
    config.include('.routes')
    config.scan()
    return config.make_wsgi_app()


@pytest.fixture
def name_example(scope="session"):
    """."""
    return recon_handler(user_name='wmaserati76',
                         checks=['twitter', 'wikipedia',
                                 'medium', 'pinterest', 'github',
                                 'photobucket', 'imgur', 'youtube',
                                 'flickr', 'trip'])


@pytest.fixture
def email_example(scope="session"):
    """."""
    return recon_handler(email='<EMAIL>',
                         checks=['facebook', 'pwned', 'hacked_email'])


@pytest.fixture
def non_name_example(scope="session"):
    """."""
    return recon_handler(user_name='dgfhjeldkslksdglkhsl', checks=['twitter'])


@pytest.fixture
def non_email_example(scope="session"):
    """."""
    return recon_handler(email='<EMAIL>', checks=['twitter'])


@pytest.fixture
def m_name_example(scope="session"):
    """."""
    return recon_handler(user_name='m', checks=['twitter'])


@pytest.fixture
def jf_name_example(scope="session"):
    """."""
    return recon_handler(user_name='jf_112', checks=['twitter'])


@pytest.fixture
def matt_name_example(scope="session"):
    """."""
    return recon_handler(user_name='matt', checks=['twitter'])


@pytest.fixture
def tom_email_example(scope="session"):
    """."""
    return recon_handler(email='<EMAIL>', checks=['twitter'])

"""Fixture and request setup for test."""


from pyramid.config import Configurator

import pytest

from osint_scraper.scripts.recon_handler import recon_handler


def main(global_config, **settings):
    """Function returns a Pyramid WSGI application."""
    config = Configurator(settings=settings)
    config.include('pyramid_jinja2')
    config.include('.routes')
    config.scan()
    return config.make_wsgi_app()


@pytest.fixture
def name_example(scope="session"):
    """."""
    return recon_handler(user_name='wmaserati76',
                         checks=['twitter', 'wikipedia',
                                 'medium', 'pinterest', 'github',
                                 'photobucket', 'imgur', 'youtube',
                                 'flickr', 'trip'])


@pytest.fixture
def email_example(scope="session"):
    """."""
    return recon_handler(email='<EMAIL>',
                         checks=['facebook', 'pwned', 'hacked_email'])


@pytest.fixture
def non_name_example(scope="session"):
    """."""
    return recon_handler(user_name='dgfhjeldkslksdglkhsl', checks=['twitter'])


@pytest.fixture
def non_email_example(scope="session"):
    """."""
    return recon_handler(email='<EMAIL>', checks=['twitter'])


@pytest.fixture
def m_name_example(scope="session"):
    """."""
    return recon_handler(user_name='m', checks=['twitter'])


@pytest.fixture
def jf_name_example(scope="session"):
    """."""
    return recon_handler(user_name='jf_112', checks=['twitter'])


@pytest.fixture
def matt_name_example(scope="session"):
    """."""
    return recon_handler(user_name='matt', checks=['twitter'])


@pytest.fixture
def tom_email_example(scope="session"):
    """."""
    return recon_handler(email='<EMAIL>', checks=['twitter'])
Fixture and request setup for test. Function returns a Pyramid WSGI application. . . . . . . . .