Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️ [upgraded_dependency] Updated default version of python to 3.12 #13

Merged
merged 1 commit into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion default_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.11
3.12
29 changes: 16 additions & 13 deletions src/EndToEndTests/EndToEndTests.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

# ----------------------------------------------------------------------
INVALID_COMMAND = "this is an invalid command"
DEFAULT_PYTHON_VERSION = (Path(__file__).parent.parent.parent / "default_version").open().read().strip()
PYTHON_VERSIONS = [
None, # Use default version
"3.11",
Expand Down Expand Up @@ -63,12 +62,13 @@
# values will be different each time the script is run and when different versions are introduced.
assert micromamba_path.is_dir(), textwrap.dedent(
"""\
These tests must be run AFTER Bootstrap{} has been run successfully at least once.
These tests must be run AFTER Bootstrap{ext} has been run successfully at least once.

To do this, navigate to `../../Templates` and run the Bootstrap script that corresponds to
your operating system.
To do this, navigate to this directory and run the Bootstrap{ext}.
""",
).format(_extension)
).format(
ext=_extension,
)


# ----------------------------------------------------------------------
Expand Down Expand Up @@ -101,6 +101,9 @@ def Execute(
),
)

if python_version is None:
output = re.sub(r"Python Version \d+\.\d+", "Python Version None", output)

assert result == expected_result, (result, output)

if callable(expected_output):
Expand Down Expand Up @@ -162,7 +165,7 @@ def test_Empty(self, tmp_path_factory, templates_path, python_version):
).format(
script_version=_script_version,
downloading_default_python_version=downloading_default_python_version,
python_version=python_version or DEFAULT_PYTHON_VERSION,
python_version=python_version,
init_shell_output=_init_shell_output,
extension=_extension,
activate=(root / "Activate{}".format(_extension)).resolve(),
Expand Down Expand Up @@ -226,7 +229,7 @@ def test_ScriptFile(self, tmp_path_factory, templates_path, python_version):
).format(
script_version=_script_version,
downloading_default_python_version=downloading_default_python_version,
python_version=python_version or DEFAULT_PYTHON_VERSION,
python_version=python_version,
init_shell_output=_init_shell_output,
extension=_extension,
activate=(root / "Activate{}".format(_extension)).resolve(),
Expand Down Expand Up @@ -293,7 +296,7 @@ def test_PythonFile(self, tmp_path_factory, templates_path, python_version):
).format(
script_version=_script_version,
downloading_default_python_version=downloading_default_python_version,
python_version=python_version or DEFAULT_PYTHON_VERSION,
python_version=python_version,
init_shell_output=_init_shell_output,
extension=_extension,
activate=(root / "Activate{}".format(_extension)).resolve(),
Expand Down Expand Up @@ -362,7 +365,7 @@ def test_ScriptAndPythonFiles(self, tmp_path_factory, templates_path, python_ver
).format(
script_version=_script_version,
downloading_default_python_version=downloading_default_python_version,
python_version=python_version or DEFAULT_PYTHON_VERSION,
python_version=python_version,
init_shell_output=_init_shell_output,
extension=_extension,
activate=(root / "Activate{}".format(_extension)).resolve(),
Expand Down Expand Up @@ -409,7 +412,7 @@ def IsValid(output: str) -> bool:
).format(
script_version=_script_version,
downloading_default_python_version=downloading_default_python_version,
python_version=python_version or DEFAULT_PYTHON_VERSION,
python_version=python_version,
init_shell_output=_init_shell_output,
),
)
Expand Down Expand Up @@ -480,7 +483,7 @@ def test_PythonError(self, tmp_path_factory, templates_path, python_version):
).format(
script_version=_script_version,
downloading_default_python_version=downloading_default_python_version,
python_version=python_version or DEFAULT_PYTHON_VERSION,
python_version=python_version,
init_shell_output=_init_shell_output,
),
expected_result=2,
Expand Down Expand Up @@ -533,7 +536,7 @@ def IsValid(output: str) -> bool:
).format(
script_version=_script_version,
downloading_default_python_version=downloading_default_python_version,
python_version=python_version or DEFAULT_PYTHON_VERSION,
python_version=python_version,
init_shell_output=_init_shell_output,
),
)
Expand Down Expand Up @@ -618,7 +621,7 @@ def test_Arguments(self, tmp_path_factory, templates_path, python_version):
).format(
script_version=_script_version,
downloading_default_python_version=downloading_default_python_version,
python_version=python_version or DEFAULT_PYTHON_VERSION,
python_version=python_version,
init_shell_output=_init_shell_output,
extension=_extension,
activate=(root / "Activate{}".format(_extension)).resolve(),
Expand Down