File pr_48.patch of Package python-pytest-translations
From cf4626a8bbbb5a3677094e71dbbe8fd1f9003282 Mon Sep 17 00:00:00 2001
From: John Vandenberg <jayvdb@gmail.com>
Date: Fri, 22 Jan 2021 12:28:14 +0800
Subject: [PATCH] test_translations.py: Add . to ext
Fixes https://github.com/Thermondo/pytest-translations/issues/47
---
test_translations.py | 36 ++++++++++++++++++------------------
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/test_translations.py b/test_translations.py
index 2416319..ddfff34 100644
--- a/test_translations.py
+++ b/test_translations.py
@@ -12,7 +12,7 @@ class TestMo(object):
@pytest.fixture
def pomo(self, testdir):
pofile = testdir.makefile(
- 'po',
+ '.po',
"""
#: asdf.py:111
msgid "car"
@@ -29,7 +29,7 @@ def pomo(self, testdir):
def test_broken_file(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
#: asdf.py:111
msgid "car"
@@ -37,7 +37,7 @@ def test_broken_file(self, testdir):
"""
)
testdir.makefile(
- 'mo',
+ '.mo',
"""
asdflkaj sdlkfaj
""",
@@ -76,7 +76,7 @@ def test_entry_mismatch(self, testdir, pomo):
os.unlink(po)
testdir.makefile(
- 'po',
+ '.po',
"""
msgid ""
msgstr ""
@@ -100,7 +100,7 @@ def test_entry_mismatch(self, testdir, pomo):
class TestPo(object):
def test_uses_argument(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
#: asdf.py:111
msgid "car"
@@ -114,7 +114,7 @@ def test_uses_argument(self, testdir):
def test_broken_file(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
asdflkaj sdlkfaj
"""
@@ -127,7 +127,7 @@ def test_broken_file(self, testdir):
def test_valid(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
#: asdf.py:111
msgid "car"
@@ -143,7 +143,7 @@ def test_valid(self, testdir):
def test_missing_translation(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
#: asdf.py:111
msgid "car"
@@ -159,7 +159,7 @@ def test_missing_translation(self, testdir):
def test_fuzzy(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
#: asdf.py:111
#, fuzzy
@@ -177,7 +177,7 @@ def test_fuzzy(self, testdir):
def test_obsolete(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
#: asdf.py:111
#~ msgid "car"
@@ -194,7 +194,7 @@ def test_obsolete(self, testdir):
def test_all(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
#: asdf.py:111
msgid "car2"
@@ -224,7 +224,7 @@ def test_all(self, testdir):
class TestPoSpellcheck(object):
def test_broken_file(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
asdflkjasdf laskdjfasdf
"""
@@ -236,7 +236,7 @@ def test_broken_file(self, testdir):
def test_language_missing_in_po(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
#: asdf.py:111
msgid "meeting"
@@ -251,7 +251,7 @@ def test_language_missing_in_po(self, testdir):
def test_language_catalog_missing(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
msgid ""
msgstr ""
@@ -270,7 +270,7 @@ def test_language_catalog_missing(self, testdir):
def test_python_format_placeholders(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
msgid ""
msgstr ""
@@ -289,7 +289,7 @@ def test_python_format_placeholders(self, testdir):
def test_pass(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
msgid ""
msgstr ""
@@ -308,7 +308,7 @@ def test_pass(self, testdir):
def test_fail(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
msgid ""
msgstr ""
@@ -329,7 +329,7 @@ def test_fail(self, testdir):
def test_wordlist(self, testdir, monkeypatch):
testdir.makefile(
- 'po',
+ '.po',
"""
msgid ""
msgstr ""