import pytest


@pytest.fixture
def client(client, read_fixture):

    client.http_mock.get(
        'https://api.clickmeeting.com/v1/conferences/',
        json=read_fixture('app/tests/clickmeeting/fixtures/conferences'),
    )

    return client


def test_find_by_1(client):
    got = client.get_conference(id=2632756)

    assert got['id'] == 2632756


def test_find_by_2(client):
    got = client.get_conference(id=2632756, name='Тестовое мероприятие')

    assert got['id'] == 2632756


@pytest.mark.parametrize('query', [
    dict(id=100500),
    dict(id=2632756, name='Всемирный съезд лохов'),
    dict(id=2632756, nonexistant_Field='Всемирный съезд лохов'),
])
def test_not_found(client, query):
    got = client.get_conference(**query)

    assert got is None

f8a116238130912560fe991950b5d72d728efafe
<mask token>


@pytest.fixture
def client(client, read_fixture):
    client.http_mock.get('https://api.clickmeeting.com/v1/conferences/',
        json=read_fixture('app/tests/clickmeeting/fixtures/conferences'))
    return client


<mask token>


def test_find_by_2(client):
    got = client.get_conference(id=2632756, name='Тестовое мероприятие')
    assert got['id'] == 2632756


<mask token>

<mask token>


@pytest.fixture
def client(client, read_fixture):
    client.http_mock.get('https://api.clickmeeting.com/v1/conferences/',
        json=read_fixture('app/tests/clickmeeting/fixtures/conferences'))
    return client


<mask token>


def test_find_by_2(client):
    got = client.get_conference(id=2632756, name='Тестовое мероприятие')
    assert got['id'] == 2632756


@pytest.mark.parametrize('query', [dict(id=100500), dict(id=2632756, name=
    'Всемирный съезд лохов'), dict(id=2632756, nonexistant_Field=
    'Всемирный съезд лохов')])
def test_not_found(client, query):
    got = client.get_conference(**query)
    assert got is None

<mask token>


@pytest.fixture
def client(client, read_fixture):
    client.http_mock.get('https://api.clickmeeting.com/v1/conferences/',
        json=read_fixture('app/tests/clickmeeting/fixtures/conferences'))
    return client


def test_find_by_1(client):
    got = client.get_conference(id=2632756)
    assert got['id'] == 2632756


def test_find_by_2(client):
    got = client.get_conference(id=2632756, name='Тестовое мероприятие')
    assert got['id'] == 2632756


@pytest.mark.parametrize('query', [dict(id=100500), dict(id=2632756, name=
    'Всемирный съезд лохов'), dict(id=2632756, nonexistant_Field=
    'Всемирный съезд лохов')])
def test_not_found(client, query):
    got = client.get_conference(**query)
    assert got is None

import pytest


@pytest.fixture
def client(client, read_fixture):
    client.http_mock.get('https://api.clickmeeting.com/v1/conferences/',
        json=read_fixture('app/tests/clickmeeting/fixtures/conferences'))
    return client


def test_find_by_1(client):
    got = client.get_conference(id=2632756)
    assert got['id'] == 2632756


def test_find_by_2(client):
    got = client.get_conference(id=2632756, name='Тестовое мероприятие')
    assert got['id'] == 2632756


@pytest.mark.parametrize('query', [dict(id=100500), dict(id=2632756, name=
    'Всемирный съезд лохов'), dict(id=2632756, nonexistant_Field=
    'Всемирный съезд лохов')])
def test_not_found(client, query):
    got = client.get_conference(**query)
    assert got is None

import pytest


@pytest.fixture
def client(client, read_fixture):

    client.http_mock.get(
        'https://api.clickmeeting.com/v1/conferences/',
        json=read_fixture('app/tests/clickmeeting/fixtures/conferences'),
    )

    return client


def test_find_by_1(client):
    got = client.get_conference(id=2632756)

    assert got['id'] == 2632756


def test_find_by_2(client):
    got = client.get_conference(id=2632756, name='Тестовое мероприятие')

    assert got['id'] == 2632756


@pytest.mark.parametrize('query', [
    dict(id=100500),
    dict(id=2632756, name='Всемирный съезд лохов'),
    dict(id=2632756, nonexistant_Field='Всемирный съезд лохов'),
])
def test_not_found(client, query):
    got = client.get_conference(**query)

    assert got is None
