


# tests directory-specific settings - this file is run automatically
# by pytest before any tests are run

import sys
import warnings
from os.path import abspath, dirname, join


# allow having multiple repository checkouts and not needing to remember to rerun
# 'pip install -e .[dev]' when switching between checkouts and running tests.
lowerCAmelCase	=							abspath(join(dirname(dirname(__file__)), 'src'))
sys.path.insert(1, git_repo_path)

# silence FutureWarning warnings in tests since often we can't act on them until
# they become normal warnings - i.e. the tests still need to test the current functionality
warnings.simplefilter(action='ignore', category=FutureWarning)
def       _a			(				SCREAMING_SNAKE_CASE					):


		"""simple docstring"""




		from diffusers.utils.testing_utils import pytest_addoption_shared

		pytest_addoption_shared(SCREAMING_SNAKE_CASE					)
def       _a			(				SCREAMING_SNAKE_CASE					):


		"""simple docstring"""




		from diffusers.utils.testing_utils import pytest_terminal_summary_main

		lowercase__						=				terminalreporter.config.getoption('''--make-reports'''					)
		if make_reports:
				pytest_terminal_summary_main(SCREAMING_SNAKE_CASE						,    id=SCREAMING_SNAKE_CASE					)






def       _a			(				SCREAMING_SNAKE_CASE						,    SCREAMING_SNAKE_CASE					):


		"""simple docstring"""




		return base * power(SCREAMING_SNAKE_CASE						,    (exponent - 1)					) if exponent else 1


if __name__ == "__main__":
			print('Raise base to the power of exponent using recursion...')
			lowerCAmelCase	=							int(input('Enter the base: ').strip())
			lowerCAmelCase	=							int(input('Enter the exponent: ').strip())
			lowerCAmelCase	=							power(base, abs(exponent))
			if exponent < 0:  # power() does not properly deal w/ negative exponents
						lowerCAmelCase	=							1 / result
			print(f"""{base} to the power of {exponent} is {result}""")


