fix: remove subdirectory paths from test_new.diff

When test_proces_diff processes this file, it
fails to create the subdirectories, leading to
test failure. Since the subdirectories aren't
really needed, removing them allows the test
to complete successfully.

Updated number of expected passing tests to
account for the additional tests which can run
to completion now.
This commit is contained in:
Robert Alonso 2025-04-10 15:14:05 +00:00
parent d7086a5471
commit 46cc6ac8e9
3 changed files with 5 additions and 5 deletions

View File

@ -17,4 +17,4 @@ jobs:
- name: "Run tests"
run: python -m unittest discover
env:
SKIP_PROCESS_DIFF_TEST: true
SKIP_PROCESS_DIFF_TEST: false

View File

@ -563,7 +563,7 @@ index 0000000..d340f6a
+ * labels: urgent
+ */
+}
diff --git a/tests/package.move b/tests/package.move
diff --git a/package.move b/package.move
new file mode 100644
index 0000000..d340f6a
--- /dev/null
@ -589,11 +589,11 @@ index 0000000..d340f6a
+ * labels: urgent
+ */
+}
diff --git a/src/Dockerfile b/src/Dockerfile
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..d340f6a
--- /dev/null
+++ b/src/Dockerfile
+++ b/Dockerfile
@@ -0,0 +1,4 @@
+WORKDIR /app
+ENV PYTHONPATH /app

View File

@ -78,7 +78,7 @@ class IssueUrlInsertionTest(unittest.TestCase):
"Skipping because 'SKIP_PROCESS_DIFF_TEST' is 'true'")
def test_url_insertion(self):
self._setUp(['test_new.diff'])
self._standardTest(80)
self._standardTest(84)
def test_line_numbering_with_deletions(self):
self._setUp(['test_new_py.diff', 'test_edit_py.diff'])