Skip to content

Commit

Permalink
✅ [#993] UPDATE some code that was not working properly
Browse files Browse the repository at this point in the history
  • Loading branch information
stefrado committed Dec 10, 2024
1 parent 0ab4f1b commit 26daa0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/sdg/core/tests/test_management_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,10 +519,8 @@ def test_handle_response_code_successful(self):
self.assertIn("Deleted 0 old BrokenLinks.", out)

def test_request_head_redirect_handling(self):
self.call_command("check_broken_links")

def test_case(url, equals_status_code):
response = self.command.request_head(self=self.command, url=url)
response = self.command().request_head(url=url)
self.assertEqual(response.status_code, equals_status_code)

# Test case 1 - Successful request to Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def handle(self, *args, **options):
with parallel(max_workers=32) as executor:
for product in Product.objects.prefetch_related(
"most_recent_version__vertalingen"
).exclude_generic_status()[:500]:
).exclude_generic_status()[:100]:
self.get_products_to_check(product)

# Map all futures to the executor
Expand Down

0 comments on commit 26daa0f

Please sign in to comment.