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

Fixed requirement and dependency vulnerabilities by upgrading them to latest available versions #9033

Closed
wants to merge 3 commits into from

Conversation

Sambit003
Copy link

@Sambit003 Sambit003 commented Jul 2, 2023

Urgent fix: Changed the PyYAML requirement version from deprecated 5.3.1 version to latest available version. ref

As Pytz support been dropped from the Django v4, removing the FieldValues class test will be better.

requirements/requirements-testing.txt Outdated Show resolved Hide resolved
@auvipy auvipy self-assigned this Sep 14, 2023
Comment on lines +667 to +688
# def test_valid_inputs(self, *args):
# """
# Ensure that valid values return the expected validated data.
# """
# for input_value, expected_output in get_items(self.valid_inputs):
# assert self.field.run_validation(input_value) == expected_output, \
# 'input value: {}'.format(repr(input_value))

# def test_invalid_inputs(self, *args):
# """
# Ensure that invalid values raise the expected validation error.
# """
# for input_value, expected_failure in get_items(self.invalid_inputs):
# with pytest.raises(serializers.ValidationError) as exc_info:
# self.field.run_validation(input_value)
# assert exc_info.value.detail == expected_failure, \
# 'input value: {}'.format(repr(input_value))

# def test_outputs(self, *args):
# for output_value, expected_output in get_items(self.outputs):
# assert self.field.to_representation(output_value) == expected_output, \
# 'output value: {}'.format(repr(output_value))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure a dependency upgrade PR should not be commenting out tests?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed

@auvipy auvipy closed this Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants