Skip to content

Commit

Permalink
Removed commented out tests. Updated running.md to specify python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesstottmoj committed Apr 9, 2024
1 parent f1f3afe commit 14e09ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 29 deletions.
4 changes: 2 additions & 2 deletions doc/running.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ versions of the services.

## 1. Required Dependencies

The Control Panel app requires Python 3.8+ It has been confirmed to work
with Python 3.8.12.
The Control Panel app requires Python 3.12. It has been confirmed to work
with Python 3.12.2.

Install python dependencies with the following command:
```sh
Expand Down
27 changes: 0 additions & 27 deletions tests/api/models/test_ip_allowlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,6 @@ def update_aws_secrets_manager():
yield update_aws_secrets_manager


# def test_ip_allowlist_save_updates_aws_secrets_manager(update_aws_secrets_manager):
# ip_allowlist = baker.make("api.IPAllowlist", allowed_ip_ranges="123")
# app = baker.make("api.App", ip_allowlists=[ip_allowlist]) # noqa:F841
#
# ip_allowlist.save()
#
# update_aws_secrets_manager.assert_has_calls(
# [
# call({"allowed_ip_ranges": "123"}),
# ]
# )
#

def test_ip_allowlist_without_app_save_does_not_update_aws_secrets_manager(
update_aws_secrets_manager,
):
Expand All @@ -42,20 +29,6 @@ def test_ip_allowlist_without_app_save_does_not_update_aws_secrets_manager(
update_aws_secrets_manager.assert_not_called()


# def test_ip_allowlist_delete_updates_aws_secrets_manager(update_aws_secrets_manager):
# ip_allowlists = [
# baker.make("api.IPAllowlist", allowed_ip_ranges="xyz"),
# baker.make("api.IPAllowlist", allowed_ip_ranges="123"),
# ]
# apps = baker.make("api.App", ip_allowlists=ip_allowlists, _quantity=2) # noqa:F841
#
# ip_allowlists[0].delete()
#
# update_aws_secrets_manager.assert_has_calls(
# [call({"allowed_ip_ranges": "123"}), call({"allowed_ip_ranges": "123"})]
# )
#

def test_ip_allowlist_without_app_delete_does_not_update_aws_secrets_manager(
update_aws_secrets_manager,
):
Expand Down

0 comments on commit 14e09ba

Please sign in to comment.