tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python3.pkgs.paperwork-backend: fix flaky test
Guillaume Girol
3 years ago
f9229cd1
c6d38ef4
+20
-1
2 changed files
expand all
collapse all
unified
split
pkgs
applications
office
paperwork
flaky_test.patch
paperwork-backend.nix
+12
pkgs/applications/office/paperwork/flaky_test.patch
···
1
1
+
diff --git a/paperwork-backend/tests/docimport/tests_converted.py b/paperwork-backend/tests/docimport/tests_converted.py
2
2
+
index 1d1ae39b..bda63fce 100644
3
3
+
--- a/paperwork-backend/tests/docimport/tests_converted.py
4
4
+
+++ b/paperwork-backend/tests/docimport/tests_converted.py
5
5
+
@@ -102,6 +102,7 @@ class TestConvertedImport(unittest.TestCase):
6
6
+
)
7
7
+
)
8
8
+
9
9
+
+ @unittest.skip("flaky test: https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/issues/1035#note_1493700")
10
10
+
def test_import_duplicated_docx(self):
11
11
+
with tempfile.TemporaryDirectory() as tmp_dir:
12
12
+
self.config.settings = {
+8
-1
pkgs/applications/office/paperwork/paperwork-backend.nix
···
31
31
32
32
sourceRoot = "source/paperwork-backend";
33
33
34
34
-
patchPhase = ''
34
34
+
patches = [
35
35
+
# disables a flaky test https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/issues/1035#note_1493700
36
36
+
./flaky_test.patch
37
37
+
];
38
38
+
39
39
+
patchFlags = [ "-p2" ];
40
40
+
41
41
+
postPatch = ''
35
42
echo 'version = "${version}"' > src/paperwork_backend/_version.py
36
43
chmod a+w -R ..
37
44
patchShebangs ../tools