mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-07 06:34:23 -07:00
Fix: add __metaclass__ for Python 2 compatibility in test
This commit is contained in:
parent
4aa341ae63
commit
8949e2b598
1 changed files with 2 additions and 1 deletions
|
@ -1,9 +1,10 @@
|
||||||
from __future__ import absolute_import, division, print_function
|
from __future__ import absolute_import, division, print_function
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from unittest.mock import mock_open, patch, MagicMock
|
from unittest.mock import mock_open, patch, MagicMock
|
||||||
from nfs_exports_info import get_exports
|
from nfs_exports_info import get_exports
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def fake_exports_content():
|
def fake_exports_content():
|
||||||
return """
|
return """
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue