

from __future__ import print_function

import pytest
from random import randint


from patchboard.tests.fixtures import (trivial_net_pb,
                                       trivial_net_resources,
                                       trivial_net_users)
pytest.mark.usefixtures(trivial_net_pb,
                        trivial_net_resources,
                        trivial_net_users)


@pytest.mark.xfail
def test_users_create(trivial_net_users):
    login = "foo-{0}".format(randint(1, 100000))
    user = trivial_net_users.create({u'login': login})



from __future__ import print_function

import pytest
from random import randint


from patchboard.tests.fixtures import (trivial_net_pb,
                                       trivial_net_resources,
                                       trivial_net_users)
pytest.mark.usefixtures(trivial_net_pb,
                        trivial_net_resources,
                        trivial_net_users)


def test_users_create(trivial_net_users):
    login = "foo-{0}".format(randint(1, 100000))
    user = trivial_net_users.create({u'login': login})

Remove xfail from working test
Remove xfail from working test

  
  
  from __future__ import print_function
  
  import pytest
  from random import randint
  
  
  from patchboard.tests.fixtures import (trivial_net_pb,
                                         trivial_net_resources,
                                         trivial_net_users)
  pytest.mark.usefixtures(trivial_net_pb,
                          trivial_net_resources,
                          trivial_net_users)
  
  
- @pytest.mark.xfail
  def test_users_create(trivial_net_users):
      login = "foo-{0}".format(randint(1, 100000))
      user = trivial_net_users.create({u'login': login})
  
Remove xfail from working test
## Code Before:


from __future__ import print_function

import pytest
from random import randint


from patchboard.tests.fixtures import (trivial_net_pb,
                                       trivial_net_resources,
                                       trivial_net_users)
pytest.mark.usefixtures(trivial_net_pb,
                        trivial_net_resources,
                        trivial_net_users)


@pytest.mark.xfail
def test_users_create(trivial_net_users):
    login = "foo-{0}".format(randint(1, 100000))
    user = trivial_net_users.create({u'login': login})

## Instruction:
Remove xfail from working test
## Code After:


from __future__ import print_function

import pytest
from random import randint


from patchboard.tests.fixtures import (trivial_net_pb,
                                       trivial_net_resources,
                                       trivial_net_users)
pytest.mark.usefixtures(trivial_net_pb,
                        trivial_net_resources,
                        trivial_net_users)


def test_users_create(trivial_net_users):
    login = "foo-{0}".format(randint(1, 100000))
    user = trivial_net_users.create({u'login': login})
