summaryrefslogtreecommitdiffstats
path: root/contrib/python/responses
diff options
context:
space:
mode:
authormaxim-yurchuk <[email protected]>2024-10-09 12:29:46 +0300
committermaxim-yurchuk <[email protected]>2024-10-09 13:14:22 +0300
commit9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80 (patch)
treea8fb3181d5947c0d78cf402aa56e686130179049 /contrib/python/responses
parenta44b779cd359f06c3ebbef4ec98c6b38609d9d85 (diff)
publishFullContrib: true for ydb
<HIDDEN_URL> commit_hash:c82a80ac4594723cebf2c7387dec9c60217f603e
Diffstat (limited to 'contrib/python/responses')
-rw-r--r--contrib/python/responses/py2/.yandex_meta/yamaker.yaml3
-rw-r--r--contrib/python/responses/py2/patches/01-fix-tests.patch12
2 files changed, 15 insertions, 0 deletions
diff --git a/contrib/python/responses/py2/.yandex_meta/yamaker.yaml b/contrib/python/responses/py2/.yandex_meta/yamaker.yaml
new file mode 100644
index 00000000000..707bb60065d
--- /dev/null
+++ b/contrib/python/responses/py2/.yandex_meta/yamaker.yaml
@@ -0,0 +1,3 @@
+mark_as_tests:
+ - responses/test_matchers.py
+ - responses/test_responses.py
diff --git a/contrib/python/responses/py2/patches/01-fix-tests.patch b/contrib/python/responses/py2/patches/01-fix-tests.patch
new file mode 100644
index 00000000000..a96cfa5d110
--- /dev/null
+++ b/contrib/python/responses/py2/patches/01-fix-tests.patch
@@ -0,0 +1,12 @@
+--- contrib/python/responses/py2/responses/test_responses.py (index)
++++ contrib/python/responses/py2/responses/test_responses.py (working tree)
+@@ -1022,7 +1022,8 @@ def test_response_filebody():
+ """ Adds the possibility to use actual (binary) files as responses """
+
+ def run():
+- current_file = os.path.abspath(__file__)
++ import yatest.common as yc
++ current_file = yc.source_path("contrib/python/responses/py2/responses/test_responses.py")
+ with responses.RequestsMock() as m:
+ with open(current_file, "r") as out:
+ m.add(responses.GET, "http://example.com", body=out.read(), stream=True)