"""Contract test cases for start."""
import json
from typing import Any

import pytest
import requests


@pytest.mark.contract
def test_create_startliste(http_service: Any) -> None:
    """Should return status 201."""
    url = f"{http_service}/start"
    with open("tests/files/G11KvartStart.json") as json_file:
        data = json.load(json_file)

    headers = {"content-type": "application/json; charset=utf-8"}
    response = requests.post(url, headers=headers, json=data)
    assert response.status_code == 201


@pytest.mark.contract
def test_start(http_service: Any) -> None:
    """Should return status 200 and html."""
    url = f"{http_service}/start"
    response = requests.get(url)

    assert response.status_code == 200
    assert response.headers["content-type"] == "text/html; charset=utf-8"

    assert len(response.text) > 0

07e5759d79d147892eb228829593e80045c645bf
<mask token>

<mask token>


@pytest.mark.contract
def test_create_startliste(http_service: Any) ->None:
    """Should return status 201."""
    url = f'{http_service}/start'
    with open('tests/files/G11KvartStart.json') as json_file:
        data = json.load(json_file)
    headers = {'content-type': 'application/json; charset=utf-8'}
    response = requests.post(url, headers=headers, json=data)
    assert response.status_code == 201


<mask token>

<mask token>


@pytest.mark.contract
def test_create_startliste(http_service: Any) ->None:
    """Should return status 201."""
    url = f'{http_service}/start'
    with open('tests/files/G11KvartStart.json') as json_file:
        data = json.load(json_file)
    headers = {'content-type': 'application/json; charset=utf-8'}
    response = requests.post(url, headers=headers, json=data)
    assert response.status_code == 201


@pytest.mark.contract
def test_start(http_service: Any) ->None:
    """Should return status 200 and html."""
    url = f'{http_service}/start'
    response = requests.get(url)
    assert response.status_code == 200
    assert response.headers['content-type'] == 'text/html; charset=utf-8'
    assert len(response.text) > 0

<mask token>
import json
from typing import Any
import pytest
import requests


@pytest.mark.contract
def test_create_startliste(http_service: Any) ->None:
    """Should return status 201."""
    url = f'{http_service}/start'
    with open('tests/files/G11KvartStart.json') as json_file:
        data = json.load(json_file)
    headers = {'content-type': 'application/json; charset=utf-8'}
    response = requests.post(url, headers=headers, json=data)
    assert response.status_code == 201


@pytest.mark.contract
def test_start(http_service: Any) ->None:
    """Should return status 200 and html."""
    url = f'{http_service}/start'
    response = requests.get(url)
    assert response.status_code == 200
    assert response.headers['content-type'] == 'text/html; charset=utf-8'
    assert len(response.text) > 0

"""Contract test cases for start."""
import json
from typing import Any

import pytest
import requests


@pytest.mark.contract
def test_create_startliste(http_service: Any) -> None:
    """Should return status 201."""
    url = f"{http_service}/start"
    with open("tests/files/G11KvartStart.json") as json_file:
        data = json.load(json_file)

    headers = {"content-type": "application/json; charset=utf-8"}
    response = requests.post(url, headers=headers, json=data)
    assert response.status_code == 201


@pytest.mark.contract
def test_start(http_service: Any) -> None:
    """Should return status 200 and html."""
    url = f"{http_service}/start"
    response = requests.get(url)

    assert response.status_code == 200
    assert response.headers["content-type"] == "text/html; charset=utf-8"

    assert len(response.text) > 0
