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

feat: removed escape of forward slash in json files #2005

Merged
merged 4 commits into from Apr 5, 2022

Conversation

jochman
Copy link
Contributor

@jochman jochman commented Apr 4, 2022

Status

  • In Progress
  • Ready
  • In Hold - (Reason for hold)

Related Issues

fixes: ultrajson/ultrajson#110

Description

a forward slash was esacpped, fixed it.

Screenshots

Paste here any images that will help the reviewer

Must have

  • Tests
  • Documentation
  • VS Code Extension
    • Functionality implemented in the extension - <link-to-pr-here>
    • N/A - Functionality cannot be implemented in the extension because <add-reason-here>

@jochman jochman self-assigned this Apr 4, 2022
@coveralls
Copy link
Collaborator

coveralls commented Apr 4, 2022

Pull Request Test Coverage Report for Build f0845d44-c5b9-48fd-8d44-930698ffd07c

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • 22 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.6%) to 79.902%

Files with Coverage Reduction New Missed Lines %
demisto_sdk/commands/create_artifacts/artifacts_report.py 1 97.73%
demisto_sdk/commands/create_artifacts/content_artifacts_creator.py 21 79.75%
Totals Coverage Status
Change from base Build 96c2697d-3410-42e1-9d55-22673c6374d8: 0.6%
Covered Lines: 22323
Relevant Lines: 27938

💛 - Coveralls

Copy link
Contributor

@ShahafBenYakir ShahafBenYakir left a comment

Choose a reason for hiding this comment

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

Thanks

dumped = JSON_Handler().dumps({'url': url})
assert url in dumped, 'Could not find the url im the dumped file. Maybe escaped char?'

def test_no_escape_chars_dump(self, tmpdir):
Copy link
Contributor

Choose a reason for hiding this comment

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

Change function name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that is exactly what the test does

Copy link
Contributor

Choose a reason for hiding this comment

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

test_no_escape_chars_file_dump

Copy link
Contributor Author

Choose a reason for hiding this comment

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

dump != dumps
it's pretty petty.

@jochman jochman changed the title feat: removed escape of forward slach in json files feat: removed escape of forward slash in json files Apr 5, 2022
@jochman jochman merged commit cc28b8f into master Apr 5, 2022
@jochman jochman deleted the ujson-forward-slash branch April 5, 2022 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants