# Path: amivapi/settings.py
# DATE_FORMAT = "%Y-%m-%dT%H:%M:%SZ"
# 
# Path: amivapi/tests/utils.py
# class TestClient(FlaskClient):
# class TestResponse(Response):
# class WebTest(unittest.TestCase, FixtureMixin):
# class WebTestNoAuth(WebTest):
#     def open(self, *args, **kwargs):
#     def json(self):
#     def setUp(self, **extra_config):
#     def tearDown(self):
#     def get_user_token(self, user_id, created=None):
#     def get_root_token(self):
#     def setUp(self, **extra_config):
#         def authenticate_root(resource):
# def skip_if_false(condition, reason):
#     def _skip(func):


from datetime import datetime, timedelta
from io import BytesIO
from os.path import dirname, join
from amivapi.settings import DATE_FORMAT
from amivapi.tests import utils
# -*- coding: utf-8 -*-
#
# license: AGPLv3, see LICENSE for details. In addition we strongly encourage
#          you to buy us beer if we meet and you like the software.
"""Tests for purchases module"""



pdfpath = join(dirname(__file__), "../fixtures", 'test.pdf')
lenapath = join(dirname(__file__), "../fixtures", 'lena.png')


class JobOffersTest(utils.WebTestNoAuth):
    """Test basic functionality of joboffers"""

    def test_add_joboffer_nomedia(self):
        """ Usecase: A firm wants to post a joboffer on the website without any media
        """


# Path: amivapi/settings.py
# DATE_FORMAT = "%Y-%m-%dT%H:%M:%SZ"
# 
# Path: amivapi/tests/utils.py
# class TestClient(FlaskClient):
# class TestResponse(Response):
# class WebTest(unittest.TestCase, FixtureMixin):
# class WebTestNoAuth(WebTest):
#     def open(self, *args, **kwargs):
#     def json(self):
#     def setUp(self, **extra_config):
#     def tearDown(self):
#     def get_user_token(self, user_id, created=None):
#     def get_root_token(self):
#     def setUp(self, **extra_config):
#         def authenticate_root(resource):
# def skip_if_false(condition, reason):
#     def _skip(func):


# Path: amivapi/tests/joboffers/test_joboffers.py
from datetime import datetime, timedelta
from io import BytesIO
from os.path import dirname, join
from amivapi.settings import DATE_FORMAT
from amivapi.tests import utils

# -*- coding: utf-8 -*-
#
# license: AGPLv3, see LICENSE for details. In addition we strongly encourage
#          you to buy us beer if we meet and you like the software.
"""Tests for purchases module"""



pdfpath = join(dirname(__file__), "../fixtures", 'test.pdf')
lenapath = join(dirname(__file__), "../fixtures", 'lena.png')


class JobOffersTest(utils.WebTestNoAuth):
    """Test basic functionality of joboffers"""

    def test_add_joboffer_nomedia(self):
        """ Usecase: A firm wants to post a joboffer on the website without any media
        """


        time_end = (datetime.utcnow() + timedelta(days=2)).strftime(DATE_FORMAT)