Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
robotidy --check --overwrite src
```

### Fixes
- Unmodified files are now not saved to the disk ([#237](https://github.com/MarketSquare/robotframework-tidy/issues/237))

## 1.6.2

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion robotidy/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def transform_files(self):
self.output_diff(model.source, old_model, new_model)
if stdin:
self.print_to_stdout(new_model)
else:
elif diff:
self.save_model(model.source, model)
except DataError:
click.echo(
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

8 changes: 5 additions & 3 deletions tests/atest/transformers/AlignTestCases/test_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,23 @@ class TestAlignTestCases(TransformerAcceptanceTest):
[
"test.robot",
"no_header_col.robot",
"for_loops.robot",
"with_settings.robot",
"templated_for_loops.robot",
"templated_for_loops_and_without.robot",
"templated_for_loops_header_cols.robot",
"empty_line.robot",
],
)
def test_transformer(self, source):
self.compare(source=source, expected=source)

@pytest.mark.parametrize("source", ["for_loops.robot", "empty_line.robot"])
def test_should_not_modify(self, source):
self.compare(source=source, not_modified=True)

def test_only_with_headers(self):
self.compare(
source="no_header_col.robot",
expected="no_header_col_only_headers.robot",
not_modified=True,
config=":only_with_headers=True",
)

Expand Down
133 changes: 0 additions & 133 deletions tests/atest/transformers/InlineIf/expected/invalid_if.robot

This file was deleted.

160 changes: 0 additions & 160 deletions tests/atest/transformers/InlineIf/expected/invalid_inline_if.robot

This file was deleted.

Loading