#7301 Drop dependency on Python nose
Closed: fixed 6 years ago Opened 6 years ago by cheimes.

The nose testing framework is dead and no longer maintained, from https://nose.readthedocs.io/en/latest/

Nose has been in maintenance mode for the past several years and will likely cease without a new person/team to take over maintainership. New projects should consider using Nose2, py.test, or just plain unittest/unittest2.

We should drop dependency on nose and replace all usage of nose with unittest or pytest package. Most changes can be automated:

  • Replace raise nose.SkipTest with raise unittest.SkipTest
  • Replace nose.tools.assert_equal(a, b) with assert a == b
  • Replace nose.tools.raises with pytest.raises

Metadata Update from @cheimes:
- Issue priority set to: low
- Issue tagged with: easyfix, tests

6 years ago

Metadata Update from @cheimes:
- Issue assigned to cheimes

6 years ago

master:

  • d7426cc Replace nose with unittest and pytest

Metadata Update from @cheimes:
- Assignee reset

6 years ago

I removed all nose imports from master. There is still a nose compat plugin left in pytest plugin directory. Is the plugin still used by CI?

Which CI? Btw, I don't know answer for any.

JFTR: it's not used by PR CI, however, I'm not sure about Jenkins. @mkubik could you help us here?

Metadata Update from @pvoborni:
- Issue set to the milestone: FreeIPA 4.7

6 years ago

Closing as fixed. Dependency on nose has been removed. The remaining plugin can be removed in another PR.

Metadata Update from @cheimes:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

6 years ago

Login to comment on this ticket.

Metadata