from __future__ import (absolute_import, division,
                        print_function, unicode_literals)

import pytest
from flask import url_for

from headphones2.compat.http import HTTPStatus

SAMPLE_GOOD_CONFIGURATION = {
    'libraryPath': r'\\penny\Music',
    'debug': 'false'
}


@pytest.mark.parametrize("input_params, status_code", [
    (SAMPLE_GOOD_CONFIGURATION, HTTPStatus.OK.value),
])
def test_update_configuration_returns_correct_http_codes(client, input_params, status_code):
    url = url_for('configuration_api.update_configuration', **input_params)
    res = client.get(url)
    assert res.status_code == status_code


def test_configuration_loads_successfully(client):
    url = url_for('configuration_api.update_configuration')
    res = client.get(url)
    assert res.status_code == HTTPStatus.OK.value

c27dc12235e181b50f3ac8e0e305dbb4ea15371c
<mask token>


def test_configuration_loads_successfully(client):
    url = url_for('configuration_api.update_configuration')
    res = client.get(url)
    assert res.status_code == HTTPStatus.OK.value

<mask token>


@pytest.mark.parametrize('input_params, status_code', [(
    SAMPLE_GOOD_CONFIGURATION, HTTPStatus.OK.value)])
def test_update_configuration_returns_correct_http_codes(client,
    input_params, status_code):
    url = url_for('configuration_api.update_configuration', **input_params)
    res = client.get(url)
    assert res.status_code == status_code


def test_configuration_loads_successfully(client):
    url = url_for('configuration_api.update_configuration')
    res = client.get(url)
    assert res.status_code == HTTPStatus.OK.value

<mask token>
SAMPLE_GOOD_CONFIGURATION = {'libraryPath': '\\\\penny\\Music', 'debug':
    'false'}


@pytest.mark.parametrize('input_params, status_code', [(
    SAMPLE_GOOD_CONFIGURATION, HTTPStatus.OK.value)])
def test_update_configuration_returns_correct_http_codes(client,
    input_params, status_code):
    url = url_for('configuration_api.update_configuration', **input_params)
    res = client.get(url)
    assert res.status_code == status_code


def test_configuration_loads_successfully(client):
    url = url_for('configuration_api.update_configuration')
    res = client.get(url)
    assert res.status_code == HTTPStatus.OK.value

from __future__ import absolute_import, division, print_function, unicode_literals
import pytest
from flask import url_for
from headphones2.compat.http import HTTPStatus
SAMPLE_GOOD_CONFIGURATION = {'libraryPath': '\\\\penny\\Music', 'debug':
    'false'}


@pytest.mark.parametrize('input_params, status_code', [(
    SAMPLE_GOOD_CONFIGURATION, HTTPStatus.OK.value)])
def test_update_configuration_returns_correct_http_codes(client,
    input_params, status_code):
    url = url_for('configuration_api.update_configuration', **input_params)
    res = client.get(url)
    assert res.status_code == status_code


def test_configuration_loads_successfully(client):
    url = url_for('configuration_api.update_configuration')
    res = client.get(url)
    assert res.status_code == HTTPStatus.OK.value

from __future__ import (absolute_import, division,
                        print_function, unicode_literals)

import pytest
from flask import url_for

from headphones2.compat.http import HTTPStatus

SAMPLE_GOOD_CONFIGURATION = {
    'libraryPath': r'\\penny\Music',
    'debug': 'false'
}


@pytest.mark.parametrize("input_params, status_code", [
    (SAMPLE_GOOD_CONFIGURATION, HTTPStatus.OK.value),
])
def test_update_configuration_returns_correct_http_codes(client, input_params, status_code):
    url = url_for('configuration_api.update_configuration', **input_params)
    res = client.get(url)
    assert res.status_code == status_code


def test_configuration_loads_successfully(client):
    url = url_for('configuration_api.update_configuration')
    res = client.get(url)
    assert res.status_code == HTTPStatus.OK.value
