Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #529 from joepvd/flexmock-update-0.11
Browse files Browse the repository at this point in the history
Flexmock update 0.11
  • Loading branch information
joepvd authored Nov 9, 2021
2 parents 4107d82 + b3cc4c3 commit 0732536
Show file tree
Hide file tree
Showing 51 changed files with 9 additions and 59 deletions.
1 change: 0 additions & 1 deletion doozer
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import absolute_import, print_function, unicode_literals
from doozerlib.cli.__main__ import main

if __name__ == "__main__":
Expand Down
1 change: 0 additions & 1 deletion doozerlib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals
import sys
if sys.version_info < (3, 6):
sys.exit('Sorry, Python < 3.6 is not supported.')
Expand Down
1 change: 0 additions & 1 deletion doozerlib/assertion.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
The use of the FileNotFound exception makes this Python3 ready.
Making them functions keeps the exception definition localized.
"""
from __future__ import absolute_import, print_function, unicode_literals
import os
import errno

Expand Down
1 change: 0 additions & 1 deletion doozerlib/brew.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""
Utility functions for general interactions with Brew and Builds
"""
from __future__ import absolute_import, print_function, unicode_literals

# stdlib
import json
Expand Down
1 change: 0 additions & 1 deletion doozerlib/cli/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import absolute_import, print_function, unicode_literals
import click
import os
import shutil
Expand Down
1 change: 0 additions & 1 deletion doozerlib/cli/cli_opts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals
import yaml
import io

Expand Down
1 change: 0 additions & 1 deletion doozerlib/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals
from future.utils import bytes_to_native_str
from . import metadata
import yaml
Expand Down
1 change: 0 additions & 1 deletion doozerlib/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals


# Environment variables to disable Git stdin prompts for username, password, etc
Expand Down
1 change: 0 additions & 1 deletion doozerlib/coverity.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals

import os
import hashlib
Expand Down
1 change: 0 additions & 1 deletion doozerlib/dblib.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals
from future.utils import as_native_str
import time
import os
Expand Down
1 change: 0 additions & 1 deletion doozerlib/dotconfig.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# This file is part of dotconfig project <https://github.com/adammhaile/dotconfig>
# and released under LGPL v3 <https://www.gnu.org/licenses/lgpl-3.0.en.html>

from __future__ import absolute_import, print_function, unicode_literals
from future.utils import string_types
import yaml
import os
Expand Down
1 change: 0 additions & 1 deletion doozerlib/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Common tooling exceptions. Store them in this central place to
avoid circular imports
"""
from __future__ import absolute_import, print_function, unicode_literals


class DoozerFatalError(Exception):
Expand Down
1 change: 0 additions & 1 deletion doozerlib/exectools.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
ordinary subprocess behaviors.
"""

from __future__ import absolute_import, print_function, unicode_literals
import asyncio
from asyncio import events
import contextvars
Expand Down
1 change: 0 additions & 1 deletion doozerlib/gitdata.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# This file is part of gitdata project <https://github.com/adammhaile/gitdata>
# and released under LGPL v3 <https://www.gnu.org/licenses/lgpl-3.0.en.html>

from __future__ import absolute_import, print_function, unicode_literals
from future import standard_library
standard_library.install_aliases()
import yaml
Expand Down
1 change: 0 additions & 1 deletion doozerlib/image.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals

import hashlib
import json
Expand Down
1 change: 0 additions & 1 deletion doozerlib/logutil.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals
import logging


Expand Down
1 change: 0 additions & 1 deletion doozerlib/model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals
from future.utils import as_native_str


Expand Down
1 change: 0 additions & 1 deletion doozerlib/pushd.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
in a working directory other than the CWD and return without needing to
explicitly handle it.
"""
from __future__ import absolute_import, print_function, unicode_literals

import threading
import pathlib
Expand Down
1 change: 0 additions & 1 deletion doozerlib/repos.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals
from .model import Model, ModelException, Missing
import yaml
import requests
Expand Down
1 change: 0 additions & 1 deletion doozerlib/rhcos.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals

import json
from typing import Dict, List, Tuple, Optional
Expand Down
1 change: 0 additions & 1 deletion doozerlib/runtime.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals
from multiprocessing.pool import MapResult
from future import standard_library
standard_library.install_aliases()
Expand Down
1 change: 0 additions & 1 deletion doozerlib/state.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals
STATE_PEND = 'pending'
STATE_PASS = 'passed'
STATE_FAIL = 'failed'
Expand Down
1 change: 0 additions & 1 deletion functional_tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals
import subprocess
import os
import tempfile
Expand Down
1 change: 0 additions & 1 deletion functional_tests/test_cleanup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals
import unittest
from . import run_doozer, get_working_dir
import os
Expand Down
1 change: 0 additions & 1 deletion functional_tests/test_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals
import unittest
import yaml
from . import run_doozer, get_working_dir
Expand Down
1 change: 0 additions & 1 deletion functional_tests/test_images.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals
import unittest
import os
import pygit2
Expand Down
1 change: 0 additions & 1 deletion functional_tests/test_release.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals
import unittest
import io
import os
Expand Down
1 change: 0 additions & 1 deletion functional_tests/test_rpms.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals
import unittest
import os
import pygit2
Expand Down
1 change: 0 additions & 1 deletion rundoozer/rundoozer
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import absolute_import, print_function, unicode_literals
import os
import shutil
import tempfile
Expand Down
1 change: 0 additions & 1 deletion rundoozer/setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import absolute_import, print_function, unicode_literals
from setuptools import setup


Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from setuptools import setup, find_packages
import sys
if sys.version_info < (3, 6):
Expand Down
1 change: 0 additions & 1 deletion tests/test_assertion.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""
Test the task related functions for the OpenShift Image/RPM Build Tool
"""
from __future__ import absolute_import, print_function, unicode_literals
import unittest

