-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add OsSystem support to mdtests
#16518
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -321,7 +321,7 @@ mod tests { | |
|
|
||
| system | ||
| .memory_file_system() | ||
| .write_files([(root.join("foo.py"), ""), (root.join("bar.py"), "")]) | ||
| .write_files_all([(root.join("foo.py"), ""), (root.join("bar.py"), "")]) | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not very fond of this name. The That's why I renamed the existing
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The only other options that come to mind are significantly more verbose; |
||
| .context("Failed to write files")?; | ||
|
|
||
| let project = | ||
|
|
@@ -349,7 +349,7 @@ mod tests { | |
|
|
||
| system | ||
| .memory_file_system() | ||
| .write_files([ | ||
| .write_files_all([ | ||
| ( | ||
| root.join("pyproject.toml"), | ||
| r#" | ||
|
|
@@ -393,7 +393,7 @@ mod tests { | |
|
|
||
| system | ||
| .memory_file_system() | ||
| .write_files([ | ||
| .write_files_all([ | ||
| ( | ||
| root.join("pyproject.toml"), | ||
| r#" | ||
|
|
@@ -432,7 +432,7 @@ expected `.`, `]` | |
|
|
||
| system | ||
| .memory_file_system() | ||
| .write_files([ | ||
| .write_files_all([ | ||
| ( | ||
| root.join("pyproject.toml"), | ||
| r#" | ||
|
|
@@ -482,7 +482,7 @@ expected `.`, `]` | |
|
|
||
| system | ||
| .memory_file_system() | ||
| .write_files([ | ||
| .write_files_all([ | ||
| ( | ||
| root.join("pyproject.toml"), | ||
| r#" | ||
|
|
@@ -532,7 +532,7 @@ expected `.`, `]` | |
|
|
||
| system | ||
| .memory_file_system() | ||
| .write_files([ | ||
| .write_files_all([ | ||
| ( | ||
| root.join("pyproject.toml"), | ||
| r#" | ||
|
|
@@ -572,7 +572,7 @@ expected `.`, `]` | |
|
|
||
| system | ||
| .memory_file_system() | ||
| .write_files([ | ||
| .write_files_all([ | ||
| ( | ||
| root.join("pyproject.toml"), | ||
| r#" | ||
|
|
@@ -623,7 +623,7 @@ expected `.`, `]` | |
|
|
||
| system | ||
| .memory_file_system() | ||
| .write_files([ | ||
| .write_files_all([ | ||
| ( | ||
| root.join("pyproject.toml"), | ||
| r#" | ||
|
|
@@ -673,7 +673,7 @@ expected `.`, `]` | |
|
|
||
| system | ||
| .memory_file_system() | ||
| .write_file( | ||
| .write_file_all( | ||
| root.join("pyproject.toml"), | ||
| r#" | ||
| [project] | ||
|
|
@@ -703,7 +703,7 @@ expected `.`, `]` | |
|
|
||
| system | ||
| .memory_file_system() | ||
| .write_file( | ||
| .write_file_all( | ||
| root.join("pyproject.toml"), | ||
| r#" | ||
| [project] | ||
|
|
@@ -735,7 +735,7 @@ expected `.`, `]` | |
|
|
||
| system | ||
| .memory_file_system() | ||
| .write_file( | ||
| .write_file_all( | ||
| root.join("pyproject.toml"), | ||
| r#" | ||
| [project] | ||
|
|
@@ -765,7 +765,7 @@ expected `.`, `]` | |
|
|
||
| system | ||
| .memory_file_system() | ||
| .write_file( | ||
| .write_file_all( | ||
| root.join("pyproject.toml"), | ||
| r#" | ||
| [project] | ||
|
|
@@ -795,7 +795,7 @@ expected `.`, `]` | |
|
|
||
| system | ||
| .memory_file_system() | ||
| .write_file( | ||
| .write_file_all( | ||
| root.join("pyproject.toml"), | ||
| r#" | ||
| [project] | ||
|
|
@@ -828,7 +828,7 @@ expected `.`, `]` | |
|
|
||
| system | ||
| .memory_file_system() | ||
| .write_file( | ||
| .write_file_all( | ||
| root.join("pyproject.toml"), | ||
| r#" | ||
| [project] | ||
|
|
@@ -861,7 +861,7 @@ expected `.`, `]` | |
|
|
||
| system | ||
| .memory_file_system() | ||
| .write_file( | ||
| .write_file_all( | ||
| root.join("pyproject.toml"), | ||
| r#" | ||
| [project] | ||
|
|
@@ -886,7 +886,7 @@ expected `.`, `]` | |
|
|
||
| system | ||
| .memory_file_system() | ||
| .write_file( | ||
| .write_file_all( | ||
| root.join("pyproject.toml"), | ||
| r#" | ||
| [project] | ||
|
|
@@ -911,7 +911,7 @@ expected `.`, `]` | |
|
|
||
| system | ||
| .memory_file_system() | ||
| .write_file( | ||
| .write_file_all( | ||
| root.join("pyproject.toml"), | ||
| r#" | ||
| [project] | ||
|
|
||
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.
Why is the
as _needed here?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.
It's not technically needed but it only makes the trait available in the module without importing it by name. That means you can call all the extension methods without binding the name locally.