Here are the examples of the python api pytest.mark.first taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
3
Example 1
Project: pyoko Source File: test_model_relations.py
@pytest.mark.first
def test_delete_rel_many_to_many(self, force=True):
self.prepare_testbed()
can_eat = Permission(name="can eat", codename='can_eat').blocking_save()
arole = AbstractRole(key="arole").save()
brole = AbstractRole(key="brole").save()
arole.Permissions(permission=can_eat)
brole.Permissions(permission=can_eat)
arole.blocking_save()
brole.blocking_save()
del arole.Permissions[can_eat]
arole.save()
can_eat.reload()
assert arole not in can_eat.abstract_role_set
assert brole in can_eat.abstract_role_set
3
Example 2
@pytest.mark.first
def test_init():
"""Test if the commands work as expected when no tags are defined"""
expected = 'Nothing to list\n'
assert run('dtags') == expected
assert run('dtags list') == expected
assert run('dtags list test') == expected
assert run('dtags reverse') == expected
assert run('dtags reverse test') == expected
assert run('dtags commands') == COMMANDS + '\n'
assert run('dtags clean') == 'Nothing to clean\n'
0
Example 3
Project: dcos Source File: test_composition.py
@pytest.mark.first
def test_cluster_is_up(cluster):
pass