from doozerlib import assertion
Expand Down
1 change: 0 additions & 1 deletion tests/test_brew_inspector.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
from __future__ import absolute_import, print_function, unicode_literals

from pathlib import Path
import os
Expand Down
1 change: 0 additions & 1 deletion tests/test_distgit/support.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals
from future import standard_library

from doozerlib.assembly import AssemblyTypes
Expand Down
1 change: 0 additions & 1 deletion tests/test_distgit/test_build_image_ref_name.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals
import unittest
from doozerlib import distgit

Expand Down
1 change: 0 additions & 1 deletion tests/test_distgit/test_convert_source_url_to_https.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals
import unittest
from doozerlib import util

Expand Down
3 changes: 1 addition & 2 deletions tests/test_distgit/test_generic_distgit.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
from __future__ import absolute_import, print_function, unicode_literals

import errno
import os
import unittest

import flexmock
from flexmock import flexmock
import mock

from doozerlib import distgit, model
Expand Down
3 changes: 1 addition & 2 deletions tests/test_distgit/test_image_distgit/test_image_distgit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals
import io
import logging

Expand All @@ -7,7 +6,7 @@
import unittest
from threading import Lock

import flexmock
from flexmock import flexmock
from mock import MagicMock

from doozerlib import distgit, model
Expand Down
3 changes: 1 addition & 2 deletions tests/test_distgit/test_image_distgit/test_push_image.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
from __future__ import absolute_import, print_function, unicode_literals
import errno
import os
import sys
import io
import unittest

import flexmock
from flexmock import flexmock

from doozerlib import distgit
from doozerlib.assembly import AssemblyTypes
Expand Down
3 changes: 1 addition & 2 deletions tests/test_distgit/test_pull_image.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from __future__ import absolute_import, print_function, unicode_literals
import unittest
import flexmock
from flexmock import flexmock
from doozerlib import distgit


Expand Down
3 changes: 1 addition & 2 deletions tests/test_distgit/test_recursive_overwrite.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from __future__ import absolute_import, print_function, unicode_literals
import unittest
import flexmock
from flexmock import flexmock
from doozerlib import distgit


Expand Down
1 change: 0 additions & 1 deletion tests/test_distgit/test_rpm_distgit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals

import asyncio
import unittest
Expand Down
1 change: 0 additions & 1 deletion tests/test_exectools.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
Test functions related to controlled command execution
"""

from __future__ import absolute_import, print_function, unicode_literals

import asyncio
import unittest
Expand Down
3 changes: 1 addition & 2 deletions tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
"""
Test the ImageMetadata class
"""
from __future__ import absolute_import, print_function, unicode_literals
import unittest
import os
import logging
import tempfile
import shutil
import mock
import flexmock
from flexmock import flexmock
try:
from importlib import reload
except ImportError:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_olm_bundle.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

import flexmock
from flexmock import flexmock
from mock import MagicMock

from doozerlib.olm.bundle import OLMBundle
Expand Down
1 change: 0 additions & 1 deletion tests/test_pushd.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""
Test the Dir() class. Verify that it works as a context_manager.
"""
from __future__ import absolute_import, print_function, unicode_literals

import unittest

Expand Down
3 changes: 1 addition & 2 deletions tests/test_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
"""
Test the ImageMetadata class
"""
from __future__ import absolute_import, print_function, unicode_literals
import unittest
import os
import logging
import tempfile
import shutil
import flexmock
from flexmock import flexmock
try:
from importlib import reload
except ImportError:
Expand Down
1 change: 0 additions & 1 deletion tests/test_rhcos.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

from __future__ import absolute_import, print_function, unicode_literals

import logging
import json
Expand Down
3 changes: 1 addition & 2 deletions tests/test_runtime.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env python
from __future__ import absolute_import, print_function, unicode_literals
import unittest
import flexmock
from flexmock import flexmock
from doozerlib import runtime, exectools, logutil, model


Expand Down
1 change: 0 additions & 1 deletion tests/test_source_modifications.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals

import os
import pathlib
Expand Down
1 change: 0 additions & 1 deletion tests/test_util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals
import unittest

from doozerlib import util
Expand Down

0 comments on commit 0732536

Please sign in to comment.