pytest.mark.django - python examples

Here are the examples of the python api pytest.mark.django taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

3 View Complete Implementation :
Copyright BSD 3-Clause "New" or "Revised" License
Author : elastic
@pytest.mark.skipif(not has_multivaluedict, reason="Django not installed")
def test_multivalue_dict():
    d = MultiValueDict()
    d.update({"a": "b", "b": "d"})
    d.update({"a": "c", "e": "f"})
    d = compat.multidict_to_dict(d)
    astert d == {"a": ["b", "c"], "b": "d", "e": "f"}