mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-28 13:21:25 -07:00
Split basic units (#33510)
Split the one monolithic test for basic.py into several files * Split test_basic.py along categories. This is preliminary to get a handle on things. Eventually we may want to further split it so each file is only testing a single function. * Cleanup unused imports from splitting test_basic.py * Port atomic_move test to pytest. Working on getting rid of need to maintain procenv * Split a test of symbolic_mode_to_octal to follow unittest best practices Each test should only invoke the function under test once * Port test_argument_spec to pytest. * Fix suboptions failure
This commit is contained in:
parent
ba32827f3b
commit
370a7ace4b
16 changed files with 1330 additions and 1359 deletions
|
@ -6,8 +6,6 @@
|
|||
from __future__ import absolute_import, division, print_function
|
||||
__metaclass__ = type
|
||||
|
||||
import sys
|
||||
import json
|
||||
import syslog
|
||||
from itertools import product
|
||||
|
||||
|
@ -16,15 +14,6 @@ import pytest
|
|||
import ansible.module_utils.basic
|
||||
from ansible.module_utils.six import PY3
|
||||
|
||||
try:
|
||||
# Python 3.4+
|
||||
from importlib import reload
|
||||
except ImportError:
|
||||
# Python 2 has reload as a builtin
|
||||
|
||||
# Ignoring python3.0-3.3 (those have imp.reload if we decide we care)
|
||||
pass
|
||||
|
||||
|
||||
class TestAnsibleModuleLogSmokeTest:
|
||||
DATA = [u'Text string', u'Toshio くらとみ non-ascii test']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue