Skip to content

Commit fef8934

Browse files
clean up test scenarios
1 parent 73722ad commit fef8934

14 files changed

Lines changed: 53 additions & 12 deletions

File tree

codex-rs/apply-patch/tests/fixtures/scenarios/019_multiple_context_lines/patch.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

codex-rs/apply-patch/tests/fixtures/scenarios/019_multiple_context_lines/expected/example.py renamed to codex-rs/apply-patch/tests/fixtures/scenarios/020_multiple_context_lines/expected/first.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
class BaseClass:
2-
def method():
2+
def method(self):
33
# to_add
44
pass
55

66

77
class OtherClass:
8-
def method():
8+
def method(self):
99
# untouched
1010
pass
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class BaseClass:
2+
def method(self):
3+
# untouched
4+
pass
5+
6+
7+
class OtherClass:
8+
def method(self):
9+
# to_add
10+
pass

codex-rs/apply-patch/tests/fixtures/scenarios/019_multiple_context_lines/input/example.py renamed to codex-rs/apply-patch/tests/fixtures/scenarios/020_multiple_context_lines/input/first.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
class BaseClass:
2-
def method():
2+
def method(self):
33
# to_remove
44
pass
55

66

77
class OtherClass:
8-
def method():
8+
def method(self):
99
# untouched
1010
pass
11-
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class BaseClass:
2+
def method(self):
3+
# untouched
4+
pass
5+
6+
7+
class OtherClass:
8+
def method(self):
9+
# to_remove
10+
pass
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
*** Begin Patch
2+
*** Update File: first.py
3+
@@ class BaseClass:
4+
@@ def method(self):
5+
- # to_remove
6+
+ # to_add
7+
*** Update File: second.py
8+
@@ class OtherClass:
9+
@@ def method(self):
10+
- # to_remove
11+
+ # to_add
12+
*** End Patch

codex-rs/apply-patch/tests/fixtures/scenarios/020_multiple_context_lines_partial_success/expected/failure.py renamed to codex-rs/apply-patch/tests/fixtures/scenarios/021_multiple_context_lines_partial_success/expected/failure.py

File renamed without changes.

codex-rs/apply-patch/tests/fixtures/scenarios/020_multiple_context_lines_partial_success/expected/success.py renamed to codex-rs/apply-patch/tests/fixtures/scenarios/021_multiple_context_lines_partial_success/expected/success.py

File renamed without changes.

codex-rs/apply-patch/tests/fixtures/scenarios/020_multiple_context_lines_partial_success/input/failure.py renamed to codex-rs/apply-patch/tests/fixtures/scenarios/021_multiple_context_lines_partial_success/input/failure.py

File renamed without changes.

codex-rs/apply-patch/tests/fixtures/scenarios/020_multiple_context_lines_partial_success/input/success.py renamed to codex-rs/apply-patch/tests/fixtures/scenarios/021_multiple_context_lines_partial_success/input/success.py

File renamed without changes.

0 commit comments

Comments
 (0)