@pytest.mark.parametrize('url, req', [('/api/v1/awards/', {'filters': []}), ('/api/v1/awards/', {'filters': [{'field': 'date_signed', 'operation': 'greater_than_or_equal', 'value': '2016-06-01'}]}), ('/api/v1/awards/', {'filters': [{'field': 'date_signed', 'operation': 'greater_than_or_equal', 'value': '2016-06-01'}, {'field': 'date_signed', 'operation': 'less_than', 'value': '2017-06-01'}]}), ('/api/v1/awards/', {'filters': [{'combine_method': 'OR', 'filters': [{'field': 'type', 'operation': 'equals', 'value': 'A'}, {'field': 'type', 'operation': 'equals', 'value': 'B'}]}]}), ('/api/v1/awards/', {'filters': [{'field': 'date_signed', 'operation': 'greater_than_or_equal', 'value': '2016-06-01'}, {'combine_method': 'OR', 'filters': [{'field': 'type', 'operation': 'equals', 'value': 'A'}, {'combine_method': 'AND', 'filters': [{'field': 'type', 'operation': 'equals', 'value': 'B'}, {'field': 'date_signed', 'operation': 'less_than', 'value': '2017-06-01'}]}]}]}), ('/api/v1/awards/', {'filters': [{'field': 'recipient__recipient_name', 'operation': 'equals', 'value': 'GENERAL ELECTRIC COMPANY'}]}), ('/api/v1/awards/', {'fields': ['description', 'recipient']}), ('/api/v1/awards/', {'exclude': ['type']}), ('/api/v1/awards/', {'verbose': True}), ('/api/v1/awards/', {'fields': ['type'], 'filters': [{'field': 'date_signed', 'operation': 'greater_than', 'value': '2016-06-01'}]}), ('/api/v1/awards/', {'order': ['recipient__recipient_name']}), ('/api/v1/awards/', {'order': ['-recipient__recipient_name']}), ('/api/v1/awards/', {'page': 5, 'limit': 10}), ('/api/v1/awards/total/', {'field': 'total_obligation', 'group': 'date_signed__fy'}), ('/api/v1/awards/total/', {'field': 'total_obligation', 'group': 'date_signed', 'aggregate': 'count', 'date_part': 'month'})])
@pytest.mark.django_db
def test_intro_tutorial_post_requests(client, url, req, documentation_test_data):
    assert (client.post(url, data=json.dumps(req), content_type='application/json').status_code == status.HTTP_200_OK)
@pytest.mark.parametrize('url, req', [('/api/v1/awards/', {'filters': []}), ('/api/v1/awards/', {'filters': [{'field': 'date_signed', 'operation': 'greater_than_or_equal', 'value': '2016-06-01'}]}), ('/api/v1/awards/', {'filters': [{'field': 'date_signed', 'operation': 'greater_than_or_equal', 'value': '2016-06-01'}, {'field': 'date_signed', 'operation': 'less_than', 'value': '2017-06-01'}]}), ('/api/v1/awards/', {'filters': [{'combine_method': 'OR', 'filters': [{'field': 'type', 'operation': 'equals', 'value': 'A'}, {'field': 'type', 'operation': 'equals', 'value': 'B'}]}]}), ('/api/v1/awards/', {'filters': [{'field': 'date_signed', 'operation': 'greater_than_or_equal', 'value': '2016-06-01'}, {'combine_method': 'OR', 'filters': [{'field': 'type', 'operation': 'equals', 'value': 'A'}, {'combine_method': 'AND', 'filters': [{'field': 'type', 'operation': 'equals', 'value': 'B'}, {'field': 'date_signed', 'operation': 'less_than', 'value': '2017-06-01'}]}]}]}), ('/api/v1/awards/', {'filters': [{'field': 'recipient__recipient_name', 'operation': 'equals', 'value': 'GENERAL ELECTRIC COMPANY'}]}), ('/api/v1/awards/', {'fields': ['description', 'recipient']}), ('/api/v1/awards/', {'exclude': ['type']}), ('/api/v1/awards/', {'verbose': True}), ('/api/v1/awards/', {'fields': ['type'], 'filters': [{'field': 'date_signed', 'operation': 'greater_than', 'value': '2016-06-01'}]}), ('/api/v1/awards/', {'order': ['recipient__recipient_name']}), ('/api/v1/awards/', {'order': ['-recipient__recipient_name']}), ('/api/v1/awards/', {'page': 5, 'limit': 10}), ('/api/v1/awards/total/', {'field': 'total_obligation', 'group': 'date_signed__fy'}), ('/api/v1/awards/total/', {'field': 'total_obligation', 'group': 'date_signed', 'aggregate': 'count', 'date_part': 'month'})])
@pytest.mark.django_db
def test_intro_tutorial_post_requests(client, url, req, documentation_test_data):
    assert (client.post(url, data=json.dumps(req), content_type='application/json').status_code == status.HTTP_200_OK)