Skip to content
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
25 changes: 20 additions & 5 deletions docs/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,27 @@ Job Status Update Throttling

See: :ref:`jobs_api`

Buy Me a Soda
-------------
* Tethys Platform has added a "Buy Me a Soda" button to the documentation, allowing users to support the project financially.
* This is a way for users to contribute to the ongoing development and maintenance of Tethys
Time Picker Gizmo
-----------------

See: :ref:`contribute_documentation`
* Added a new ``TimePicker`` gizmo for time-entry form inputs.

See: :doc:`tethys_sdk/gizmos/time_picker`

Bug Fixes
---------

* Login and register form fixes: `PR 1293 <https://github.com/tethysplatform/tethys/pull/1293>`_
* Static file discovery fix for ``STATICFILES_USE_NPM``: `PR 1291 <https://github.com/tethysplatform/tethys/pull/1291>`_
* Django 5 app initialization warning fix: `PR 1288 <https://github.com/tethysplatform/tethys/pull/1288>`_
* Component fixes: `PR 1285 <https://github.com/tethysplatform/tethys/pull/1285>`_
* App install fix for service settings: `PR 1284 <https://github.com/tethysplatform/tethys/pull/1284>`_

Documentation and CI
--------------------

* Added new recipes documentation: `PR 1282 <https://github.com/tethysplatform/tethys/pull/1282>`_
* Fixed Read the Docs builds for the Ubuntu 26.04 image: `PR 1289 <https://github.com/tethysplatform/tethys/pull/1289>`_

Prior Release Notes
===================
Expand Down
44 changes: 44 additions & 0 deletions tests/unit_tests/test_tethys_cli/test_install_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,50 @@ def test_input_file_with_post(self, mock_pretty_output, _, __):
po_call_args[8][0][0],
)

@mock.patch("tethys_cli.install_commands.run_services")
@mock.patch("tethys_cli.install_commands.call", return_value=0)
@mock.patch("tethys_cli.install_commands.Popen")
@mock.patch("tethys_cli.cli_colors.pretty_output")
def test_input_file_with_non_py_post(self, mock_pretty_output, mock_popen, _, __):
file_path = self.root_app_path / "install-with-post-non-py.yml"
file_path.write_text(
"version: 1.0\n"
"name: test_app\n"
"\n"
"requirements:\n"
" skip: True\n"
"post:\n"
" - ./test.sh\n"
)
args = mock.MagicMock(
file=file_path,
verbose=False,
no_db_sync=False,
only_dependencies=False,
without_dependencies=False,
)
mock_popen.return_value.communicate.return_value = (b"test", b"")

try:
install_commands.install_command(args)
finally:
file_path.unlink(missing_ok=True)

expected_command = f'"{self.root_app_path / "test.sh"}"'
mock_popen.assert_called_once_with(
expected_command,
shell=True,
stdout=install_commands.PIPE,
stderr=install_commands.PIPE,
)
po_call_args = mock_pretty_output().__enter__().write.call_args_list
self.assertIn("Running post installation tasks...", po_call_args[6][0][0])
self.assertIn("Post Script Result: b'test", po_call_args[7][0][0])
self.assertIn(
"Successfully installed test_app into the active Tethys Portal.",
po_call_args[8][0][0],
)

@mock.patch("tethys_cli.install_commands.run_services")
@mock.patch("tethys_cli.install_commands.run_sync_stores")
@mock.patch("tethys_cli.install_commands.run_interactive_services")
Expand Down
Loading