-
Notifications
You must be signed in to change notification settings - Fork 37
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(amber): indent multiline strings, close #193 #194
Conversation
Codecov Report
@@ Coverage Diff @@
## next-v0.4.0 #194 +/- ##
=============================================
Coverage 100.00% 100.00%
=============================================
Files 16 16
Lines 867 867
=============================================
Hits 867 867 |
@@ -142,8 +153,8 @@ | |||
# name: test_list_in_dict |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is weirdly named, more like multi_line_in_dict
tests/test_extension_amber.py
Outdated
@@ -28,6 +28,12 @@ def test_list_in_dict(snapshot): | |||
assert {"value": lines} == snapshot | |||
|
|||
|
|||
def test_deeply_nested_list_in_dict(snapshot): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nb. technically not a list?
def test_deeply_nested_list_in_dict(snapshot): | |
def test_deeply_nested_multi_line_in_dict(snapshot): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Indents multiline strings only when the parent itself is indented, this is to keep snapshots of multiline strings that are not nested in any data structure, simple.
Related Issues
Checklist