356f907 pytest: Migrate unittest/nose to Pytest fixtures

25 files Authored by slev 4 years ago, Committed by abiagion 4 years ago,
25 files changed. 898 lines added. 899 lines removed.
ipatests/test_cmdline/cmdline.py
file modified
+1 -2
ipatests/test_cmdline/test_cli.py
file modified
+5 -6
ipatests/test_install/test_updates.py
file modified
+50 -48
ipatests/test_integration/test_legacy_clients.py
file modified
+23 -22
ipatests/test_integration/test_trust.py
file modified
+4 -3
ipatests/test_ipalib/test_rpc.py
file modified
+4 -5
ipatests/test_ipalib/test_text.py
file modified
+3 -4
ipatests/test_ipapython/test_cookie.py
file modified
+236 -234
ipatests/test_ipapython/test_dn.py
file modified
+456 -451
ipatests/test_ipapython/test_ipavalidate.py
file modified
+44 -44
ipatests/test_ipaserver/test_adtrust_mockup.py
file modified
+12 -7
ipatests/test_ipaserver/test_changepw.py
file modified
+1 -3
ipatests/test_ipaserver/test_ldap.py
file modified
+3 -4
ipatests/test_ipaserver/test_secrets.py
file modified
+12 -7
ipatests/test_webui/ui_driver.py
file modified
+10 -12
ipatests/test_xmlrpc/test_automember_plugin.py
file modified
+3 -4
ipatests/test_xmlrpc/test_cert_plugin.py
file modified
+5 -6
ipatests/test_xmlrpc/test_dns_plugin.py
file modified
+15 -17
ipatests/test_xmlrpc/test_external_members.py
file modified
+1 -3
ipatests/test_xmlrpc/test_netgroup_plugin.py
file modified
+1 -1
ipatests/test_xmlrpc/test_permission_plugin.py
file modified
+1 -2
ipatests/test_xmlrpc/test_stageuser_plugin.py
file modified
+1 -2
ipatests/test_xmlrpc/test_trust_plugin.py
file modified
+1 -3
ipatests/test_xmlrpc/test_vault_plugin.py
file modified
+1 -3
ipatests/test_xmlrpc/xmlrpc_test.py
file modified
+5 -6
    pytest: Migrate unittest/nose to Pytest fixtures
    
    Even though Pytest supports xunit style setups, unittest and nose
    tests, this support is limited and may be dropped in the future
    releases. Worst of all is that the mixing of various test
    frameworks results in weird conflicts and of course, is not widely
    tested.
    
    This is a part of work to remove the mixing of test idioms in the
    IPA's test suite:
    1) replace unittest.TestCase subclasses
    2) replace unittest test controls (SkipTest, fail, etc.)
    3) replace unittest assertions
    
    Related: https://pagure.io/freeipa/issue/7989
    Signed-off-by: Stanislav Levin <slev@altlinux.org>
    Reviewed-By: Christian Heimes <cheimes@redhat.com>
    
        
file modified
+456 -451