# Path: tests/const.py
# DOCKER_IMAGE = 'debian:10'


from .utils import *
from unittest import mock
from pathlib import Path
from tempfile import TemporaryFile, NamedTemporaryFile
from pwd import getpwuid
from grp import getgrgid
from .const import DOCKER_IMAGE
import pytest
import warnings
import logging
import os
import sys
import subprocess
import shlex
import scuba.__main__ as main
import scuba.constants
import scuba.dockerutil
import scuba
import re
                        main.main(argv = args)
                    except SystemExit as sysexit:
                        retcode = sysexit.code
                    else:
                        retcode = 0

                    stdout.seek(0)
                    stderr.seek(0)

                    stdout_data = stdout.read()
                    stderr_data = stderr.read()

                    logging.info('scuba stdout:\n' + stdout_data)
                    logging.info('scuba stderr:\n' + stderr_data)

                    # Verify the return value was as expected
                    assert exp_retval == retcode

                    return stdout_data, stderr_data

                finally:
                    sys.stdin  = old_stdin
                    sys.stdout = old_stdout
                    sys.stderr = old_stderr


    def test_basic(self):
        '''Verify basic scuba functionality'''

        with open('.scuba.yml', 'w') as f:

# Path: tests/const.py
# DOCKER_IMAGE = 'debian:10'


# Path: tests/test_main.py
from .utils import *
from unittest import mock
from pathlib import Path
from tempfile import TemporaryFile, NamedTemporaryFile
from pwd import getpwuid
from grp import getgrgid
from .const import DOCKER_IMAGE
import pytest
import warnings
import logging
import os
import sys
import subprocess
import shlex
import scuba.__main__ as main
import scuba.constants
import scuba.dockerutil
import scuba
import re

                        main.main(argv = args)
                    except SystemExit as sysexit:
                        retcode = sysexit.code
                    else:
                        retcode = 0

                    stdout.seek(0)
                    stderr.seek(0)

                    stdout_data = stdout.read()
                    stderr_data = stderr.read()

                    logging.info('scuba stdout:\n' + stdout_data)
                    logging.info('scuba stderr:\n' + stderr_data)

                    # Verify the return value was as expected
                    assert exp_retval == retcode

                    return stdout_data, stderr_data

                finally:
                    sys.stdin  = old_stdin
                    sys.stdout = old_stdout
                    sys.stderr = old_stderr


    def test_basic(self):
        '''Verify basic scuba functionality'''

        with open('.scuba.yml', 'w') as f:

            f.write('image: {}\n'.format(DOCKER_IMAGE))