instance_id
stringlengths
10
57
patch
stringlengths
261
37.7k
repo
stringlengths
7
53
base_commit
stringlengths
40
40
hints_text
stringclasses
301 values
test_patch
stringlengths
212
2.22M
problem_statement
stringlengths
23
37.7k
version
stringclasses
1 value
environment_setup_commit
stringlengths
40
40
FAIL_TO_PASS
listlengths
1
4.94k
PASS_TO_PASS
listlengths
0
7.82k
meta
dict
created_at
stringlengths
25
25
license
stringclasses
8 values
__index_level_0__
int64
0
6.41k
zalando-stups__zign-47
diff --git a/zign/cli.py b/zign/cli.py index 2fabfb2..b6cd3e0 100644 --- a/zign/cli.py +++ b/zign/cli.py @@ -87,7 +87,8 @@ def token(name, authorize_url, client_id, business_partner_id, refresh): '''Create a new Platform IAM token or use an existing one.''' try: - token = get_token_implicit_flow(name...
zalando-stups/zign
fec2ac288a3d4ba1d5082e8daa2feea0e1eb9ec1
diff --git a/tests/test_cli.py b/tests/test_cli.py new file mode 100644 index 0000000..8b23802 --- /dev/null +++ b/tests/test_cli.py @@ -0,0 +1,19 @@ +from click.testing import CliRunner +from unittest.mock import MagicMock +from zign.cli import cli + + +def test_token(monkeypatch): + token = 'abc-123' + + get_to...
--refresh doesn't do anything useful The `--refresh` flag doesn't do anything for named tokens. ``` $ ztoken token --refresh -n postman | md5sum 34e6b2a7a14439271f077690eba31fa3 - $ ztoken token --refresh -n postman | md5sum 34e6b2a7a14439271f077690eba31fa3 - ``` I expected this to request a new token usin...
0.0
fec2ac288a3d4ba1d5082e8daa2feea0e1eb9ec1
[ "tests/test_cli.py::test_token" ]
[]
{ "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2017-03-09 08:16:54+00:00
apache-2.0
6,335
zamzterz__Flask-pyoidc-28
diff --git a/src/flask_pyoidc/flask_pyoidc.py b/src/flask_pyoidc/flask_pyoidc.py index 89d05d9..e03b18d 100644 --- a/src/flask_pyoidc/flask_pyoidc.py +++ b/src/flask_pyoidc/flask_pyoidc.py @@ -74,11 +74,10 @@ class OIDCAuthentication(object): OIDC identity provider. """ - def __init__(self, flask_app, cl...
zamzterz/Flask-pyoidc
e4e2d4ffa36b0689b5d1c42cb612e1bdfb4cc638
diff --git a/tests/test_flask_pyoidc.py b/tests/test_flask_pyoidc.py index b7ce050..80161c8 100644 --- a/tests/test_flask_pyoidc.py +++ b/tests/test_flask_pyoidc.py @@ -50,14 +50,19 @@ class TestOIDCAuthentication(object): self.app = Flask(__name__) self.app.config.update({'SERVER_NAME': 'localhost', ...
Add init_app feature It's customary for extensions to allow initialization of an app _after_ construction: For example, if an `app.config` contains the appropriate client information, this would be a desierable API: ```python3 from flask_pyoidc import OIDCAuthentication auth = OIDCAuthentication() def create_...
0.0
e4e2d4ffa36b0689b5d1c42cb612e1bdfb4cc638
[ "tests/test_flask_pyoidc.py::TestOIDCAuthentication::test_dont_reauthenticate_silent_if_authentication_not_expired", "tests/test_flask_pyoidc.py::TestOIDCAuthentication::test_configurable_userinfo_endpoint_method_is_used[POST]", "tests/test_flask_pyoidc.py::TestOIDCAuthentication::test_oidc_logout_redirects_to_...
[ "tests/test_flask_pyoidc.py::Test_Session::test_unauthenticated_session", "tests/test_flask_pyoidc.py::Test_Session::test_should_not_refresh_if_not_supported", "tests/test_flask_pyoidc.py::Test_Session::test_should_not_refresh_if_authenticated_within_refresh_interval", "tests/test_flask_pyoidc.py::Test_Sessio...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2018-08-21 18:07:58+00:00
apache-2.0
6,336
zamzterz__Flask-pyoidc-57
diff --git a/README.md b/README.md index adb7848..39601ae 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,8 @@ config = ProviderConfiguration([provider configuration], client_metadata=client_ **Note: The redirect URIs registered with the provider MUST include `<application_url>/redirect_uri`, where `<applicatio...
zamzterz/Flask-pyoidc
c1494d755af1d427bc214446699eb97f951eb09d
diff --git a/tests/test_flask_pyoidc.py b/tests/test_flask_pyoidc.py index 78cde1a..a2eca3a 100644 --- a/tests/test_flask_pyoidc.py +++ b/tests/test_flask_pyoidc.py @@ -468,3 +468,9 @@ class TestOIDCAuthentication(object): with pytest.raises(ValueError) as exc_info: self.init_app().oidc_auth('unkn...
Do not hardcode routes like `/redirect_uri` Better provide a default which people can then override.
0.0
c1494d755af1d427bc214446699eb97f951eb09d
[ "tests/test_flask_pyoidc.py::TestOIDCAuthentication::test_should_use_custom_redirect_endpoint" ]
[ "tests/test_flask_pyoidc.py::TestOIDCAuthentication::test_logout_handles_redirect_back_from_provider", "tests/test_flask_pyoidc.py::TestOIDCAuthentication::test_using_unknown_provider_name_should_raise_exception", "tests/test_flask_pyoidc.py::TestOIDCAuthentication::test_logout_redirects_to_provider_if_end_sess...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2019-07-27 23:55:39+00:00
apache-2.0
6,337
zamzterz__Flask-pyoidc-70
diff --git a/src/flask_pyoidc/user_session.py b/src/flask_pyoidc/user_session.py index 962f4db..4578db0 100644 --- a/src/flask_pyoidc/user_session.py +++ b/src/flask_pyoidc/user_session.py @@ -11,7 +11,15 @@ class UserSession: Wraps comparison of times necessary for session handling. """ - KEYS = ['acces...
zamzterz/Flask-pyoidc
cf3f5f8ed0507d310c70b40d13b49dd2a7b708b4
diff --git a/tests/test_user_session.py b/tests/test_user_session.py index 6507603..1689161 100644 --- a/tests/test_user_session.py +++ b/tests/test_user_session.py @@ -45,17 +45,17 @@ class TestUserSession(object): def test_should_not_refresh_if_authenticated_within_refresh_interval(self): refresh_inte...
Issues refreshing tokens when 'session_refresh_interval_seconds' is set With the current state of flask_pyoidc we're running into the issue of not silently refreshing the tokens when it's desired. Our current setup is as follows: API endpoints are protected using flask_pyoidc, with the session_refresh_interval_secon...
0.0
cf3f5f8ed0507d310c70b40d13b49dd2a7b708b4
[ "tests/test_user_session.py::TestUserSession::test_should_not_refresh_if_authenticated_within_refresh_interval", "tests/test_user_session.py::TestUserSession::test_should_not_refresh_if_not_previously_authenticated", "tests/test_user_session.py::TestUserSession::test_update[data0]", "tests/test_user_session.p...
[ "tests/test_user_session.py::TestUserSession::test_initialising_session_with_existing_user_session_should_preserve_state", "tests/test_user_session.py::TestUserSession::test_initialising_session_with_new_provider_name_should_reset_session", "tests/test_user_session.py::TestUserSession::test_unauthenticated_sess...
{ "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2019-12-12 19:16:30+00:00
apache-2.0
6,338
zamzterz__Flask-pyoidc-79
diff --git a/docs/configuration.md b/docs/configuration.md index 966193f..432d1d9 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -68,8 +68,8 @@ config = ProviderConfiguration([provider configuration], client_metadata=client_ **Note: The redirect URIs registered with the provider MUST include `<app...
zamzterz/Flask-pyoidc
45544dd9cdde6abff856d7d303451c3ee5f20649
diff --git a/tests/test_flask_pyoidc.py b/tests/test_flask_pyoidc.py index 67ed041..b0c4fac 100644 --- a/tests/test_flask_pyoidc.py +++ b/tests/test_flask_pyoidc.py @@ -501,3 +501,15 @@ class TestOIDCAuthentication(object): authn = self.init_app() assert authn._redirect_uri_endpoint == 'openid_connect...
SERVER_NAME requirement Hi! I've been playing around today with this great lib but I can't figure out one thing. According to the docs, `SERVER_NAME` must be set in order to the lib to work, but there are no further explanations. In my case, using the latest version of flask from pip (1.1.2) and the version 3.2.0...
0.0
45544dd9cdde6abff856d7d303451c3ee5f20649
[ "tests/test_flask_pyoidc.py::TestOIDCAuthentication::test_should_raise_if_domain_not_specified", "tests/test_flask_pyoidc.py::TestOIDCAuthentication::test_should_use_custom_redirect_domain" ]
[ "tests/test_flask_pyoidc.py::TestOIDCAuthentication::test_handle_authentication_response_error_message_without_stored_error", "tests/test_flask_pyoidc.py::TestOIDCAuthentication::test_should_register_client_if_not_registered_before[None]", "tests/test_flask_pyoidc.py::TestOIDCAuthentication::test_handle_implici...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-04-29 17:52:27+00:00
apache-2.0
6,339
zamzterz__Flask-pyoidc-96
diff --git a/src/flask_pyoidc/flask_pyoidc.py b/src/flask_pyoidc/flask_pyoidc.py index 5ca699f..cd00461 100644 --- a/src/flask_pyoidc/flask_pyoidc.py +++ b/src/flask_pyoidc/flask_pyoidc.py @@ -183,7 +183,7 @@ class OIDCAuthentication: # if the current request was from the JS page handling fragment encoded ...
zamzterz/Flask-pyoidc
4aa29e46949e33994edef06eb855b01be7c4d5d4
diff --git a/tests/test_flask_pyoidc.py b/tests/test_flask_pyoidc.py index 427cdf9..e507adc 100644 --- a/tests/test_flask_pyoidc.py +++ b/tests/test_flask_pyoidc.py @@ -290,6 +290,24 @@ class TestOIDCAuthentication(object): assert session.access_token == access_token assert response == '/test'...
Error responses using undefined _redirect_uri_endpoint attribute In some cases (e.g. when the auth state goes stale after much time) we rightfully receive an error that should be passed on to the client ```python Exception on /redirect_uri [POST] Traceback (most recent call last): File "../flask_pyoidc/fl...
0.0
4aa29e46949e33994edef06eb855b01be7c4d5d4
[ "tests/test_flask_pyoidc.py::TestOIDCAuthentication::test_handle_error_response_POST" ]
[ "tests/test_flask_pyoidc.py::TestOIDCAuthentication::test_should_register_client_if_not_registered_before[None]", "tests/test_flask_pyoidc.py::TestOIDCAuthentication::test_handle_authentication_response_fragment_encoded", "tests/test_flask_pyoidc.py::TestOIDCAuthentication::test_logout_redirects_to_provider_if_...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2020-10-14 20:05:44+00:00
apache-2.0
6,340
zarr-developers__zarr-python-1397
diff --git a/docs/release.rst b/docs/release.rst index 7442e519..83588bb3 100644 --- a/docs/release.rst +++ b/docs/release.rst @@ -52,6 +52,9 @@ Bug fixes * Fix ``ReadOnlyError`` when opening V3 store via fsspec reference file system. By :user:`Joe Hamman <jhamman>` :issue:`1383`. +* Fix ``normalize_fill_value`` ...
zarr-developers/zarr-python
d54f25c460f8835a0ec9a7b4bc3482159a5608f9
diff --git a/zarr/tests/test_util.py b/zarr/tests/test_util.py index 0a717b8f..e01aa671 100644 --- a/zarr/tests/test_util.py +++ b/zarr/tests/test_util.py @@ -119,6 +119,7 @@ def test_normalize_fill_value(): structured_dtype = np.dtype([('foo', 'S3'), ('bar', 'i4'), ('baz', 'f8')]) expect = np.array((b'', 0, ...
FutureWarning from zarr.open The following code snippet will raise a FutureWarning: ```python import numpy import zarr ...
0.0
d54f25c460f8835a0ec9a7b4bc3482159a5608f9
[ "zarr/tests/test_util.py::test_normalize_fill_value" ]
[ "zarr/tests/test_util.py::test_normalize_dimension_separator", "zarr/tests/test_util.py::test_normalize_shape", "zarr/tests/test_util.py::test_normalize_chunks", "zarr/tests/test_util.py::test_is_total_slice", "zarr/tests/test_util.py::test_normalize_resize_args", "zarr/tests/test_util.py::test_human_read...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2023-04-20 16:28:03+00:00
mit
6,341
zarr-developers__zarr-python-1499
diff --git a/docs/release.rst b/docs/release.rst index cf1400d3..188edd62 100644 --- a/docs/release.rst +++ b/docs/release.rst @@ -27,6 +27,9 @@ Maintenance * Add ``docs`` requirements to ``pyproject.toml`` By :user:`John A. Kirkham <jakirkham>` :issue:`1494`. +* Fixed caching issue in ``LRUStoreCache``. + By :u...
zarr-developers/zarr-python
f542fca7d0d42ee050e9a49d57ad0f5346f62de3
diff --git a/zarr/tests/test_storage.py b/zarr/tests/test_storage.py index 95570004..ca6a6c1a 100644 --- a/zarr/tests/test_storage.py +++ b/zarr/tests/test_storage.py @@ -2196,7 +2196,10 @@ class TestLRUStoreCache(StoreTests): assert keys == sorted(cache.keys()) assert 1 == store.counter["keys"] ...
tifffile.ZarrTiffStore wrapped in zarr.LRUStoreCache fails to read any chunks ### Zarr version 2.16.0 ### Numcodecs version 0.11.0 ### Python Version 3.11.4 ### Operating System Windows ### Installation py -m pip install -U zarr ### Description Since zarr v2.15.0, the `tifffile.ZarrTiffStore` fails to read a...
0.0
f542fca7d0d42ee050e9a49d57ad0f5346f62de3
[ "zarr/tests/test_storage.py::TestLRUStoreCache::test_cache_keys" ]
[ "zarr/tests/test_storage.py::test_kvstore_repr", "zarr/tests/test_storage.py::test_ensure_store", "zarr/tests/test_storage.py::test_capabilities", "zarr/tests/test_storage.py::test_getsize_non_implemented", "zarr/tests/test_storage.py::test_kvstore_eq", "zarr/tests/test_storage.py::test_coverage_rename", ...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2023-08-14 10:08:51+00:00
mit
6,342
zarr-developers__zarr-python-1724
diff --git a/docs/release.rst b/docs/release.rst index 116393d4..fd48a53b 100644 --- a/docs/release.rst +++ b/docs/release.rst @@ -18,6 +18,12 @@ Release notes Unreleased ---------- +Enhancements +~~~~~~~~~~~~ + +* Override IPython ``_repr_*_`` methods to avoid expensive lookups against object stores. + By :user:`...
zarr-developers/zarr-python
2534413e2f8b56d9c64744419628a464d639f1dc
diff --git a/zarr/tests/test_hierarchy.py b/zarr/tests/test_hierarchy.py index 6c08d7b8..161e1eb8 100644 --- a/zarr/tests/test_hierarchy.py +++ b/zarr/tests/test_hierarchy.py @@ -1,4 +1,5 @@ import atexit +import operator import os import sys import pickle @@ -87,6 +88,26 @@ class TestGroup(unittest.TestCase): ...
Implement ipython repr methods on Group to prevent expensive lookups ### Zarr version 2.16.1 ### Numcodecs version ... ### Python Version ... ### Operating System ... ### Installation conda ### Description `ipython` will look for 11 custom repr methods (https://ipython.readthedocs.io/en/stable/config/integra...
0.0
2534413e2f8b56d9c64744419628a464d639f1dc
[ "zarr/tests/test_hierarchy.py::TestGroup::test_ipython_repr_methods", "zarr/tests/test_hierarchy.py::TestGroupWithMemoryStore::test_ipython_repr_methods", "zarr/tests/test_hierarchy.py::TestGroupWithDirectoryStore::test_ipython_repr_methods", "zarr/tests/test_hierarchy.py::TestGroupWithNestedDirectoryStore::t...
[ "zarr/tests/test_hierarchy.py::TestGroup::test_array_creation", "zarr/tests/test_hierarchy.py::TestGroup::test_context_manager", "zarr/tests/test_hierarchy.py::TestGroup::test_create_dataset", "zarr/tests/test_hierarchy.py::TestGroup::test_create_errors", "zarr/tests/test_hierarchy.py::TestGroup::test_creat...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2024-03-26 16:02:58+00:00
mit
6,343
zheller__flake8-quotes-46
diff --git a/.travis.yml b/.travis.yml index 11c9ca2..d22e40b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ install: - pip install -r requirements-dev.txt # If we are testing Flake8 3.x, then install it - - if test "$FLAKE8_VERSION" = "3"; then pip install flake8==3.0.0b2; fi + - if test "$FLAK...
zheller/flake8-quotes
2cde3ba5170edcd35c3de5ac0d4d8827f568e3db
diff --git a/test/test_checks.py b/test/test_checks.py index f242f16..0cb1574 100644 --- a/test/test_checks.py +++ b/test/test_checks.py @@ -1,18 +1,7 @@ from flake8_quotes import QuoteChecker import os import subprocess -from unittest import expectedFailure, TestCase - - -FLAKE8_VERSION = os.environ.get('FLAKE8_VER...
Incompatible with flake8 version 3 There is a beta version of flake8 version 3, which doesn't use `config_options` anymore so I get the following error: ``` Traceback (most recent call last): File "/home/xzise/.pyenv/versions/3.5.1/bin/flake8", line 11, in <module> sys.exit(main()) File "/home/xzise/.pye...
0.0
2cde3ba5170edcd35c3de5ac0d4d8827f568e3db
[ "test/test_checks.py::TestChecks::test_get_noqa_lines", "test/test_checks.py::DoublesTestChecks::test_doubles", "test/test_checks.py::DoublesTestChecks::test_multiline_string", "test/test_checks.py::DoublesTestChecks::test_noqa_doubles", "test/test_checks.py::DoublesTestChecks::test_wrapped", "test/test_c...
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2016-07-26 16:19:35+00:00
mit
6,344
zhmcclient__python-zhmcclient-142
diff --git a/zhmcclient/_manager.py b/zhmcclient/_manager.py index e3d95aa..06e0c28 100644 --- a/zhmcclient/_manager.py +++ b/zhmcclient/_manager.py @@ -198,8 +198,11 @@ class BaseManager(object): """ found = list() if list(kwargs.keys()) == ['name']: - obj = self.find_by_name(kwar...
zhmcclient/python-zhmcclient
ca4b1e678e3568e3c95143ba8544d2982e6ac40b
diff --git a/tests/unit/test_manager.py b/tests/unit/test_manager.py new file mode 100644 index 0000000..85f77d9 --- /dev/null +++ b/tests/unit/test_manager.py @@ -0,0 +1,70 @@ +#!/usr/bin/env python +# Copyright 2016 IBM Corp. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +...
Regression: findall() raises NotFound Error when searching by name and nothing was found ### Actual behavior _manager.findall(name=foo) raises NotFound exception when nothing was found ### Expected behavior Empty list returned ### Execution environment * zhmcclient version: 0.8.0 + master * Operating system...
0.0
ca4b1e678e3568e3c95143ba8544d2982e6ac40b
[ "tests/unit/test_manager.py::ManagerTests::test_findall_name_no_result" ]
[ "tests/unit/test_manager.py::ManagerTests::test_findall_attribute", "tests/unit/test_manager.py::ManagerTests::test_findall_attribute_no_result", "tests/unit/test_manager.py::ManagerTests::test_findall_name" ]
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2017-01-10 15:47:38+00:00
apache-2.0
6,345
zimeon__ocfl-py-54
diff --git a/ocfl/data/validation-errors.json b/ocfl/data/validation-errors.json index 1f53481..b3b07ff 100644 --- a/ocfl/data/validation-errors.json +++ b/ocfl/data/validation-errors.json @@ -86,9 +86,16 @@ "en": "OCFL Object version directory %s includes an illegal file (%s)" } }, + "E017": { + "p...
zimeon/ocfl-py
2c11ca2c8df09bd33eb18f4fc3de1b879826526b
diff --git a/tests/test_inventory_validator.py b/tests/test_inventory_validator.py index bc87693..1551ca1 100644 --- a/tests/test_inventory_validator.py +++ b/tests/test_inventory_validator.py @@ -66,7 +66,10 @@ class TestAll(unittest.TestCase): iv = InventoryValidator(log=log) log.clear() iv...
Fix validation error for forward slash in `contentDirectory` From https://github.com/OCFL/fixtures/pull/82 the error for this should be `E017` instead of `E018`
0.0
2c11ca2c8df09bd33eb18f4fc3de1b879826526b
[ "tests/test_inventory_validator.py::TestAll::test_validate" ]
[ "tests/test_inventory_validator.py::TestAll::test_check_content_path", "tests/test_inventory_validator.py::TestAll::test_check_digests_present_and_used", "tests/test_inventory_validator.py::TestAll::test_check_logical_path", "tests/test_inventory_validator.py::TestAll::test_digest_regex", "tests/test_invent...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2021-04-20 14:39:28+00:00
mit
6,346
zimeon__ocfl-py-60
diff --git a/ocfl/data/validation-errors.json b/ocfl/data/validation-errors.json index 56eed29..64f9dbf 100644 --- a/ocfl/data/validation-errors.json +++ b/ocfl/data/validation-errors.json @@ -513,7 +513,13 @@ "en": "OCFL Object %s inventory manifest content path %s must not begin or end with /." } }, -...
zimeon/ocfl-py
b7ae64de3cc9388bb8b7b606e50aae05cde3c412
diff --git a/tests/test_inventory_validator.py b/tests/test_inventory_validator.py index 5db1512..af61b9d 100644 --- a/tests/test_inventory_validator.py +++ b/tests/test_inventory_validator.py @@ -101,7 +101,7 @@ class TestAll(unittest.TestCase): log.clear() # Conflicting content paths iv.val...
Correctly handle validation with multiple entries for a given digest in `manifest` See error case https://github.com/OCFL/fixtures/pull/78
0.0
b7ae64de3cc9388bb8b7b606e50aae05cde3c412
[ "tests/test_inventory_validator.py::TestAll::test_check_content_path", "tests/test_inventory_validator.py::TestAll::test_validate_manifest" ]
[ "tests/test_inventory_validator.py::TestAll::test_bad_inventory_files", "tests/test_inventory_validator.py::TestAll::test_check_digests_present_and_used", "tests/test_inventory_validator.py::TestAll::test_check_logical_path", "tests/test_inventory_validator.py::TestAll::test_digest_regex", "tests/test_inven...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2021-04-21 22:24:12+00:00
mit
6,347
zimeon__ocfl-py-66
diff --git a/fixtures b/fixtures index db7d333..9a9d868 160000 --- a/fixtures +++ b/fixtures @@ -1,1 +1,1 @@ -Subproject commit db7d3338fef71be3328510d32d768a2746eb0e1f +Subproject commit 9a9d86802f853de56a4b7925adcceccabee390ee diff --git a/ocfl/data/validation-errors.json b/ocfl/data/validation-errors.json index 210f...
zimeon/ocfl-py
e5db6c0099d125bc46f1aa01366b94b5d244afe9
diff --git a/tests/test_inventory_validator.py b/tests/test_inventory_validator.py index af61b9d..1d2a387 100644 --- a/tests/test_inventory_validator.py +++ b/tests/test_inventory_validator.py @@ -50,7 +50,7 @@ class TestAll(unittest.TestCase): self.assertIn('E041b', log.errors) log.clear() i...
Catch inconsistent id error See https://github.com/OCFL/fixtures/pull/87 in which the `id` in `v1` does not match the `id` in the root/`v2` inventory. My validator fails to report this error: ``` (py38) simeon@RottenApple fixtures> ../ocfl-validate.py 1.0/bad-objects/E037_inconsistent_id INFO:ocfl.object:OCFL obj...
0.0
e5db6c0099d125bc46f1aa01366b94b5d244afe9
[ "tests/test_inventory_validator.py::TestAll::test_validate" ]
[ "tests/test_inventory_validator.py::TestAll::test_bad_inventory_files", "tests/test_inventory_validator.py::TestAll::test_check_content_path", "tests/test_inventory_validator.py::TestAll::test_check_digests_present_and_used", "tests/test_inventory_validator.py::TestAll::test_check_logical_path", "tests/test...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-04-26 12:08:42+00:00
mit
6,348
zimeon__ocfl-py-72
diff --git a/ocfl/data/validation-errors.json b/ocfl/data/validation-errors.json index 2c6f570..28f5fea 100644 --- a/ocfl/data/validation-errors.json +++ b/ocfl/data/validation-errors.json @@ -415,17 +415,29 @@ } }, "E066b": { - "params": ["version_dir" , "prior_head", "where"], + "params": ["version" ,...
zimeon/ocfl-py
008828b7a089aea1b43b87ffeb42d3254faee1ed
diff --git a/tests/test_inventory_validator.py b/tests/test_inventory_validator.py index 1d2a387..6070546 100644 --- a/tests/test_inventory_validator.py +++ b/tests/test_inventory_validator.py @@ -300,11 +300,13 @@ class TestAll(unittest.TestCase): log.clear() # Good inventory in spite of diferent dig...
Detect E066 for fixture E066_E092_old_manifest_digest_incorrect See https://github.com/OCFL/fixtures/pull/71
0.0
008828b7a089aea1b43b87ffeb42d3254faee1ed
[ "tests/test_inventory_validator.py::TestAll::test_compare_states_for_version" ]
[ "tests/test_inventory_validator.py::TestAll::test_bad_inventory_files", "tests/test_inventory_validator.py::TestAll::test_check_content_path", "tests/test_inventory_validator.py::TestAll::test_check_digests_present_and_used", "tests/test_inventory_validator.py::TestAll::test_check_logical_path", "tests/test...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-04-27 13:02:30+00:00
mit
6,349
zimeon__ocfl-py-77
diff --git a/CHANGES.md b/CHANGES.md index 7be9540..b6f1827 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,6 +5,7 @@ * Additional validation improvements: * Checks between version state in different version inventories * Check to see is extra directories look like version directories + * Fix URI scheme ...
zimeon/ocfl-py
7a5ef5e75cb86fec6dd8e87b57949fd755931470
diff --git a/tests/test_inventory_validator.py b/tests/test_inventory_validator.py index 6070546..37519a6 100644 --- a/tests/test_inventory_validator.py +++ b/tests/test_inventory_validator.py @@ -52,6 +52,17 @@ class TestAll(unittest.TestCase): iv.validate({"id": []}) self.assertIn('E037a', log.error...
URN Object IDs flagged as validation warning OCFL objects with an `id` such as: "URN-3:HUL.DRS.OBJECT:100775205", are flagged as validation warnings. I believe these should be valid.. as URNs are valid URIs and the above URN-3 scheme is a valid URN. See: https://www.iana.org/assignments/urn-informal/urn-3
0.0
7a5ef5e75cb86fec6dd8e87b57949fd755931470
[ "tests/test_inventory_validator.py::TestAll::test_validate" ]
[ "tests/test_inventory_validator.py::TestAll::test_bad_inventory_files", "tests/test_inventory_validator.py::TestAll::test_check_content_path", "tests/test_inventory_validator.py::TestAll::test_check_digests_present_and_used", "tests/test_inventory_validator.py::TestAll::test_check_logical_path", "tests/test...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2021-07-02 17:09:14+00:00
mit
6,350
zimeon__ocfl-py-94
diff --git a/ocfl-validate.py b/ocfl-validate.py index 30e1d9c..f5653ec 100755 --- a/ocfl-validate.py +++ b/ocfl-validate.py @@ -61,7 +61,8 @@ for path in args.path: obj = ocfl.Object(lax_digests=args.lax_digests) if obj.validate_inventory(path, show_warnings=show_wa...
zimeon/ocfl-py
aa078262eff7f19ee33e287342e9875fba049b69
diff --git a/tests/test_inventory_validator.py b/tests/test_inventory_validator.py index f8f53e3..56081c6 100644 --- a/tests/test_inventory_validator.py +++ b/tests/test_inventory_validator.py @@ -68,8 +68,14 @@ class TestAll(unittest.TestCase): self.assertIn('W004', log.warns) log.clear() iv...
Fix handling of spec version in standalone inventory check To replicate example: ``` (py38) simeon@RottenApple ocfl-py> ./ocfl-validate.py extra_fixtures/1.1/good-objects/empty_fixity INFO:ocfl.object:OCFL object at extra_fixtures/1.1/good-objects/empty_fixity is VALID (py38) simeon@RottenApple ocfl-py> ./ocfl-vali...
0.0
aa078262eff7f19ee33e287342e9875fba049b69
[ "tests/test_inventory_validator.py::TestAll::test_validate" ]
[ "tests/test_inventory_validator.py::TestAll::test_bad_inventory_files", "tests/test_inventory_validator.py::TestAll::test_check_content_path", "tests/test_inventory_validator.py::TestAll::test_check_digests_present_and_used", "tests/test_inventory_validator.py::TestAll::test_check_logical_path", "tests/test...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-04-16 18:07:32+00:00
mit
6,351
zmoog__refurbished-98
diff --git a/README.md b/README.md index d747423..9fa9355 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,14 @@ $ rfrb it macs --min-saving=300 #### Output formats -Refurbished supports several output formats. +Refurbished supports several output formats: + +- `text` +- `json` +- `ndjson` +- `csv` + +Here are ...
zmoog/refurbished
ef4f517653c45c24a567dfa747196622bf2c2895
diff --git a/tests/test_feedback.py b/tests/test_feedback.py index 8c0c158..21695cf 100644 --- a/tests/test_feedback.py +++ b/tests/test_feedback.py @@ -83,3 +83,21 @@ class TestFeedback(object): result.output == '{"name": "iPad Wi-Fi 128GB ricondizionato - Argento (sesta generazione)", "famil...
CSV output option We should add a new CSV output option for uses cases where users want the raw data to use with other tools. here's an example: ```shell $ rfrb it ipads --name 'iPad Air Wi-Fi 64GB ricondizionato - Celeste (quarta generazione)' --format csv name,family,store,url,price,previous_price,savings_pri...
0.0
ef4f517653c45c24a567dfa747196622bf2c2895
[ "tests/test_feedback.py::TestFeedback::test_csv_format" ]
[ "tests/test_feedback.py::TestFeedback::test_default_format", "tests/test_feedback.py::TestFeedback::test_text_format", "tests/test_feedback.py::TestFeedback::test_json_format", "tests/test_feedback.py::TestFeedback::test_ndjson_format" ]
{ "failed_lite_validators": [ "has_hyperlinks", "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-10-24 21:58:33+00:00
mit
6,352
znicholls__CMIP6-json-data-citation-generator-10
diff --git a/CMIP6_json_data_citation_generator/__init__.py b/CMIP6_json_data_citation_generator/__init__.py index bb6ab69..dceaa2a 100644 --- a/CMIP6_json_data_citation_generator/__init__.py +++ b/CMIP6_json_data_citation_generator/__init__.py @@ -1,5 +1,7 @@ from os import listdir, makedirs, walk from os.path impor...
znicholls/CMIP6-json-data-citation-generator
53d8fe237e012f156e9d11d082d6474674717dc9
diff --git a/tests/data/yaml-test-files/test-special-char.yml b/tests/data/yaml-test-files/test-special-char.yml new file mode 100644 index 0000000..eee4ea7 --- /dev/null +++ b/tests/data/yaml-test-files/test-special-char.yml @@ -0,0 +1,6 @@ +creators: + - creatorName: "Müller, Björn" + givenName: "Björn" + fami...
Check special character support check the support for 'utf-8' in the json template and the json result? The authors or even their affiliations might be 'utf-8' (non-English). To give you a German example: One of our most common last names is: 'Müller'.
0.0
53d8fe237e012f156e9d11d082d6474674717dc9
[ "tests/test_jsonGenerator.py::test_write_json_to_file" ]
[ "tests/test_jsonGenerator.py::test_get_unique_source_ids_in_dir", "tests/test_jsonGenerator.py::test_get_unique_source_ids_in_dir_only_acts_on_nc_files", "tests/test_jsonGenerator.py::test_generate_json_for_all_unique_scenario_ids", "tests/test_jsonGenerator.py::test_write_json_to_file_only_runs_on_nc_file", ...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2018-06-29 11:39:06+00:00
mit
6,353
zooba__deck-13
diff --git a/deck.py b/deck.py index dc7b3a5..ab7193c 100644 --- a/deck.py +++ b/deck.py @@ -9,7 +9,6 @@ import itertools import random import sys - __all__ = [ "Card", "Deck", @@ -22,7 +21,6 @@ __all__ = [ "Value", ] - _SUIT_SORT_ORDER = { # Handle suit-less comparisons gracefully (as high...
zooba/deck
c8ace02770146b674eaeb184a5ebebed36cd2edd
diff --git a/deck-tests.py b/deck-tests.py index 1e43659..dc33044 100644 --- a/deck-tests.py +++ b/deck-tests.py @@ -135,6 +135,17 @@ class PokerHandTests(unittest.TestCase): hand = deck.get_poker_hand(cards) assert hand == (deck.PokerHand.Straight, 6) + def test_straight_with_low_ace(self): + ...
Ace to Five straight/straight flush are not handled in get_poker_hand Low-ace straight/straight flush aren't found as the sort assumes aces-high. PR on way to add tests & support.
0.0
c8ace02770146b674eaeb184a5ebebed36cd2edd
[ "deck-tests.py::PokerHandTests::test_straight_flush_with_low_ace", "deck-tests.py::PokerHandTests::test_straight_with_low_ace" ]
[ "deck-tests.py::DeckTests::test_count", "deck-tests.py::DeckTests::test_count_multiple", "deck-tests.py::DeckTests::test_count_no_jokers", "deck-tests.py::DeckTests::test_count_no_jokers_multiple", "deck-tests.py::DeckTests::test_patch", "deck-tests.py::CardTests::test_eq", "deck-tests.py::CardTests::te...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-04-03 20:44:57+00:00
mit
6,354
zooniverse__panoptes-python-client-207
diff --git a/panoptes_client/panoptes.py b/panoptes_client/panoptes.py index 3f59a9b..463751c 100644 --- a/panoptes_client/panoptes.py +++ b/panoptes_client/panoptes.py @@ -935,7 +935,7 @@ class LinkResolver(object): def __setattr__(self, name, value): reserved_names = ('raw', 'parent') - if name...
zooniverse/panoptes-python-client
a6f91519326e3be7e974b88ce4f8805c5db9a0e4
diff --git a/panoptes_client/tests/test_linkresolver.py b/panoptes_client/tests/test_linkresolver.py new file mode 100644 index 0000000..72555c6 --- /dev/null +++ b/panoptes_client/tests/test_linkresolver.py @@ -0,0 +1,23 @@ +from __future__ import absolute_import, division, print_function + +import unittest +import sy...
Cannot create and save new subject set since 1.1 This [script](https://github.com/miclaraia/muon_analysis/blob/master/muon/scripts/test_panoptes_connection.py) illustrates the problem. The script fails on `subject_set.save()`. Mimics the instructions in the tutorial detailed in the [docs](https://panoptes-python-client...
0.0
a6f91519326e3be7e974b88ce4f8805c5db9a0e4
[ "panoptes_client/tests/test_linkresolver.py::TestLinkResolver::test_set_new_link", "panoptes_client/tests/test_subject_set.py::TestSubjectSet::test_create" ]
[]
{ "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2019-02-22 16:58:26+00:00
apache-2.0
6,355
zooniverse__panoptes-python-client-55
diff --git a/panoptes_client/project.py b/panoptes_client/project.py index fa67fd1..807d3b7 100644 --- a/panoptes_client/project.py +++ b/panoptes_client/project.py @@ -30,7 +30,12 @@ class Project(PanoptesObject): def find(cls, id='', slug=None): if not id and not slug: return None - ...
zooniverse/panoptes-python-client
6be958cc842488e5410814910febd6e71b14d7b0
diff --git a/panoptes_client/tests/test_project.py b/panoptes_client/tests/test_project.py index d900b75..14effae 100644 --- a/panoptes_client/tests/test_project.py +++ b/panoptes_client/tests/test_project.py @@ -1,6 +1,7 @@ import unittest from panoptes_client import Project +from panoptes_client.panoptes import P...
Raise something better than StopIteration in .find() when nothing is found https://github.com/zooniverse/panoptes-python-client/blob/67e11e16cd91689e62939a6ba54ff7769259a525/panoptes_client/panoptes.py#L428
0.0
6be958cc842488e5410814910febd6e71b14d7b0
[ "panoptes_client/tests/test_project.py::TestProject::test_find_unknown_slug" ]
[ "panoptes_client/tests/test_project.py::TestProject::test_find_slug", "panoptes_client/tests/test_project.py::TestProject::test_find_unknown_id" ]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2016-10-27 10:58:20+00:00
apache-2.0
6,356
zopefoundation__AccessControl-70
diff --git a/CHANGES.rst b/CHANGES.rst index 1a303e9..bc80423 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,7 +6,8 @@ For changes before version 3.0, see ``HISTORY.rst``. 4.0b6 (unreleased) ------------------ -- Nothing changed yet. +- Fix deprecation warnings for Python 3 and + change visibility of `buildfacad...
zopefoundation/AccessControl
605ec75772f6579e52380106ba0d333d9b97d866
diff --git a/src/AccessControl/tests/test_requestmethod.py b/src/AccessControl/tests/test_requestmethod.py index 910b22b..9971065 100644 --- a/src/AccessControl/tests/test_requestmethod.py +++ b/src/AccessControl/tests/test_requestmethod.py @@ -13,6 +13,7 @@ from AccessControl.requestmethod import requestmethod fro...
postonly drops kwargs https://github.com/zopefoundation/AccessControl/pull/68 broke the behavior of the postonly-decorator. E.g. `plone.api.group.create()` fails because the `kwargs` are dropped in `Products.PlonePAS.tools.groups.GroupsTool.addGroup` that is decorated. For failing tests sdee https://jenkins.plone.o...
0.0
605ec75772f6579e52380106ba0d333d9b97d866
[ "src/AccessControl/tests/test_requestmethod.py::RequestMethodDecoratorsTests::test_REQUEST_parameter_is_a_requirement", "src/AccessControl/tests/test_requestmethod.py::RequestMethodDecoratorsTests::test_allows_multiple_request_methods", "src/AccessControl/tests/test_requestmethod.py::RequestMethodDecoratorsTest...
[]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2018-10-07 10:06:01+00:00
zpl-2.1
6,357
zopefoundation__AccessControl-90
diff --git a/CHANGES.rst b/CHANGES.rst index 8dcf866..874cf62 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,7 +6,8 @@ For changes before version 3.0, see ``HISTORY.rst``. 4.1 (unreleased) ---------------- -- Nothing changed yet. +- PY3: allow iteration over the result of ``dict.{keys,values,items}`` + (`#89 <ht...
zopefoundation/AccessControl
099c03fb5bcb7e3cf8e9f3f959a1a30508cd5422
diff --git a/src/AccessControl/tests/testZopeGuards.py b/src/AccessControl/tests/testZopeGuards.py index 20bd41f..24c933c 100644 --- a/src/AccessControl/tests/testZopeGuards.py +++ b/src/AccessControl/tests/testZopeGuards.py @@ -355,6 +355,14 @@ class TestDictGuards(GuardTestCase): self.setSecurityManager(...
PY3: "ZopeGuards" forgets to allow iteration over the result of "dict.{keys,values,items}" Under Python 3, the `next`s in the following code all result in an `AccessControl.unauthorized.Unauthorized: You are not allowed to access 'a particular tuple' in this context`: ``` from AccessControl.ZopeGuards import SafeIter...
0.0
099c03fb5bcb7e3cf8e9f3f959a1a30508cd5422
[ "src/AccessControl/tests/testZopeGuards.py::TestDictGuards::test_kvi_iteration" ]
[ "src/AccessControl/tests/testZopeGuards.py::TestGuardedGetattr::test_attr_handler_table", "src/AccessControl/tests/testZopeGuards.py::TestGuardedGetattr::test_calls_validate_for_unknown_type", "src/AccessControl/tests/testZopeGuards.py::TestGuardedGetattr::test_miss", "src/AccessControl/tests/testZopeGuards.p...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2019-07-11 06:59:46+00:00
zpl-2.1
6,358
zopefoundation__Acquisition-54
diff --git a/CHANGES.rst b/CHANGES.rst index c0226e2..d7ed057 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,9 @@ Changelog 4.9 (unreleased) ---------------- -- Nothing changed yet. +- On CPython no longer omit compiling the C code when ``PURE_PYTHON`` is + required. Just evaluate it at runtime. + (`#53 <h...
zopefoundation/Acquisition
448a2c72009069de54c6102e85c00d946b7a45a9
diff --git a/src/Acquisition/tests.py b/src/Acquisition/tests.py index af70b8d..aa96acc 100644 --- a/src/Acquisition/tests.py +++ b/src/Acquisition/tests.py @@ -35,6 +35,7 @@ from Acquisition import ( # NOQA aq_self, Explicit, Implicit, + CAPI, IS_PYPY, IS_PURE, _Wrapper, @@ -3282,18 +...
Stop checking PURE_PYTHON at build (setup.py) time This leads to incorrect wheel building. (See https://github.com/zopefoundation/Persistence/issues/27) Additionally https://github.com/zopefoundation/Acquisition/pull/52/commits/d91643f0d75a7c3ec76e9fe974417beb9d1086e1 could be fixed like https://github.com/zopefound...
0.0
448a2c72009069de54c6102e85c00d946b7a45a9
[ "src/Acquisition/tests.py::TestStory::test_story", "src/Acquisition/tests.py::test_unwrapped", "src/Acquisition/tests.py::test_simple", "src/Acquisition/tests.py::test_muliple", "src/Acquisition/tests.py::test_pinball", "src/Acquisition/tests.py::test_explicit", "src/Acquisition/tests.py::test_mixed_exp...
[]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2021-07-23 06:15:09+00:00
zpl-2.1
6,359
zopefoundation__BTrees-43
diff --git a/BTrees/BTreeTemplate.c b/BTrees/BTreeTemplate.c index 42d2880..ce77853 100644 --- a/BTrees/BTreeTemplate.c +++ b/BTrees/BTreeTemplate.c @@ -219,6 +219,8 @@ BTree_check(BTree *self) return result; } +#define _BGET_REPLACE_TYPE_ERROR 1 +#define _BGET_ALLOW_TYPE_ERROR 0 /* ** _BTree_get ** @@ -229,...
zopefoundation/BTrees
be6e6ea7fed82058dc80874eea4813d73df06f3c
diff --git a/BTrees/tests/test_IOBTree.py b/BTrees/tests/test_IOBTree.py index 2e2e25e..aa14c4a 100644 --- a/BTrees/tests/test_IOBTree.py +++ b/BTrees/tests/test_IOBTree.py @@ -143,6 +143,14 @@ class _TestIOBTreesBase(TypeTest): def _noneraises(self): self._makeOne()[None] = 1 + def testStringAllowed...
BTree.get(object()) raises TypeError on CPython, returns default on PyPy I ran into an implementation difference between the C version and the Python versions. Here's PyPy: ```python Python 2.7.10 (7e8df3df9641, Jun 14 2016, 13:30:54) [PyPy 5.3.1 with GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwi...
0.0
be6e6ea7fed82058dc80874eea4813d73df06f3c
[ "BTrees/tests/test_IOBTree.py::TestIOBTreesPy::testStringAllowedInContains", "BTrees/tests/test_OOBTree.py::OOBTreePyTest::testRejectDefaultComparisonOnSet" ]
[ "BTrees/tests/test_IOBTree.py::TestLongIntKeys::testLongIntKeysWork", "BTrees/tests/test_IOBTree.py::TestLongIntKeys::testLongIntKeysOutOfRange", "BTrees/tests/test_IOBTree.py::IOBucketTest::testBadUpdateTupleSize", "BTrees/tests/test_IOBTree.py::IOBucketTest::testClear", "BTrees/tests/test_IOBTree.py::IOBu...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2016-08-03 13:24:53+00:00
zpl-2.1
6,360
zopefoundation__BTrees-56
diff --git a/BTrees/_base.py b/BTrees/_base.py index 3158d91..bef710a 100644 --- a/BTrees/_base.py +++ b/BTrees/_base.py @@ -111,7 +111,7 @@ class _BucketBase(_Base): while low < high: i = (low + high) // 2 k = keys[i] - if k == key: + if k is key or k == key: ...
zopefoundation/BTrees
1fb38674c67b084b4c0453a3d5cefb79eca967af
diff --git a/BTrees/tests/test_OOBTree.py b/BTrees/tests/test_OOBTree.py index 36643ab..08d77f9 100644 --- a/BTrees/tests/test_OOBTree.py +++ b/BTrees/tests/test_OOBTree.py @@ -161,12 +161,12 @@ class OOBTreeTest(BTreeTests, unittest.TestCase): self.assertRaises(KeyError, t.__getitem__, C()) self.asse...
C/Py difference: keys that are the same object The C implementation does a comparison [by first checking whether the two keys are the same pointer](https://github.com/python/cpython/blob/2.7/Objects/object.c#L997); the Python implementation just goes [right to the `==` operator](https://github.com/zopefoundation/BTrees...
0.0
1fb38674c67b084b4c0453a3d5cefb79eca967af
[ "BTrees/tests/test_OOBTree.py::OOBTreePyTest::testIdentityTrumpsBrokenComparison" ]
[ "BTrees/tests/test_OOBTree.py::OOBucketTest::testBadUpdateTupleSize", "BTrees/tests/test_OOBTree.py::OOBucketTest::testClear", "BTrees/tests/test_OOBTree.py::OOBucketTest::testDeleteInvalidKeyRaisesKeyError", "BTrees/tests/test_OOBTree.py::OOBucketTest::testEmptyRangeSearches", "BTrees/tests/test_OOBTree.py...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2016-12-22 20:41:55+00:00
zpl-2.1
6,361
zopefoundation__DateTime-37
diff --git a/CHANGES.rst b/CHANGES.rst index a161db6..1811e84 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,8 @@ Changelog 4.5 (unreleased) ---------------- -- Nothing changed yet. +- Add ``__format__`` method for DateTime objects + (`#35 <https://github.com/zopefoundation/DateTime/issues/35>`_) 4.4 (...
zopefoundation/DateTime
3fc0626e05f11e899cb60d31177d531b29e53368
diff --git a/src/DateTime/tests/test_datetime.py b/src/DateTime/tests/test_datetime.py index ebb539a..49c31b6 100644 --- a/src/DateTime/tests/test_datetime.py +++ b/src/DateTime/tests/test_datetime.py @@ -39,7 +39,7 @@ else: # pragma: PY2 try: __file__ -except NameError: +except NameError: # pragma: no cover...
supporting fstring formatting It would be great if DateTime could support the new fstring formatting like datetime already does: ``` import datetime, DateTime for now in (datetime.datetime.now(), DateTime.DateTime()): try: print(type(now), f'{now = :%-d.%-m.%Y %H:%M}') except TypeError as e: ...
0.0
3fc0626e05f11e899cb60d31177d531b29e53368
[ "src/DateTime/tests/test_datetime.py::DateTimeTests::test_format" ]
[ "src/DateTime/tests/test_datetime.py::DateTimeTests::testAddPrecision", "src/DateTime/tests/test_datetime.py::DateTimeTests::testBasicTZ", "src/DateTime/tests/test_datetime.py::DateTimeTests::testBug1203", "src/DateTime/tests/test_datetime.py::DateTimeTests::testConstructor3", "src/DateTime/tests/test_datet...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2022-06-27 06:36:15+00:00
zpl-2.1
6,362
zopefoundation__DateTime-42
diff --git a/CHANGES.rst b/CHANGES.rst index b1a8f10..68f43b1 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,12 +4,15 @@ Changelog 4.7 (unreleased) ---------------- +- Fix rounding problem with `DateTime` addition beyond the year 2038 + (`#41 <https://github.com/zopefoundation/DateTime/issues/41>`_) + 4.6 (20...
zopefoundation/DateTime
09b3d6355b6b44d93922e995b0098dbed22f75ef
diff --git a/src/DateTime/tests/test_datetime.py b/src/DateTime/tests/test_datetime.py index ead77b5..07d575a 100644 --- a/src/DateTime/tests/test_datetime.py +++ b/src/DateTime/tests/test_datetime.py @@ -103,6 +103,16 @@ class DateTimeTests(unittest.TestCase): dt = DateTime() self.assertEqual(str(dt ...
tests fail after 2038-01-10 ## BUG/PROBLEM REPORT (OR OTHER COMMON ISSUE) ### What I did: run tests on 2038-01-10 on openSUSE, I do ```bash osc co openSUSE:Factory/python-DateTime && cd $_ osc build --vm-type=kvm --noservice --clean --build-opt=--vm-custom-opt="-rtc base=2038-01-10T00:00:00" --alternative-p...
0.0
09b3d6355b6b44d93922e995b0098dbed22f75ef
[ "src/DateTime/tests/test_datetime.py::DateTimeTests::testAddPrecision" ]
[ "src/DateTime/tests/test_datetime.py::DateTimeTests::testBasicTZ", "src/DateTime/tests/test_datetime.py::DateTimeTests::testBug1203", "src/DateTime/tests/test_datetime.py::DateTimeTests::testConsistentSecondMicroRounding", "src/DateTime/tests/test_datetime.py::DateTimeTests::testConstructor3", "src/DateTime...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2022-09-13 07:39:50+00:00
zpl-2.1
6,363
zopefoundation__DateTime-61
diff --git a/CHANGES.rst b/CHANGES.rst index 3ee820c..082d109 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -7,6 +7,9 @@ Changelog - Fix ``UnknownTimeZoneError`` when unpickling ``DateTime.DateTime().asdatetime()``. (`#58 <https://github.com/zopefoundation/DateTime/issues/58>`_) +- Repair equality comparison betw...
zopefoundation/DateTime
955f3b920b2020c2407e7d9f4aa24e6ef7d20d9d
diff --git a/src/DateTime/tests/test_datetime.py b/src/DateTime/tests/test_datetime.py index 827d002..ae67d45 100644 --- a/src/DateTime/tests/test_datetime.py +++ b/src/DateTime/tests/test_datetime.py @@ -219,6 +219,8 @@ class DateTimeTests(unittest.TestCase): self.assertFalse(dt.equalTo(dt1)) # Compa...
`DateTime.DateTime.equalTo` now breaks with string argument ## BUG/PROBLEM REPORT / FEATURE REQUEST Since DateTime 5.2, using `DateTime.DateTime.equalTo` with something else than a `DateTime` or a number throws `AttributeError`. This is a regression from https://github.com/zopefoundation/DateTime/pull/54 ( cc @fdia...
0.0
955f3b920b2020c2407e7d9f4aa24e6ef7d20d9d
[ "src/DateTime/tests/test_datetime.py::DateTimeTests::test_compare_methods" ]
[ "src/DateTime/tests/test_datetime.py::DateTimeTests::testAddPrecision", "src/DateTime/tests/test_datetime.py::DateTimeTests::testBasicTZ", "src/DateTime/tests/test_datetime.py::DateTimeTests::testBug1203", "src/DateTime/tests/test_datetime.py::DateTimeTests::testConsistentSecondMicroRounding", "src/DateTime...
{ "failed_lite_validators": [ "has_git_commit_hash", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2023-12-03 15:04:47+00:00
zpl-2.1
6,364
zopefoundation__DateTime-62
diff --git a/CHANGES.rst b/CHANGES.rst index b483525..e9e31d1 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,6 +6,10 @@ Changelog - Nothing changed yet. +- Change pickle format to export the microseconds as an int, to + solve a problem with dates after 2038. + (`#56 <https://github.com/zopefoundation/DateTime/...
zopefoundation/DateTime
e892a9d360abba6e8abe1c4a7e48f52efa9c1e72
diff --git a/src/DateTime/tests/test_datetime.py b/src/DateTime/tests/test_datetime.py index ae67d45..f4c2644 100644 --- a/src/DateTime/tests/test_datetime.py +++ b/src/DateTime/tests/test_datetime.py @@ -338,6 +338,24 @@ class DateTimeTests(unittest.TestCase): for key in DateTime.__slots__: self....
tests fail in 2038 ## BUG/PROBLEM REPORT / FEATURE REQUEST <!-- Please do not report security-related issues here. Report them by email to security@plone.org. The Security Team will contact the relevant maintainer if necessary. Include tracebacks, screenshots, code of debugging sessions or code that reproduces...
0.0
e892a9d360abba6e8abe1c4a7e48f52efa9c1e72
[ "src/DateTime/tests/test_datetime.py::DateTimeTests::test_pickle_dates_after_2038" ]
[ "src/DateTime/tests/test_datetime.py::DateTimeTests::testAddPrecision", "src/DateTime/tests/test_datetime.py::DateTimeTests::testBasicTZ", "src/DateTime/tests/test_datetime.py::DateTimeTests::testBug1203", "src/DateTime/tests/test_datetime.py::DateTimeTests::testConsistentSecondMicroRounding", "src/DateTime...
{ "failed_lite_validators": [ "has_issue_reference", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2024-03-20 14:45:08+00:00
zpl-2.1
6,365
zopefoundation__DocumentTemplate-18
diff --git a/CHANGES.rst b/CHANGES.rst index 18c8924..209e47d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -9,6 +9,8 @@ Changelog - No longer use icons which got deleted in Zope 4. +- Fix sorting in <dtml-in> for duplicate entries in Python 3. + 3.0b2 (2017-11-03) ------------------ diff --git a/src/DocumentT...
zopefoundation/DocumentTemplate
6af41a0957407a40e02210926c63810d7bbe53ff
diff --git a/src/DocumentTemplate/tests/test_DT_In.py b/src/DocumentTemplate/tests/test_DT_In.py new file mode 100644 index 0000000..ba517d2 --- /dev/null +++ b/src/DocumentTemplate/tests/test_DT_In.py @@ -0,0 +1,34 @@ +import unittest + + +class DummySection(object): + blocks = ['dummy'] + + +class TestIn(unittest....
<dtml-in list_of_dicts mapping sort=name> breaks for duplicate names Scenario: ```python list_of_dicts = [{'name': 'a'}, {'name': 'b'}, {'name': 'a'}] ``` In DTML call: ``` <dtml-in list_of_dicts mapping sort=name> ``` It breaks because internally `dtml-in` changes the list to ```python [('a', {'nam...
0.0
6af41a0957407a40e02210926c63810d7bbe53ff
[ "src/DocumentTemplate/tests/test_DT_In.py::TestIn::test_sort_sequence" ]
[ "src/DocumentTemplate/tests/test_DT_Var.py::TestNewlineToBr::test_newline_to_br", "src/DocumentTemplate/tests/test_DT_Var.py::TestNewlineToBr::test_newline_to_br_tainted", "src/DocumentTemplate/tests/test_DT_Var.py::TestUrlQuoting::test_url_quoting", "src/DocumentTemplate/tests/test_DT_Var.py::TestUrlQuoting:...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2018-03-22 18:38:05+00:00
zpl-2.1
6,366
zopefoundation__DocumentTemplate-29
diff --git a/CHANGES.rst b/CHANGES.rst index 570eeab..86e2a22 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,10 +4,21 @@ Changelog 3.0b5 (unreleased) ------------------ +- Fix regression with exception handling in ``<dtml-except>`` with Python 2. + (`#25 <https://github.com/zopefoundation/DocumentTemplate/issues...
zopefoundation/DocumentTemplate
44015836dbbea9670ca44a2152d3f10a16512bfb
diff --git a/src/DocumentTemplate/tests/test_DT_Try.py b/src/DocumentTemplate/tests/test_DT_Try.py new file mode 100644 index 0000000..8f5950d --- /dev/null +++ b/src/DocumentTemplate/tests/test_DT_Try.py @@ -0,0 +1,230 @@ +import unittest + +from DocumentTemplate.DT_Util import ParseError +from DocumentTemplate.DT_Rai...
<dtml-except> breaks on Python 2 Traceback: ```python src/Zope/src/App/special_dtml.py:203: in _exec result = render_blocks(self._v_blocks, ns) .../DocumentTemplate-3.0b4-py2.7.egg/DocumentTemplate/_DocumentTemplate.py:148: in render_blocks render_blocks_(blocks, rendered, md) .../DocumentTemplate-3.0b4-p...
0.0
44015836dbbea9670ca44a2152d3f10a16512bfb
[ "src/DocumentTemplate/tests/test_DT_Try.py::DT_Try_Tests::test_DT_Try__Try____init__1", "src/DocumentTemplate/tests/test_DT_Try.py::DT_Try_Tests::test_DT_Try__Try____init__2", "src/DocumentTemplate/tests/test_DT_Try.py::DT_Try_Tests::test_DT_Try__Try____init__3", "src/DocumentTemplate/tests/test_DT_Try.py::DT...
[ "src/DocumentTemplate/tests/test_DT_Try.py::DT_Try_Tests::test_DT_Try__Try__01", "src/DocumentTemplate/tests/test_DT_Try.py::DT_Try_Tests::test_DT_Try__Try__02", "src/DocumentTemplate/tests/test_DT_Try.py::DT_Try_Tests::test_DT_Try__Try__03", "src/DocumentTemplate/tests/test_DT_Try.py::DT_Try_Tests::test_DT_T...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2018-10-02 16:59:26+00:00
zpl-2.1
6,367
zopefoundation__DocumentTemplate-40
diff --git a/CHANGES.rst b/CHANGES.rst index 9bd0e39..5845a28 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,9 @@ Changelog 3.0b6 (unreleased) ------------------ -- Nothing changed yet. +- Fix regression in ``.DT_Util.InstanceDict`` which broke the acquisition + chain of the item it wraps. + (`#38 <https:/...
zopefoundation/DocumentTemplate
4ff3d6e91d933794306a915ef6088ed7d724989b
diff --git a/src/DocumentTemplate/tests/test_DocumentTemplate.py b/src/DocumentTemplate/tests/test_DocumentTemplate.py index 585f522..a58fc5f 100644 --- a/src/DocumentTemplate/tests/test_DocumentTemplate.py +++ b/src/DocumentTemplate/tests/test_DocumentTemplate.py @@ -1,4 +1,18 @@ import unittest +import Acquisition +...
Changed behavior in acquisition When trying to port a Zope installation from Zope2 to Zope4, I encountered an error where I am not sure if the behavior is intended and was broken in Zope2 or if it is a regression. I could reproduce the problematic behavior with DTML Method, DTML Document as well as Z SQL Methods. ...
0.0
4ff3d6e91d933794306a915ef6088ed7d724989b
[ "src/DocumentTemplate/tests/test_DocumentTemplate.py::InstanceDictTests::test_getitem_2" ]
[ "src/DocumentTemplate/tests/test_DocumentTemplate.py::InstanceDictTests::test_getitem" ]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2019-02-28 10:29:36+00:00
zpl-2.1
6,368
zopefoundation__DocumentTemplate-49
diff --git a/CHANGES.rst b/CHANGES.rst index f596197..78d0a26 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,11 @@ Changelog 3.2 (unreleased) ---------------- +- no longer escape double quotes in ``sql_quote`` - that breaks PostgreSQL + (`#48 <https://github.com/zopefoundation/DocumentTemplate/issues/48>`_)...
zopefoundation/DocumentTemplate
0982d86726ae3a39949f0565059e93ea697e8fd9
diff --git a/src/DocumentTemplate/tests/test_DT_Var.py b/src/DocumentTemplate/tests/test_DT_Var.py index afa753a..8067364 100644 --- a/src/DocumentTemplate/tests/test_DT_Var.py +++ b/src/DocumentTemplate/tests/test_DT_Var.py @@ -108,7 +108,7 @@ class TestUrlQuoting(unittest.TestCase): self.assertEqual(bytes_sq...
Error in ZSQLMethod with json fields In latest version of DocumentTemplate and ZSQLMethod symbol '"' is escaping in dtml-sqlvar statement. And it produce errors in ZSQLMethod with json string in <dtml-sqlvar ... type=string> as a value for field type json. For example, create ZSQLMethod with one argument named "arg" a...
0.0
0982d86726ae3a39949f0565059e93ea697e8fd9
[ "src/DocumentTemplate/tests/test_DT_Var.py::TestUrlQuoting::test_bytes_sql_quote", "src/DocumentTemplate/tests/test_DT_Var.py::TestUrlQuoting::test_sql_quote", "src/DocumentTemplate/tests/test_DT_Var.py::TestUrlQuoting::test_text_sql_quote" ]
[ "src/DocumentTemplate/tests/test_DT_Var.py::TestNewlineToBr::test_newline_to_br", "src/DocumentTemplate/tests/test_DT_Var.py::TestNewlineToBr::test_newline_to_br_tainted", "src/DocumentTemplate/tests/test_DT_Var.py::TestUrlQuoting::test_url_quoting", "src/DocumentTemplate/tests/test_DT_Var.py::TestUrlQuoting:...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-02-03 15:00:59+00:00
zpl-2.1
6,369
zopefoundation__DocumentTemplate-55
diff --git a/CHANGES.rst b/CHANGES.rst index d7ab0d5..4646d49 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,9 @@ Changelog 3.3 (unreleased) ---------------- +- Restore ``sql_quote`` behavior of always returning native strings + (`#54 <https://github.com/zopefoundation/DocumentTemplate/issues/54>`_) + 3....
zopefoundation/DocumentTemplate
03bac32bfffd599bb2d6344163365fa20ff8284f
diff --git a/src/DocumentTemplate/tests/testDTML.py b/src/DocumentTemplate/tests/testDTML.py index eea5877..ce516c4 100644 --- a/src/DocumentTemplate/tests/testDTML.py +++ b/src/DocumentTemplate/tests/testDTML.py @@ -15,6 +15,8 @@ import unittest +import six + from ..html_quote import html_quote @@ -268,6 +27...
bytes_sql_quote() returns Bytes, although the content will be part of an SQL query String In `DocumentTemplate/DT_Var.py`, the helper function `bytes_sql_quote()` is used to remove dangerous content from Bytes when used in SQL queries (edited after correction from @dataflake). Because this escaped content is returne...
0.0
03bac32bfffd599bb2d6344163365fa20ff8284f
[ "src/DocumentTemplate/tests/testDTML.py::DTMLTests::test_sql_quote", "src/DocumentTemplate/tests/testDTML.py::RESTTests::test_sql_quote", "src/DocumentTemplate/tests/test_DT_Var.py::TestUrlQuoting::test_sql_quote" ]
[ "src/DocumentTemplate/tests/testDTML.py::DTMLTests::testBasicHTMLIn", "src/DocumentTemplate/tests/testDTML.py::DTMLTests::testBasicHTMLIn2", "src/DocumentTemplate/tests/testDTML.py::DTMLTests::testBasicHTMLIn3", "src/DocumentTemplate/tests/testDTML.py::DTMLTests::testBasicStringIn", "src/DocumentTemplate/te...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2020-06-30 10:42:22+00:00
zpl-2.1
6,370
zopefoundation__RestrictedPython-135
diff --git a/src/RestrictedPython/Utilities.py b/src/RestrictedPython/Utilities.py index ad6a1eb..2abb2db 100644 --- a/src/RestrictedPython/Utilities.py +++ b/src/RestrictedPython/Utilities.py @@ -37,8 +37,8 @@ def same_type(arg1, *args): t = getattr(arg1, '__class__', type(arg1)) for arg in args: if...
zopefoundation/RestrictedPython
ecf62c5116663990c78795ab8b0969874e1bdb3c
diff --git a/tests/builtins/test_utilities.py b/tests/builtins/test_utilities.py index d6b0426..e35d1a6 100644 --- a/tests/builtins/test_utilities.py +++ b/tests/builtins/test_utilities.py @@ -76,7 +76,7 @@ def test_sametype_only_two_args_different(): class Foo(object): pass - assert same_type(object...
`same_type` should return True resp. False There is no need to return `1` resp. `0` since Python 2.3 we have `True` and `False`.
0.0
ecf62c5116663990c78795ab8b0969874e1bdb3c
[ "tests/builtins/test_utilities.py::test_sametype_only_two_args_different", "tests/builtins/test_utilities.py::test_sametype_only_multipe_args_one_different" ]
[ "tests/builtins/test_utilities.py::test_string_in_utility_builtins", "tests/builtins/test_utilities.py::test_math_in_utility_builtins", "tests/builtins/test_utilities.py::test_whrandom_in_utility_builtins", "tests/builtins/test_utilities.py::test_random_in_utility_builtins", "tests/builtins/test_utilities.p...
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2018-10-02 17:59:09+00:00
zpl-2.1
6,371
zopefoundation__RestrictedPython-198
diff --git a/docs/CHANGES.rst b/docs/CHANGES.rst index 49d2d9d..7bb5c5d 100644 --- a/docs/CHANGES.rst +++ b/docs/CHANGES.rst @@ -4,6 +4,9 @@ Changes 5.1a0 (unreleased) ------------------ +- Add support for the ``bytes`` and ``sorted`` builtins + (`#186 <https://github.com/zopefoundation/RestrictedPython/issues/186...
zopefoundation/RestrictedPython
a31c5572de8a0e6c4f41ea5a977fc27459917c8e
diff --git a/tests/test_Guards.py b/tests/test_Guards.py index fe6b2e0..40bd6f0 100644 --- a/tests/test_Guards.py +++ b/tests/test_Guards.py @@ -15,6 +15,16 @@ def _write_(x): return x +def test_Guards_bytes(): + """It contains bytes""" + assert restricted_eval('bytes(1)') == bytes(1) + + +def test_Guard...
Adding "bytes" to allowed builtin names Having `bytes` would allow a sane way of getting at `OFS.Image.File` data in restricted code under Python 3. `str` is inappropriate because it wants to decode the file content using the default UTF-8 encoding that may not match the actual encoding used by file contents. Callin...
0.0
a31c5572de8a0e6c4f41ea5a977fc27459917c8e
[ "tests/test_Guards.py::test_Guards_bytes", "tests/test_Guards.py::test_Guards_sorted" ]
[ "tests/test_Guards.py::test_Guards__safe_builtins__1", "tests/test_Guards.py::test_Guards__safe_builtins__2", "tests/test_Guards.py::test_Guards__guarded_setattr__1", "tests/test_Guards.py::test_Guards__write_wrapper__1", "tests/test_Guards.py::test_Guards__write_wrapper__2", "tests/test_Guards.py::test_G...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-07-10 10:28:05+00:00
zpl-2.1
6,372
zopefoundation__RestrictedPython-272
diff --git a/CHANGES.rst b/CHANGES.rst index 24ed32f..6018a60 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,6 +6,7 @@ Changes - Allow to use the package with Python 3.13 -- Caution: No security audit has been done so far. +- Add support for single mode statements / execution. 7.1 (2024-03-14) diff --git a...
zopefoundation/RestrictedPython
67f3c1bcb4fad913505d2c34ce7a6835869ff77b
diff --git a/tests/test_compile.py b/tests/test_compile.py index 3dacd73..603ad84 100644 --- a/tests/test_compile.py +++ b/tests/test_compile.py @@ -160,13 +160,24 @@ def test_compile__compile_restricted_eval__used_names(): assert result.used_names == {'a': True, 'b': True, 'x': True, 'func': True} -def test_c...
Unable to compile single expressions ## PROBLEM REPORT Attempted a simple `compile_restricted` using `single`. ```python x = 50 code = compile_restricted('x + 25', '<string>', 'single') ``` ### What I did: Attempted a simple comparison with `compile()`. Also, compared it with `exec`. ```python x = 50...
0.0
67f3c1bcb4fad913505d2c34ce7a6835869ff77b
[ "tests/test_compile.py::test_compile__compile_restricted_single__1", "tests/test_compile.py::test_compile__compile_restricted__2" ]
[ "tests/test_compile.py::test_compile__compile_restricted_invalid_code_input", "tests/test_compile.py::test_compile__compile_restricted_invalid_policy_input", "tests/test_compile.py::test_compile__compile_restricted_invalid_mode_input", "tests/test_compile.py::test_compile__invalid_syntax", "tests/test_compi...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2024-02-29 15:52:59+00:00
zpl-2.1
6,373
zopefoundation__RestrictedPython-97
diff --git a/docs/CHANGES.rst b/docs/CHANGES.rst index 91bc291..9af2e61 100644 --- a/docs/CHANGES.rst +++ b/docs/CHANGES.rst @@ -7,6 +7,9 @@ Changes - Warn when using another Python implementation than CPython as it is not safe to use RestrictedPython with other versions than CPyton. See https://bitbucket.org/pypy/...
zopefoundation/RestrictedPython
a63f5c3b600b00cb5bbe779b31e75e94413f8390
diff --git a/tests/test_eval.py b/tests/test_eval.py index 0499a04..d1acf10 100644 --- a/tests/test_eval.py +++ b/tests/test_eval.py @@ -95,3 +95,10 @@ def test_Eval__RestictionCapableEval__eval_1(): ob.globals['c'] = 8 result = ob.eval(dict(a=1, b=2, c=4)) assert result == 11 + + +def test_Eval__Restict...
list comprehension expression raises "TypeError: 'NoneType' object is not subscriptable" Tested with Python 3.6.1 with RestrictedPython 4.0b2: ``` (Pdb) RestrictionCapableEval('[item for item in [1,2]]').eval(context) *** TypeError: 'NoneType' object is not subscriptable (Pdb) [item for item in [1,2]] [1, 2] ``` ...
0.0
a63f5c3b600b00cb5bbe779b31e75e94413f8390
[ "tests/test_eval.py::test_Eval__RestictionCapableEval__eval__2" ]
[ "tests/test_eval.py::test_init", "tests/test_eval.py::test_init_with_syntax_error", "tests/test_eval.py::test_Eval__RestrictionCapableEval_1", "tests/test_eval.py::test_Eval__RestrictionCapableEval__2", "tests/test_eval.py::test_Eval__RestictionCapableEval__prepUnrestrictedCode_1", "tests/test_eval.py::te...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2018-01-25 11:29:02+00:00
zpl-2.1
6,374
zopefoundation__ZConfig-51
diff --git a/CHANGES.rst b/CHANGES.rst index 0802c08..4fb65de 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -2,10 +2,13 @@ Change History for ZConfig ========================== -3.3.1 (unreleased) +3.4.0 (unreleased) ------------------ -- Nothing changed yet. +- The ``logfile`` section type defined by the ``ZCon...
zopefoundation/ZConfig
ce8ad23032399376a972df8a69591bc717258ff5
diff --git a/ZConfig/components/logger/tests/test_logger.py b/ZConfig/components/logger/tests/test_logger.py index ced3b66..30b5441 100644 --- a/ZConfig/components/logger/tests/test_logger.py +++ b/ZConfig/components/logger/tests/test_logger.py @@ -170,6 +170,45 @@ class TestConfig(LoggingTestHelper, unittest.TestCase)...
Support delay parameter for file-based handlers The *delay* parameter was added for all the file-based handlers from the ``logging`` package in Python 2.6, but ``ZConfig`` was not updated to support that. We don't need to worry about pre-*delay* versions at this point, and it would be useful to have support for this...
0.0
ce8ad23032399376a972df8a69591bc717258ff5
[ "ZConfig/components/logger/tests/test_logger.py::TestConfig::test_delayed_stderr", "ZConfig/components/logger/tests/test_logger.py::TestConfig::test_delayed_stdout", "ZConfig/components/logger/tests/test_logger.py::TestConfig::test_encoded_stderr", "ZConfig/components/logger/tests/test_logger.py::TestConfig::...
[ "ZConfig/components/logger/tests/test_logger.py::TestConfig::test_config_without_handlers", "ZConfig/components/logger/tests/test_logger.py::TestConfig::test_config_without_logger", "ZConfig/components/logger/tests/test_logger.py::TestConfig::test_custom_formatter", "ZConfig/components/logger/tests/test_logge...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2018-12-04 01:47:49+00:00
zpl-2.1
6,375
zopefoundation__ZConfig-70
diff --git a/.travis.yml b/.travis.yml index 9dd3331..f46558a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ python: - 3.5 - 3.6 - 3.7 + - 3.8-dev - pypy - pypy3 diff --git a/CHANGES.rst b/CHANGES.rst index 030e368..731807f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,7 +5,...
zopefoundation/ZConfig
4be3fd06147637e0efd190da0df54ccf229c2aca
diff --git a/ZConfig/components/logger/tests/test_formatter.py b/ZConfig/components/logger/tests/test_formatter.py index 81c7235..3a04a5f 100644 --- a/ZConfig/components/logger/tests/test_formatter.py +++ b/ZConfig/components/logger/tests/test_formatter.py @@ -25,6 +25,17 @@ import ZConfig.components.logger.formatter ...
tests break with Python 3.8 Introduction of formatting string validation in ``logging.Formatter`` breaks several of our formatting control tests.
0.0
4be3fd06147637e0efd190da0df54ccf229c2aca
[ "ZConfig/components/logger/tests/test_formatter.py::LoggerStyledFormatterTestCase::test_safe_template_with_junk", "ZConfig/components/logger/tests/test_formatter.py::ZopeExceptionsFormatterTestCase::test_safe_template_with_junk" ]
[ "ZConfig/components/logger/tests/test_formatter.py::LogFormatStyleTestCase::test_bad_values", "ZConfig/components/logger/tests/test_formatter.py::LogFormatStyleTestCase::test_classic", "ZConfig/components/logger/tests/test_formatter.py::LogFormatStyleTestCase::test_format", "ZConfig/components/logger/tests/te...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2019-09-17 23:32:25+00:00
zpl-2.1
6,376
zopefoundation__ZODB-170
diff --git a/CHANGES.rst b/CHANGES.rst index 039cc6ec..f3f7d1cd 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -9,6 +9,8 @@ - Drop support for Python 3.3. +- Ensure that the ``HistoricalStorageAdapter`` forwards the ``release`` method to + its base instance. See `issue 78 <https://github.com/zopefoundation/ZODB/is...
zopefoundation/ZODB
5056d49e79bc06f6d343973d71c3c3185e18975e
diff --git a/src/ZODB/tests/test_mvccadapter.py b/src/ZODB/tests/test_mvccadapter.py new file mode 100644 index 00000000..9b1f28cf --- /dev/null +++ b/src/ZODB/tests/test_mvccadapter.py @@ -0,0 +1,60 @@ +############################################################################## +# +# Copyright (c) 2017 Zope Foundat...
HistoricalStorageAdapter does not forward release to its base This causes a connection leak on RelStorage.
0.0
5056d49e79bc06f6d343973d71c3c3185e18975e
[ "src/ZODB/tests/test_mvccadapter.py::TestHistoricalStorageAdapter::test_forwards_release" ]
[ "src/ZODB/tests/test_mvccadapter.py::TestBase::test_getattr_does_not_hide_exceptions", "src/ZODB/tests/test_mvccadapter.py::TestBase::test_getattr_raises_if_missing" ]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2017-07-24 17:15:54+00:00
zpl-2.1
6,377
zopefoundation__ZODB-260
diff --git a/src/ZODB/scripts/repozo.py b/src/ZODB/scripts/repozo.py index d9422ad2..70d323f5 100755 --- a/src/ZODB/scripts/repozo.py +++ b/src/ZODB/scripts/repozo.py @@ -251,6 +251,8 @@ def parseargs(argv): if options.withverify is not None: log('--with-verify option is ignored in backup mode') ...
zopefoundation/ZODB
334282c34cac6f3dabceb560940d7e881dd6b853
diff --git a/src/ZODB/scripts/tests/test_repozo.py b/src/ZODB/scripts/tests/test_repozo.py index 785069f4..f9076092 100644 --- a/src/ZODB/scripts/tests/test_repozo.py +++ b/src/ZODB/scripts/tests/test_repozo.py @@ -150,7 +150,8 @@ class Test_parseargs(unittest.TestCase): def test_mode_selection(self): f...
Repozo/Filestorage: TypeError: expected str, bytes or os.PathLike object, not NoneType Plone 5.2RC1, ZODB 5.5.1, Python 3.6: ``` dgho@server:~/onkopedia_buildout$ bin/repozo --backup --repository /tmp/foo Traceback (most recent call last): File "bin/repozo", line 20, in <module> sys.exit(ZODB.scripts.rep...
0.0
334282c34cac6f3dabceb560940d7e881dd6b853
[ "src/ZODB/scripts/tests/test_repozo.py::Test_parseargs::test_backup_required_args" ]
[ "src/ZODB/scripts/tests/test_repozo.py::Test_parseargs::test_backup_ignored_args", "src/ZODB/scripts/tests/test_repozo.py::Test_parseargs::test_bad_argument", "src/ZODB/scripts/tests/test_repozo.py::Test_parseargs::test_bad_option", "src/ZODB/scripts/tests/test_repozo.py::Test_parseargs::test_help", "src/ZO...
{ "failed_lite_validators": [ "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2019-03-18 11:50:11+00:00
zpl-2.1
6,378
zopefoundation__ZODB-269
diff --git a/CHANGES.rst b/CHANGES.rst index a8968eb9..3331176d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -13,12 +13,17 @@ - Drop support for Python 3.4. +- Fix ``DB.undo()`` and ``DB.undoMultiple()`` to close the storage + they open behind the scenes when the transaction is committed or + rolled back. See `...
zopefoundation/ZODB
79fe4737e3df5916bd4ce48d49b65caf26000cd4
diff --git a/src/ZODB/tests/testDB.py b/src/ZODB/tests/testDB.py index f19a6fca..7d24d864 100644 --- a/src/ZODB/tests/testDB.py +++ b/src/ZODB/tests/testDB.py @@ -110,6 +110,117 @@ class DBTests(ZODB.tests.util.TestCase): check(db.undoLog(0, 3) , True) check(db.undoInfo(0, 3) , True) + +class Trans...
DB.undo() leaks MVCC storages I see this [in the relstorage tests](https://github.com/zodb/relstorage/issues/225). That means the underlying database connections leak. Here's where a storage is allocated by calling `new_instance()`: ```Python traceback File "//relstorage/src/relstorage/tests/blob/testblob.py",...
0.0
79fe4737e3df5916bd4ce48d49b65caf26000cd4
[ "src/ZODB/tests/testDB.py::TransactionalUndoTests::test_close_many", "src/ZODB/tests/testDB.py::TransactionalUndoTests::test_only_new_instance_on_begin", "src/ZODB/tests/testDB.py::TransactionalUndoTests::test_tpc_abort_closes", "src/ZODB/tests/testDB.py::TransactionalUndoTests::test_tpc_abort_closes_on_excep...
[ "src/ZODB/tests/testDB.py::DBTests::testSets", "src/ZODB/tests/testDB.py::DBTests::test_history_and_undo_meta_data_text_handlinf", "src/ZODB/tests/testDB.py::DBTests::test_references", "src/ZODB/tests/testDB.py::TransactionalUndoTests::test_sortKey", "src/ZODB/tests/testDB.py::test_invalidateCache", "src/...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2019-05-14 15:09:05+00:00
zpl-2.1
6,379
zopefoundation__ZODB-291
diff --git a/CHANGES.rst b/CHANGES.rst index 218116b6..43d58729 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,6 +5,11 @@ 5.6.0 (unreleased) ================== +- Fix race with invalidations when starting a new transaction. The bug + affected Storage implementations that rely on mvccadapter, and could result + ...
zopefoundation/ZODB
12b52a71b4739aeec728603a60298118a2d4e2bc
diff --git a/src/ZODB/FileStorage/tests.py b/src/ZODB/FileStorage/tests.py index 64d08287..fb564d41 100644 --- a/src/ZODB/FileStorage/tests.py +++ b/src/ZODB/FileStorage/tests.py @@ -113,15 +113,15 @@ def pack_with_repeated_blob_records(): fixed by the time you read this, but there might still be transactions...
Race in Connection.open() vs invalidations -> corrupt data Hello up there, For wendelin.core v2 I need a way to know at which particular database state application-level ZODB connection is viewing the database. I was looking for that in `Connection.open` / `MVCCAdapter` code and noticed concurrency bug that leads to...
0.0
12b52a71b4739aeec728603a60298118a2d4e2bc
[ "src/ZODB/tests/testConnection.py::InvalidationTests::test_mvccadapterNewTransactionVsInvalidations" ]
[ "src/ZODB/FileStorage/tests.py::test_suite", "src/ZODB/tests/testConnection.py::ConnectionDotAdd::testCommit", "src/ZODB/tests/testConnection.py::ConnectionDotAdd::testModifyOnGetstate", "src/ZODB/tests/testConnection.py::ConnectionDotAdd::testResetOnAbort", "src/ZODB/tests/testConnection.py::ConnectionDotA...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2019-12-13 19:48:13+00:00
zpl-2.1
6,380
zopefoundation__ZODB-355
diff --git a/CHANGES.rst b/CHANGES.rst index f833ad5e..99fb8070 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,6 +5,12 @@ 5.6.1 (unreleased) ================== +- Readd transaction size information to ``fsdump`` output; + adapt `fsstats` to ``fsdump``'s exchanged order for ``size`` and ``class`` + information i...
zopefoundation/ZODB
1fb097b41cae4ca863c8a3664414c9ec0e204393
diff --git a/src/ZODB/scripts/tests/test_fsdump_fsstats.py b/src/ZODB/scripts/tests/test_fsdump_fsstats.py new file mode 100644 index 00000000..daeee43a --- /dev/null +++ b/src/ZODB/scripts/tests/test_fsdump_fsstats.py @@ -0,0 +1,62 @@ +############################################################################## +# +...
`fsstats` no longer matches output of `fsdump` ZODB==5.6.0 `scripts.fsstats` is supposed to derive statistics from the output of `FileStorage.fsdump`. However, it no longer understands this output. Transaction records produced by `fsdump` look like ``` Trans #00000 tid=038e1d5f01b145cc time=2011-05-05 07:59:00....
0.0
1fb097b41cae4ca863c8a3664414c9ec0e204393
[ "src/ZODB/scripts/tests/test_fsdump_fsstats.py::FsdumpFsstatsTests::test_fsdump", "src/ZODB/scripts/tests/test_fsdump_fsstats.py::FsdumpFsstatsTests::test_fsstats" ]
[ "src/ZODB/tests/util.py::AAAA_Test_Runner_Hack::testNothing" ]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-10-03 11:08:53+00:00
zpl-2.1
6,381
zopefoundation__Zope-1003
diff --git a/CHANGES.rst b/CHANGES.rst index 89abf2fc4..4f9d5e270 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -11,6 +11,9 @@ https://github.com/zopefoundation/Zope/blob/4.x/CHANGES.rst 5.4 (unreleased) ---------------- +- Enable WebDAV PUT factories to change a newly created object's ID + (`#997 <https://github....
zopefoundation/Zope
ba9f5ae81378f0eeeecb0463caf8434b1467ef27
diff --git a/src/webdav/tests/testPUT_factory.py b/src/webdav/tests/testPUT_factory.py index 36597f19e..79c824569 100644 --- a/src/webdav/tests/testPUT_factory.py +++ b/src/webdav/tests/testPUT_factory.py @@ -90,3 +90,20 @@ class TestPUTFactory(unittest.TestCase): 'PUT factory should not acqui...
Webdav _default_PUT_factory not working as expected ### What I did: After a Zope update (possibly to 5.3 but it could be an earlier one) certain files do not get converted to Zope objects as expected when uploaded via webdav. ### What I expect to happen: - Files with the extensions 'html' or 'pt' should result i...
0.0
ba9f5ae81378f0eeeecb0463caf8434b1467ef27
[ "src/webdav/tests/testPUT_factory.py::TestPUTFactory::testPUT_factory_changes_name" ]
[ "src/webdav/tests/testPUT_factory.py::TestPUTFactory::testCollector2261", "src/webdav/tests/testPUT_factory.py::TestPUTFactory::testInsideOutVirtualHosting", "src/webdav/tests/testPUT_factory.py::TestPUTFactory::testNoVirtualHosting", "src/webdav/tests/testPUT_factory.py::TestPUTFactory::testSimpleVirtualHost...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2022-01-06 12:20:45+00:00
zpl-2.1
6,382
zopefoundation__Zope-1135
diff --git a/CHANGES.rst b/CHANGES.rst index 5afe97abc..e99b7b40f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -20,6 +20,15 @@ https://github.com/zopefoundation/Zope/blob/4.x/CHANGES.rst - Update to newest compatible versions of dependencies. +- Make ``mapply`` ``__signature__`` aware. + This allows to publish m...
zopefoundation/Zope
b0bb1084379c5c693f9277b3d0ce044cea849dda
diff --git a/src/ZPublisher/tests/test_mapply.py b/src/ZPublisher/tests/test_mapply.py index d0cc4eee3..590df65db 100644 --- a/src/ZPublisher/tests/test_mapply.py +++ b/src/ZPublisher/tests/test_mapply.py @@ -90,3 +90,17 @@ class MapplyTests(unittest.TestCase): ob = NoCallButAcquisition().__of__(Root()) ...
Feature request: support Python 3 style signature declarations in `ZPublisher.mapply.mapply` Python 3 has introduced the `__signature__` attribute to inform a caller about the signature of a callable. This significantly simplifies the implementation of signature preserving decorators. Unfortunately, `ZPublisher.mapp...
0.0
b0bb1084379c5c693f9277b3d0ce044cea849dda
[ "src/ZPublisher/tests/test_mapply.py::MapplyTests::testFunctionWithSignature" ]
[ "src/ZPublisher/tests/test_mapply.py::MapplyTests::testClass", "src/ZPublisher/tests/test_mapply.py::MapplyTests::testMethod", "src/ZPublisher/tests/test_mapply.py::MapplyTests::testNoCallButAcquisition", "src/ZPublisher/tests/test_mapply.py::MapplyTests::testObjectWithCall", "src/ZPublisher/tests/test_mapp...
{ "failed_lite_validators": [ "has_many_modified_files", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2023-06-17 09:43:12+00:00
zpl-2.1
6,383
zopefoundation__Zope-1142
diff --git a/CHANGES.rst b/CHANGES.rst index e99b7b40f..c4b17af07 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -29,6 +29,9 @@ https://github.com/zopefoundation/Zope/blob/4.x/CHANGES.rst Note: ``mapply`` still does not support keyword only, var positional and var keyword parameters. +- Make Zope's parameters fo...
zopefoundation/Zope
345d656557bfc414f70b92637fef33dde747a97d
diff --git a/src/Zope2/Startup/tests/test_schema.py b/src/Zope2/Startup/tests/test_schema.py index 6acf3b301..b1b06641f 100644 --- a/src/Zope2/Startup/tests/test_schema.py +++ b/src/Zope2/Startup/tests/test_schema.py @@ -190,3 +190,46 @@ class WSGIStartupTestCase(unittest.TestCase): self.assertFalse(webdav...
ZPublisher.HTTPRequest.FORM_MEMORY_LIMIT too low Hello @d-maurer , the choosen data limit for FORM_MEMORY_LIMIT now is limited to only 1 Mb; https://github.com/zopefoundation/Zope/blob/345d656557bfc414f70b92637fef33dde747a97d/src/ZPublisher/HTTPRequest.py#L54C9-L58 This FORM_MEMORY_LIMIT value was introduced here:...
0.0
345d656557bfc414f70b92637fef33dde747a97d
[ "src/Zope2/Startup/tests/test_schema.py::WSGIStartupTestCase::test_dos_protection" ]
[ "src/Zope2/Startup/tests/test_schema.py::WSGIStartupTestCase::test_automatically_quote_dtml_request_data", "src/Zope2/Startup/tests/test_schema.py::WSGIStartupTestCase::test_default_zpublisher_encoding", "src/Zope2/Startup/tests/test_schema.py::WSGIStartupTestCase::test_environment", "src/Zope2/Startup/tests/...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2023-07-13 08:13:11+00:00
zpl-2.1
6,384
zopefoundation__Zope-1156
diff --git a/CHANGES.rst b/CHANGES.rst index d9ecaf643..fcd77f56b 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -18,6 +18,9 @@ https://github.com/zopefoundation/Zope/blob/4.x/CHANGES.rst - Added image dimensions to SVG file properties `#1146 <https://github.com/zopefoundation/Zope/pull/1146>`_. +- Fix username no...
zopefoundation/Zope
a0f70b6806272523f4d9fafb11ab3ffac1638638
diff --git a/src/ZPublisher/tests/test_WSGIPublisher.py b/src/ZPublisher/tests/test_WSGIPublisher.py index 88c29ba0b..b624a3ac7 100644 --- a/src/ZPublisher/tests/test_WSGIPublisher.py +++ b/src/ZPublisher/tests/test_WSGIPublisher.py @@ -820,6 +820,15 @@ class TestPublishModule(ZopeTestCase): self._callFUT(envi...
Username not in access log for error requests ## BUG/PROBLEM REPORT / FEATURE REQUEST <!-- Please do not report security-related issues here. Report them by email to security@plone.org. The Security Team will contact the relevant maintainer if necessary. Include tracebacks, screenshots, code of debugging sessi...
0.0
a0f70b6806272523f4d9fafb11ab3ffac1638638
[ "src/ZPublisher/tests/test_WSGIPublisher.py::TestPublishModule::test_set_REMOTE_USER_environ_error" ]
[ "src/ZPublisher/tests/test_WSGIPublisher.py::WSGIResponseTests::test___str___raises", "src/ZPublisher/tests/test_WSGIPublisher.py::WSGIResponseTests::test_debugError", "src/ZPublisher/tests/test_WSGIPublisher.py::WSGIResponseTests::test_exception_calls_unauthorized", "src/ZPublisher/tests/test_WSGIPublisher.p...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2023-09-15 14:28:01+00:00
zpl-2.1
6,385
zopefoundation__Zope-1172
diff --git a/CHANGES.rst b/CHANGES.rst index 432f245de..2aa73244f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -16,6 +16,9 @@ https://github.com/zopefoundation/Zope/blob/4.x/CHANGES.rst - Update to newest compatible versions of dependencies. +- Honor a request's ``Content-Length`` + (`#1171 <https://github.com/z...
zopefoundation/Zope
c070668ea18c585c55784e40c1ef68851cfbd011
diff --git a/src/ZPublisher/tests/testHTTPRequest.py b/src/ZPublisher/tests/testHTTPRequest.py index d7fe18e4d..0dafba669 100644 --- a/src/ZPublisher/tests/testHTTPRequest.py +++ b/src/ZPublisher/tests/testHTTPRequest.py @@ -31,6 +31,7 @@ from zope.publisher.interfaces.http import IHTTPRequest from zope.testing.cleanu...
Zope 5.8.1 breaks using `wsgiref` ### What I did: I am using Python's stdlib `wsgiref` in selenium tests to start a simple WSGI server. ### What I expect to happen: Using `wsgiref` should be possible. ### What actually happened: `wsgiref` uses a `socket` as `stdin` for the WSGI environment. And Zope 5.8...
0.0
c070668ea18c585c55784e40c1ef68851cfbd011
[ "src/ZPublisher/tests/testHTTPRequest.py::RecordTests::test__str__returns_native_string", "src/ZPublisher/tests/testHTTPRequest.py::RecordTests::test_copy", "src/ZPublisher/tests/testHTTPRequest.py::RecordTests::test_dict_methods", "src/ZPublisher/tests/testHTTPRequest.py::RecordTests::test_dict_special_metho...
[]
{ "failed_lite_validators": [ "has_many_modified_files", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2023-10-12 10:19:56+00:00
zpl-2.1
6,386
zopefoundation__Zope-1175
diff --git a/CHANGES.rst b/CHANGES.rst index 2aa73244f..78aaf1f90 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -16,8 +16,13 @@ https://github.com/zopefoundation/Zope/blob/4.x/CHANGES.rst - Update to newest compatible versions of dependencies. -- Honor a request's ``Content-Length`` - (`#1171 <https://github.com/...
zopefoundation/Zope
4268cb13a4ba62ec90ff941c2aececbf21c2970b
diff --git a/src/ZPublisher/tests/testHTTPRequest.py b/src/ZPublisher/tests/testHTTPRequest.py index 0dafba669..d7fe18e4d 100644 --- a/src/ZPublisher/tests/testHTTPRequest.py +++ b/src/ZPublisher/tests/testHTTPRequest.py @@ -31,7 +31,6 @@ from zope.publisher.interfaces.http import IHTTPRequest from zope.testing.cleanu...
Zope 5.8.1 breaks using `wsgiref` ### What I did: I am using Python's stdlib `wsgiref` in selenium tests to start a simple WSGI server. ### What I expect to happen: Using `wsgiref` should be possible. ### What actually happened: `wsgiref` uses a `socket` as `stdin` for the WSGI environment. And Zope 5.8...
0.0
4268cb13a4ba62ec90ff941c2aececbf21c2970b
[ "src/ZPublisher/tests/testHTTPRequest.py::RecordTests::test__str__returns_native_string", "src/ZPublisher/tests/testHTTPRequest.py::RecordTests::test_copy", "src/ZPublisher/tests/testHTTPRequest.py::RecordTests::test_dict_methods", "src/ZPublisher/tests/testHTTPRequest.py::RecordTests::test_dict_special_metho...
[]
{ "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2023-10-17 12:04:15+00:00
zpl-2.1
6,387
zopefoundation__Zope-1183
diff --git a/CHANGES.rst b/CHANGES.rst index 0a3cd08e0..9665d0317 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,6 +10,9 @@ https://github.com/zopefoundation/Zope/blob/4.x/CHANGES.rst 5.8.7 (unreleased) ------------------ +- Support form data in ``PUT`` requests (following the ``multipart`` example). + Fixes `#...
zopefoundation/Zope
fe08bae876f13dc1dbc333730eaeb51f264f46a3
diff --git a/src/ZPublisher/tests/testHTTPRequest.py b/src/ZPublisher/tests/testHTTPRequest.py index d7fe18e4d..7b1131779 100644 --- a/src/ZPublisher/tests/testHTTPRequest.py +++ b/src/ZPublisher/tests/testHTTPRequest.py @@ -1468,6 +1468,7 @@ class HTTPRequestTests(unittest.TestCase, HTTPRequestFactoryMixin): ...
Clarification on Handling Image Uploads via HTTP PUT in Zope5 with WSGI Server ### What I did: I encountered an issue related to the handling of image uploads when using the HTTP PUT method in Zope5 with a WSGI server. Here are the steps I followed to reproduce the problem: 1. Using a Zope5 installation with the...
0.0
fe08bae876f13dc1dbc333730eaeb51f264f46a3
[ "src/ZPublisher/tests/testHTTPRequest.py::HTTPRequestTests::test_put_with_form" ]
[ "src/ZPublisher/tests/testHTTPRequest.py::RecordTests::test__str__returns_native_string", "src/ZPublisher/tests/testHTTPRequest.py::RecordTests::test_copy", "src/ZPublisher/tests/testHTTPRequest.py::RecordTests::test_dict_methods", "src/ZPublisher/tests/testHTTPRequest.py::RecordTests::test_dict_special_metho...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2023-11-06 10:53:45+00:00
zpl-2.1
6,388
zopefoundation__Zope-412
diff --git a/CHANGES.rst b/CHANGES.rst index 7a40b0f37..eb35c5aa0 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -14,6 +14,9 @@ https://github.com/zopefoundation/Zope/blob/4.0a6/CHANGES.rst Fixes +++++ +- Recreate ``App.version_txt.getZopeVersion`` + (`#411 <https://github.com/zopefoundation/Zope/issues/411>`_) + ...
zopefoundation/Zope
20d29682acacb73d7fb41d5e37beb46fa87a19b1
diff --git a/src/App/tests/test_getZopeVersion.py b/src/App/tests/test_getZopeVersion.py new file mode 100644 index 000000000..eb2172ab8 --- /dev/null +++ b/src/App/tests/test_getZopeVersion.py @@ -0,0 +1,32 @@ +############################################################################## +# +# Copyright (c) 2004 Zope...
Reliable detecting the Zope version Add-ons interacting with the ZMI need to provide different templates for Zope 2 (old style ZMI) and Zope 4 (bootstrap based ZMI). Therefore, there is a need to reliable distinguish those versions -- potentially via a mechanism analogous to Python's `sys.version_info`.
0.0
20d29682acacb73d7fb41d5e37beb46fa87a19b1
[ "src/App/tests/test_getZopeVersion.py::Test::test_major", "src/App/tests/test_getZopeVersion.py::Test::test_types" ]
[]
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2018-12-10 08:53:53+00:00
zpl-2.1
6,389
zopefoundation__Zope-893
diff --git a/CHANGES.rst b/CHANGES.rst index 596f15319..354591a69 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -11,6 +11,8 @@ https://github.com/zopefoundation/Zope/blob/4.x/CHANGES.rst 5.0a3 (unreleased) ------------------ +- Fix export of files with non-latin-1 compatible names + (`#890 <https://github.com/zope...
zopefoundation/Zope
29d63d40ebb8455af47e9fef44ac838bd9f96c35
diff --git a/src/Testing/ZopeTestCase/testZODBCompat.py b/src/Testing/ZopeTestCase/testZODBCompat.py index a879d4606..c1f9a1b52 100644 --- a/src/Testing/ZopeTestCase/testZODBCompat.py +++ b/src/Testing/ZopeTestCase/testZODBCompat.py @@ -32,6 +32,24 @@ folder_name = ZopeTestCase.folder_name cutpaste_permissions = [add_...
Export / download of files with non-latin-1 compatible names is broken **Reproduction** - upload a file via ZMI with the name "ıqrm.png" (please note, the first letter is a turkish i) - try to export it - waitress error ``` 2020-09-24 14:57:24,528 ERROR [waitress:358][waitress-0] Exception while serving /bliss...
0.0
29d63d40ebb8455af47e9fef44ac838bd9f96c35
[ "src/Testing/ZopeTestCase/testZODBCompat.py::TestCopyPaste::testClone", "src/Testing/ZopeTestCase/testZODBCompat.py::TestCopyPaste::testCopyPaste", "src/Testing/ZopeTestCase/testZODBCompat.py::TestCopyPaste::testCutPaste", "src/Testing/ZopeTestCase/testZODBCompat.py::TestCopyPaste::testRename", "src/Testing...
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_media", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-09-28 10:38:56+00:00
zpl-2.1
6,390
zopefoundation__Zope-906
diff --git a/CHANGES.rst b/CHANGES.rst index ea20b1f0a..befdb874b 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,6 +10,10 @@ https://zope.readthedocs.io/en/2.13/CHANGES.html 4.5.2 (unreleased) ------------------ +- Provide a more senseful ``OFS.SimpleItem.Item_w__name__.id`` + to avoid bugs by use of deprecated...
zopefoundation/Zope
a449b8cd38bb5d8c0ede7c259d58e18e2f06713e
diff --git a/src/OFS/tests/testSimpleItem.py b/src/OFS/tests/testSimpleItem.py index de08de620..c1038c917 100644 --- a/src/OFS/tests/testSimpleItem.py +++ b/src/OFS/tests/testSimpleItem.py @@ -79,6 +79,17 @@ class TestItem_w__name__(unittest.TestCase): verifyClass(IItemWithName, Item_w__name__) + def te...
(Export/)Import broken for "OFS.SimpleItem.Item_w__name__" instances ## BUG/PROBLEM REPORT If an instance of `OFS.SimpleItem.Item_w__name__` (e.g. an `OFS.Image.File` instance) is exported, a subsequent import fails with `BadRequest: ('Empty or invalid id specified', '')`. The reason: for `Item_w__name__` instances...
0.0
a449b8cd38bb5d8c0ede7c259d58e18e2f06713e
[ "src/OFS/tests/testSimpleItem.py::TestItem_w__name__::test_id" ]
[ "src/OFS/tests/testSimpleItem.py::TestItem::test_conforms_to_IItem", "src/OFS/tests/testSimpleItem.py::TestItem::test_conforms_to_IManageable", "src/OFS/tests/testSimpleItem.py::TestItem::test_raise_StandardErrorMessage_TaintedString_errorValue", "src/OFS/tests/testSimpleItem.py::TestItem::test_raise_Standard...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2020-10-06 09:04:37+00:00
zpl-2.1
6,391
zopefoundation__persistent-161
diff --git a/CHANGES.rst b/CHANGES.rst index 542e403..81a77a8 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -12,6 +12,10 @@ when setting its ``__class__`` and ``__dict__``. This matches the behaviour of the C implementation. See `issue 155 <https://github.com/zopefoundation/persistent/issues/155>`_. +- Fix the...
zopefoundation/persistent
6b500fc3f517fb566e8d0b85b756ddf49758c8d8
diff --git a/persistent/tests/test_picklecache.py b/persistent/tests/test_picklecache.py index 32811f1..9d6ec25 100644 --- a/persistent/tests/test_picklecache.py +++ b/persistent/tests/test_picklecache.py @@ -1102,6 +1102,44 @@ class PythonPickleCacheTests(PickleCacheTestMixin, unittest.TestCase): self.assertE...
AttributeError: '_WeakValueDictionary' object has no attribute '_addr_to_oid' Seen during test teardown of a large app using CPython in PURE_PYTHON=1 mode ``` From callback for ffi.gc <cdata 'struct CPersistentRingCFFI_struct *' owning 24 bytes>: Traceback (most recent call last): File "//persistent/persistent/...
0.0
6b500fc3f517fb566e8d0b85b756ddf49758c8d8
[ "persistent/tests/test_picklecache.py::TestWeakValueDictionary::test_cleanup_hook_gc" ]
[ "persistent/tests/test_picklecache.py::PythonPickleCacheTests::test___delitem___non_string_oid_raises_TypeError", "persistent/tests/test_picklecache.py::PythonPickleCacheTests::test___delitem___nonesuch_raises_KeyError", "persistent/tests/test_picklecache.py::PythonPickleCacheTests::test___delitem___w_ghost", ...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2021-03-10 14:52:25+00:00
zpl-2.1
6,392
zopefoundation__persistent-83
diff --git a/CHANGES.rst b/CHANGES.rst index 956c0a5..02823d6 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -37,6 +37,15 @@ - Remove some internal compatibility shims that are no longer necessary. See `PR 82 <https://github.com/zopefoundation/persistent/pull/82>`_. +- Make the return value of ``TimeStamp.second()...
zopefoundation/persistent
aa6048a342d91656f3d1be6ff04bd1815e191a04
diff --git a/persistent/tests/test_timestamp.py b/persistent/tests/test_timestamp.py index cc1253c..ff8b6a9 100644 --- a/persistent/tests/test_timestamp.py +++ b/persistent/tests/test_timestamp.py @@ -17,6 +17,8 @@ import sys MAX_32_BITS = 2 ** 31 - 1 MAX_64_BITS = 2 ** 63 - 1 +import persistent.timestamp + class ...
pyTimeStamp and TimeStamp have different sub-second precision I don't think this is correct: ``` >>> from persistent.timestamp import TimeStamp, pyTimeStamp >>> ts1 = TimeStamp(2001, 2, 3, 4, 5, 6.123456789) >>> ts2 = pyTimeStamp(2001, 2, 3, 4, 5, 6.123456789) >>> ts1 == ts2 True >>> ts1.second() == ts2.second() False...
0.0
aa6048a342d91656f3d1be6ff04bd1815e191a04
[ "persistent/tests/test_timestamp.py::PyAndCComparisonTests::test_seconds_precision", "persistent/tests/test_timestamp.py::PyAndCComparisonTests::test_seconds_precision_half" ]
[ "persistent/tests/test_timestamp.py::Test__UTC::test_dst", "persistent/tests/test_timestamp.py::Test__UTC::test_fromutc", "persistent/tests/test_timestamp.py::Test__UTC::test_tzname", "persistent/tests/test_timestamp.py::Test__UTC::test_utcoffset", "persistent/tests/test_timestamp.py::pyTimeStampTests::test...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2018-08-01 20:06:48+00:00
zpl-2.1
6,393
zopefoundation__transaction-24
diff --git a/CHANGES.rst b/CHANGES.rst index 32b7510..b976f79 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,9 @@ Changes Unreleased ---------- +- Fixed the transaction manager ``attempts`` method. It didn't stop + repeating when there wasn't an error. + - Corrected ITransaction by removing beforeCommitHoo...
zopefoundation/transaction
efd6988269d90c71b5db1aa70263b4a9a60f27dd
diff --git a/transaction/tests/test__manager.py b/transaction/tests/test__manager.py index 8db9ca4..8ec9a04 100644 --- a/transaction/tests/test__manager.py +++ b/transaction/tests/test__manager.py @@ -236,6 +236,16 @@ class TransactionManagerTests(unittest.TestCase): self.assertEqual(len(found), 1) se...
Attemps are retried on successful run I'm not sure if this is a bug or intended behavior. But the attempts function does work as described in the example code in the [documents](http://transaction.readthedocs.io/en/latest/convenience.html#retries): ``` for i in range(3): try: with transaction.manager: ...
0.0
efd6988269d90c71b5db1aa70263b4a9a60f27dd
[ "transaction/tests/test__manager.py::TransactionManagerTests::test_attempts_stop_on_success" ]
[ "transaction/tests/test__manager.py::TransactionManagerTests::test__retryable_w_multiple", "transaction/tests/test__manager.py::TransactionManagerTests::test__retryable_w_normal_exception_no_resources", "transaction/tests/test__manager.py::TransactionManagerTests::test__retryable_w_normal_exception_w_resource_v...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2016-11-07 15:52:31+00:00
zpl-2.1
6,394
zopefoundation__transaction-28
diff --git a/CHANGES.rst b/CHANGES.rst index 7569466..4a1e878 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,29 @@ Changes ======= +2.0.0 (unreleased) +------------------ + +- The transaction ``user`` and ``description`` attributes are now + defined to be text (unicode) as apposed to Python the ``str`` type...
zopefoundation/transaction
085ab4fb0521127cd5428db9fd9fdcd3b8eaed10
diff --git a/transaction/tests/test__transaction.py b/transaction/tests/test__transaction.py index 4e63bb3..8fe8c68 100644 --- a/transaction/tests/test__transaction.py +++ b/transaction/tests/test__transaction.py @@ -69,14 +69,15 @@ class TransactionTests(unittest.TestCase): self.assertTrue(isinstance(txn._syn...
Define transaction description and user to be unicode See: https://groups.google.com/forum/#!topic/python-transaction/Yn326XwCZ5E
0.0
085ab4fb0521127cd5428db9fd9fdcd3b8eaed10
[ "transaction/tests/test__transaction.py::TransactionTests::test_ctor_defaults", "transaction/tests/test__transaction.py::TransactionTests::test_description_nonascii_bytes", "transaction/tests/test__transaction.py::TransactionTests::test_setExtendedInfo_single", "transaction/tests/test__transaction.py::Transac...
[ "transaction/tests/test__transaction.py::TransactionTests::test__commitResources_error_in_afterCompletion", "transaction/tests/test__transaction.py::TransactionTests::test__commitResources_error_in_commit", "transaction/tests/test__transaction.py::TransactionTests::test__commitResources_error_in_tpc_begin", "...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2016-11-11 17:20:00+00:00
zpl-2.1
6,395
zulip__python-zulip-api-633
diff --git a/zulip_botserver/README.md b/zulip_botserver/README.md index 5efbbeaf..c16e0b1e 100644 --- a/zulip_botserver/README.md +++ b/zulip_botserver/README.md @@ -1,16 +1,29 @@ ``` zulip-botserver --config-file <path to botserverrc> --hostname <address> --port <port> - ``` Example: `zulip-botserver --config-f...
zulip/python-zulip-api
984d9151d5d101e8bbfe2c60cc6434b88577217d
diff --git a/zulip_botserver/tests/test_server.py b/zulip_botserver/tests/test_server.py index d38cd93e..653ef4b9 100644 --- a/zulip_botserver/tests/test_server.py +++ b/zulip_botserver/tests/test_server.py @@ -4,6 +4,7 @@ from typing import Any, Dict import unittest from .server_test_lib import BotServerTestCase im...
Allow passing config via environment variables to zulip-botserver **Component:** `zulip-botserver` **Package:** https://pypi.org/project/zulip-botserver/ **Code:** https://github.com/zulip/python-zulip-api/tree/master/zulip_botserver Instead of requiring that config be passed as a file with the `--config-file` opt...
0.0
984d9151d5d101e8bbfe2c60cc6434b88577217d
[ "zulip_botserver/tests/test_server.py::BotServerTests::test_read_config_from_env_vars" ]
[ "zulip_botserver/tests/test_server.py::BotServerTests::test_argument_parsing_defaults", "zulip_botserver/tests/test_server.py::BotServerTests::test_load_lib_modules", "zulip_botserver/tests/test_server.py::BotServerTests::test_read_config_file", "zulip_botserver/tests/test_server.py::BotServerTests::test_requ...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2020-11-08 20:55:09+00:00
apache-2.0
6,396
zulip__zulip-terminal-1350
diff --git a/zulipterminal/ui_tools/views.py b/zulipterminal/ui_tools/views.py index 1ae51ec..8f6ad15 100644 --- a/zulipterminal/ui_tools/views.py +++ b/zulipterminal/ui_tools/views.py @@ -1520,13 +1520,15 @@ class MsgInfoView(PopUpView): date_and_time = controller.model.formatted_local_time( msg[...
zulip/zulip-terminal
b89def63d642cecd4fa6e1d1a9d01a2f001afe2c
diff --git a/tests/ui_tools/test_popups.py b/tests/ui_tools/test_popups.py index a1eb9fe..3205a13 100644 --- a/tests/ui_tools/test_popups.py +++ b/tests/ui_tools/test_popups.py @@ -1027,8 +1027,10 @@ class TestMsgInfoView: assert self.controller.open_in_browser.called def test_height_noreactions(self) -...
Message information popup: Tidy shortcut key text & place into a group The current shortcut/hotkey list in the message information popup (`i` on a message) could be improved by: - moving the current hotkey lines into a separate display-group, maybe titled 'Viewing Actions' - simplifying the text in each entry, includ...
0.0
b89def63d642cecd4fa6e1d1a9d01a2f001afe2c
[ "tests/ui_tools/test_popups.py::TestMsgInfoView::test_height_noreactions[stream_message]", "tests/ui_tools/test_popups.py::TestMsgInfoView::test_height_noreactions[pm_message]", "tests/ui_tools/test_popups.py::TestMsgInfoView::test_height_noreactions[group_pm_message]", "tests/ui_tools/test_popups.py::TestMsg...
[ "tests/ui_tools/test_popups.py::TestPopUpConfirmationView::test_init", "tests/ui_tools/test_popups.py::TestPopUpConfirmationView::test_exit_popup_yes", "tests/ui_tools/test_popups.py::TestPopUpConfirmationView::test_exit_popup_no", "tests/ui_tools/test_popups.py::TestPopUpConfirmationView::test_exit_popup_GO_...
{ "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2023-03-22 17:07:44+00:00
apache-2.0
6,397
zulip__zulip-terminal-1356
diff --git a/zulipterminal/model.py b/zulipterminal/model.py index 82d809a..7073e4f 100644 --- a/zulipterminal/model.py +++ b/zulipterminal/model.py @@ -2,6 +2,7 @@ Defines the `Model`, fetching and storing data retrieved from the Zulip server """ +import bisect import itertools import json import time @@ -111,7...
zulip/zulip-terminal
2781e34514be0e606a3f88ebf8fd409781d9f625
diff --git a/tests/model/test_model.py b/tests/model/test_model.py index 2bf150a..fe2ba55 100644 --- a/tests/model/test_model.py +++ b/tests/model/test_model.py @@ -72,7 +72,6 @@ class TestModel: assert model.stream_dict == stream_dict assert model.recipients == frozenset() assert model.index...
Improve algorithm for 'next unread topic' (n) to use current message state This is intended as a first step to resolving #1332. Please focus on this element of that issue first, and if things go well, then extending the algorithm further to resolve the remaining elements would be great as followup PR(s). The current...
0.0
2781e34514be0e606a3f88ebf8fd409781d9f625
[ "tests/model/test_model.py::TestModel::test_next_unread_topic_from_message[unread_present_after_no_state]", "tests/model/test_model.py::TestModel::test_next_unread_topic_from_message[unread_present_after_previous_topic]", "tests/model/test_model.py::TestModel::test_next_unread_topic_from_message[unread_present_...
[ "tests/model/test_model.py::TestModel::test_init", "tests/model/test_model.py::TestModel::test_init_user_settings[None-True]", "tests/model/test_model.py::TestModel::test_init_user_settings[True-True]", "tests/model/test_model.py::TestModel::test_init_user_settings[False-False]", "tests/model/test_model.py:...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2023-03-25 02:58:14+00:00
apache-2.0
6,398
zulip__zulip-terminal-1382
diff --git a/docs/hotkeys.md b/docs/hotkeys.md index c9677e8..38ad92b 100644 --- a/docs/hotkeys.md +++ b/docs/hotkeys.md @@ -55,6 +55,7 @@ |Narrow to the stream of the current message|<kbd>s</kbd>| |Narrow to the topic of the current message|<kbd>S</kbd>| |Narrow to a topic/direct-chat, or stream/all-direct-messages...
zulip/zulip-terminal
2781e34514be0e606a3f88ebf8fd409781d9f625
diff --git a/tests/model/test_model.py b/tests/model/test_model.py index 2bf150a..fe2ba55 100644 --- a/tests/model/test_model.py +++ b/tests/model/test_model.py @@ -72,7 +72,6 @@ class TestModel: assert model.stream_dict == stream_dict assert model.recipients == frozenset() assert model.index...
Support new `=` keyboard shortcut for 'reaction agreement' This is the equivalent of zulip/zulip#24266 for this project. Also see zulip/zulip#24828 for the related documentation, which should accompany this.
0.0
2781e34514be0e606a3f88ebf8fd409781d9f625
[ "tests/model/test_model.py::TestModel::test_next_unread_topic_from_message[unread_present_after_no_state]", "tests/model/test_model.py::TestModel::test_next_unread_topic_from_message[unread_present_after_previous_topic]", "tests/model/test_model.py::TestModel::test_next_unread_topic_from_message[unread_present_...
[ "tests/model/test_model.py::TestModel::test_init", "tests/model/test_model.py::TestModel::test_init_user_settings[None-True]", "tests/model/test_model.py::TestModel::test_init_user_settings[True-True]", "tests/model/test_model.py::TestModel::test_init_user_settings[False-False]", "tests/model/test_model.py:...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2023-04-17 23:11:24+00:00
apache-2.0
6,399
zulip__zulip-terminal-1385
diff --git a/zulipterminal/helper.py b/zulipterminal/helper.py index c9817fc..12f402b 100644 --- a/zulipterminal/helper.py +++ b/zulipterminal/helper.py @@ -535,9 +535,20 @@ def match_emoji(emoji: str, text: str) -> bool: def match_topics(topic_names: List[str], search_text: str) -> List[str]: - return [ - ...
zulip/zulip-terminal
f420528f13ce37b4dc5b5939b10f9f11d1a39c10
diff --git a/tests/conftest.py b/tests/conftest.py index 07e8313..ffafd35 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -587,7 +587,14 @@ def message_history(request: Any) -> List[Dict[str, Any]]: @pytest.fixture def topics() -> List[str]: - return ["Topic 1", "This is a topic", "Hello there!"] + ...
Support multi-word matching when autocompleting topics When autocompleting other items such as streams, we check the search term against different 'words' in the possible matches. For example, `doc` can match both `documentation` and `api documentation`, `cod` can match `code review` and `live coding`, and `term` can m...
0.0
f420528f13ce37b4dc5b5939b10f9f11d1a39c10
[ "tests/ui_tools/test_boxes.py::TestWriteBox::test_generic_autocomplete_stream_and_topic[#**Stream", "tests/ui_tools/test_boxes.py::TestWriteBox::test_generic_autocomplete_stream_and_topic[#Stream", "tests/ui_tools/test_boxes.py::TestWriteBox::test__topic_box_autocomplete[single_word_search_text]", "tests/ui_t...
[ "tests/ui_tools/test_boxes.py::TestWriteBox::test_init", "tests/ui_tools/test_boxes.py::TestWriteBox::test_not_calling_typing_method_without_recipients", "tests/ui_tools/test_boxes.py::TestWriteBox::test_generic_autocomplete_stream_and_topic[#**invalid", "tests/ui_tools/test_boxes.py::TestWriteBox::test_gener...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2023-04-21 18:34:19+00:00
apache-2.0
6,400
zulip__zulip-terminal-1404
diff --git a/docs/hotkeys.md b/docs/hotkeys.md index db49720..c9677e8 100644 --- a/docs/hotkeys.md +++ b/docs/hotkeys.md @@ -58,6 +58,7 @@ |Add/remove thumbs-up reaction to the current message|<kbd>+</kbd>| |Add/remove star status of the current message|<kbd>ctrl</kbd> + <kbd>s</kbd> / <kbd>*</kbd>| |Show/hide messa...
zulip/zulip-terminal
5d34ef0484c867167758404087909b7f262f220f
diff --git a/tests/ui_tools/test_popups.py b/tests/ui_tools/test_popups.py index 3205a13..194888b 100644 --- a/tests/ui_tools/test_popups.py +++ b/tests/ui_tools/test_popups.py @@ -272,7 +272,7 @@ class TestUserInfoView: ) self.user_info_view = UserInfoView( - self.controller, 10000, "Use...
Show user popup for sender of message on `u` hotkey This would match the behavior in the web app. Look for the way in which this popup is opened from the user list, and apply the same approach but using the sender of message (only if one is selected). Note that this is not `U`, which will be a key we use for mar...
0.0
5d34ef0484c867167758404087909b7f262f220f
[ "tests/ui_tools/test_popups.py::TestUserInfoView::test__fetch_user_data[user_email]", "tests/ui_tools/test_popups.py::TestUserInfoView::test__fetch_user_data[user_empty_email]", "tests/ui_tools/test_popups.py::TestUserInfoView::test__fetch_user_data[user_date_joined]", "tests/ui_tools/test_popups.py::TestUser...
[ "tests/ui_tools/test_popups.py::TestPopUpConfirmationView::test_init", "tests/ui_tools/test_popups.py::TestPopUpConfirmationView::test_exit_popup_yes", "tests/ui_tools/test_popups.py::TestPopUpConfirmationView::test_exit_popup_no", "tests/ui_tools/test_popups.py::TestPopUpConfirmationView::test_exit_popup_GO_...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2023-05-24 00:38:51+00:00
apache-2.0
6,401
zulip__zulip-terminal-1424
diff --git a/zulipterminal/ui_tools/buttons.py b/zulipterminal/ui_tools/buttons.py index fe21169..3fd8b97 100644 --- a/zulipterminal/ui_tools/buttons.py +++ b/zulipterminal/ui_tools/buttons.py @@ -493,12 +493,17 @@ class MessageLinkButton(urwid.Button): """ # NOTE: The optional stream_id link version ...
zulip/zulip-terminal
b11ea7b3d0efb2c11537436083bb353688aa156b
diff --git a/tests/ui_tools/test_buttons.py b/tests/ui_tools/test_buttons.py index b29e88a..3705bba 100644 --- a/tests/ui_tools/test_buttons.py +++ b/tests/ui_tools/test_buttons.py @@ -653,70 +653,109 @@ class TestMessageLinkButton: @pytest.mark.parametrize( "link, expected_parsed_link", [ - ...
Support old format for narrow links (subject in addition to topic) As documented in buttons.py (currently `_parse_narrow_link`), we support links formatted in the form: ``` ... narrow/stream/[{stream-id}-]{stream-name}/topic/{encoded.20.topic.20name}[/near/{message_id}] ``` As I noted in [**#api documentation > N...
0.0
b11ea7b3d0efb2c11537436083bb353688aa156b
[ "tests/ui_tools/test_buttons.py::TestMessageLinkButton::test__parse_narrow_link[subject_narrow_link]", "tests/ui_tools/test_buttons.py::TestMessageLinkButton::test__parse_narrow_link[subject_near_narrow_link]" ]
[ "tests/ui_tools/test_buttons.py::TestTopButton::test_init", "tests/ui_tools/test_buttons.py::TestTopButton::test_style_properties", "tests/ui_tools/test_buttons.py::TestTopButton::test_text_properties", "tests/ui_tools/test_buttons.py::TestTopButton::test_update_count[11-11]", "tests/ui_tools/test_buttons.p...
{ "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2023-08-19 06:31:05+00:00
apache-2.0
6,402
zulip__zulip-terminal-1432
diff --git a/README.md b/README.md index c59e351..5763df6 100644 --- a/README.md +++ b/README.md @@ -232,6 +232,9 @@ theme=zt_dark ## Autohide: set to 'autohide' to hide the left & right panels except when they're focused autohide=no_autohide +## Exit Confirmation: set to 'disabled' to exit directly with no warning...
zulip/zulip-terminal
abdc4541ee39f44603b5ae40be8fc752591144b6
diff --git a/tests/cli/test_run.py b/tests/cli/test_run.py index f1fde1c..7b4fe02 100644 --- a/tests/cli/test_run.py +++ b/tests/cli/test_run.py @@ -199,6 +199,7 @@ def test_valid_zuliprc_but_no_connection( "Loading with:", " theme 'zt_dark' specified from default config.", " autohide set...
Add popup to confirm exiting the application I raised a concern over this some time ago in [#zulip-terminal>Confirm before exiting? #T1341](https://chat.zulip.org/#narrow/stream/206-zulip-terminal/topic/Confirm.20before.20exiting.3F.20.23T1341); see there for motivation. The design for this could be as follows: - r...
0.0
abdc4541ee39f44603b5ae40be8fc752591144b6
[ "tests/cli/test_run.py::test_valid_zuliprc_but_no_connection", "tests/cli/test_run.py::test_warning_regarding_incomplete_theme[c-expected_complete_incomplete_themes0-(you", "tests/cli/test_run.py::test_warning_regarding_incomplete_theme[d-expected_complete_incomplete_themes1-(all", "tests/cli/test_run.py::tes...
[ "tests/cli/test_run.py::test_in_color[red-\\x1b[91m]", "tests/cli/test_run.py::test_in_color[green-\\x1b[92m]", "tests/cli/test_run.py::test_in_color[yellow-\\x1b[93m]", "tests/cli/test_run.py::test_in_color[blue-\\x1b[94m]", "tests/cli/test_run.py::test_in_color[purple-\\x1b[95m]", "tests/cli/test_run.py...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2023-10-01 17:57:56+00:00
apache-2.0
6,403
zulip__zulip-terminal-1448
diff --git a/zulipterminal/api_types.py b/zulipterminal/api_types.py index 8acf4d0..9bf3b5b 100644 --- a/zulipterminal/api_types.py +++ b/zulipterminal/api_types.py @@ -50,10 +50,12 @@ MessageType = Union[DirectMessageString, StreamMessageString] # # NOTE: `to` field could be email until ZFL 11/3.0; ids were possible...
zulip/zulip-terminal
ee7564c9651f2c8cc6514a72e020827cfecbf938
diff --git a/tests/model/test_model.py b/tests/model/test_model.py index 915621f..51c71eb 100644 --- a/tests/model/test_model.py +++ b/tests/model/test_model.py @@ -14,6 +14,9 @@ from zulipterminal.model import ( MAX_MESSAGE_LENGTH, MAX_STREAM_NAME_LENGTH, MAX_TOPIC_NAME_LENGTH, + TYPING_STARTED_EXPIR...
Respect server typing notification duration settings Prior to Feature level 204 (Zulip 8.0) typing notification values were expected to be fixed values, as listed in `api_types.py`. From this feature level (https://zulip.com/api/changelog), the server expects clients to use various `server_typing_*_milliseconds` val...
0.0
ee7564c9651f2c8cc6514a72e020827cfecbf938
[ "tests/model/test_model.py::TestModel::test_init", "tests/model/test_model.py::TestModel::test_init_user_settings[None-True]", "tests/model/test_model.py::TestModel::test_init_user_settings[True-True]", "tests/model/test_model.py::TestModel::test_init_user_settings[False-False]", "tests/model/test_model.py:...
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2023-12-09 17:08:47+00:00
apache-2.0
6,404
zulip__zulip-terminal-1449
diff --git a/zulipterminal/ui_tools/messages.py b/zulipterminal/ui_tools/messages.py index 1598306..1a9bb9d 100644 --- a/zulipterminal/ui_tools/messages.py +++ b/zulipterminal/ui_tools/messages.py @@ -442,9 +442,10 @@ class MessageBox(urwid.Pile): markup.append(("msg_math", tag_text)) el...
zulip/zulip-terminal
eee60796aa7b3d72d0e2ffe950853958e6832aa7
diff --git a/tests/ui_tools/test_messages.py b/tests/ui_tools/test_messages.py index f56da14..d4d9e80 100644 --- a/tests/ui_tools/test_messages.py +++ b/tests/ui_tools/test_messages.py @@ -114,6 +114,11 @@ class TestMessageBox: [("msg_mention", "@A Group")], id="group-mention", ...
Render @topic wildcard mentions correctly when displayed in a message feed. [CZO discussion](https://chat.zulip.org/#narrow/stream/378-api-design/topic/.40topic-mention.20data-user-id.20.2326195/near/1605762) For stream wildcard mentions (all, everyone, stream), the rendered content is: ``` <span class="user-menti...
0.0
eee60796aa7b3d72d0e2ffe950853958e6832aa7
[ "tests/ui_tools/test_messages.py::TestMessageBox::test_soup2markup[topic-mention]" ]
[ "tests/ui_tools/test_messages.py::TestMessageBox::test_init[stream-set_fields0]", "tests/ui_tools/test_messages.py::TestMessageBox::test_init[private-set_fields1]", "tests/ui_tools/test_messages.py::TestMessageBox::test_init_fails_with_bad_message_type", "tests/ui_tools/test_messages.py::TestMessageBox::test_...
{ "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2023-12-12 11:34:18+00:00
apache-2.0
6,405
zulip__zulip-terminal-1459
diff --git a/zulipterminal/api_types.py b/zulipterminal/api_types.py index b341993..7e102e3 100644 --- a/zulipterminal/api_types.py +++ b/zulipterminal/api_types.py @@ -93,6 +93,7 @@ class PrivateComposition(TypedDict): type: DirectMessageString content: str to: List[int] # User ids + read_by_sender:...
zulip/zulip-terminal
107fa9b814fb6db6c4b5405faea1de727f8ceb04
diff --git a/tests/model/test_model.py b/tests/model/test_model.py index 6b5a18e..43f80ae 100644 --- a/tests/model/test_model.py +++ b/tests/model/test_model.py @@ -773,7 +773,7 @@ class TestModel: result = model.send_private_message(recipients, content) - req = dict(type="private", to=recipients, c...
Pass new `read_by_sender` flag when sending messages See https://zulip.com/api/send-message#parameter-read_by_sender and https://chat.zulip.org/#narrow/stream/378-api-design/topic/read_by_sender.20flag.20on.20send-message/near/1702407 for details.
0.0
107fa9b814fb6db6c4b5405faea1de727f8ceb04
[ "tests/model/test_model.py::TestModel::test_send_private_message[recipients0-response0-True]", "tests/model/test_model.py::TestModel::test_send_private_message[recipients0-response1-False]", "tests/model/test_model.py::TestModel::test_send_private_message[recipients1-response0-True]", "tests/model/test_model....
[ "tests/model/test_model.py::TestModel::test_init", "tests/model/test_model.py::TestModel::test_init_user_settings[None-True]", "tests/model/test_model.py::TestModel::test_init_user_settings[True-True]", "tests/model/test_model.py::TestModel::test_init_user_settings[False-False]", "tests/model/test_model.py:...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2024-01-12 04:51:40+00:00
apache-2.0
6,406
zulip__zulip-terminal-1463
diff --git a/zulipterminal/api_types.py b/zulipterminal/api_types.py index 119770e..b341993 100644 --- a/zulipterminal/api_types.py +++ b/zulipterminal/api_types.py @@ -34,6 +34,14 @@ MAX_TOPIC_NAME_LENGTH: Final = 60 MAX_MESSAGE_LENGTH: Final = 10000 +##############################################################...
zulip/zulip-terminal
d65cbee7406a3413946e78fb7fcff8ddc8875251
diff --git a/tests/model/test_model.py b/tests/model/test_model.py index 83ce9de..6b5a18e 100644 --- a/tests/model/test_model.py +++ b/tests/model/test_model.py @@ -14,6 +14,8 @@ from zulipterminal.model import ( MAX_MESSAGE_LENGTH, MAX_STREAM_NAME_LENGTH, MAX_TOPIC_NAME_LENGTH, + PRESENCE_OFFLINE_THR...
Support server-customized presence parameters This is a fairly small migration in Zulip 7.0, server feature level 164 (https://zulip.com/api/changelog). Quoting the changelog entry: > [POST /register](https://zulip.com/api/register-queue): Added the server_presence_ping_interval_seconds and server_presence_offline_...
0.0
d65cbee7406a3413946e78fb7fcff8ddc8875251
[ "tests/model/test_model.py::TestModel::test_init", "tests/model/test_model.py::TestModel::test_init_user_settings[None-True]", "tests/model/test_model.py::TestModel::test_init_user_settings[True-True]", "tests/model/test_model.py::TestModel::test_init_user_settings[False-False]", "tests/model/test_model.py:...
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2024-01-21 15:35:09+00:00
apache-2.0
6,407
zulip__zulip-terminal-1468
diff --git a/zulipterminal/ui_tools/messages.py b/zulipterminal/ui_tools/messages.py index 1a9bb9d..3ddfa10 100644 --- a/zulipterminal/ui_tools/messages.py +++ b/zulipterminal/ui_tools/messages.py @@ -1045,12 +1045,12 @@ class MessageBox(urwid.Pile): # the time limit. A limit of 0 signifies no limit ...
zulip/zulip-terminal
da84485cfc011c13e4177cc56442eeb04d83302d
diff --git a/tests/ui_tools/test_messages.py b/tests/ui_tools/test_messages.py index d4d9e80..8deb4eb 100644 --- a/tests/ui_tools/test_messages.py +++ b/tests/ui_tools/test_messages.py @@ -1301,7 +1301,16 @@ class TestMessageBox: {"stream": True, "private": True}, {"stream": True, "pri...
[bug] crash when editing message Server: Zulip cloud server Client: main branch Python: 3.11 self.model.initial_data: `{'zulip_version': '9.0-dev-642-g9d469357ea', 'zulip_feature_level': 237, 'zulip_merge_base': '9.0-dev-605-g47a5459637', 'realm_message_content_edit_limit_seconds': None}` log: ``` Traceback (most...
0.0
da84485cfc011c13e4177cc56442eeb04d83302d
[ "tests/ui_tools/test_messages.py::TestMessageBox::test_keypress_EDIT_MESSAGE[stream_message-no_msg_body_edit_limit:ZFL>=138-e]", "tests/ui_tools/test_messages.py::TestMessageBox::test_keypress_EDIT_MESSAGE[stream_message-no_msg_body_edit_limit_with_no_topic:ZFL>=138-e]", "tests/ui_tools/test_messages.py::TestMe...
[ "tests/ui_tools/test_messages.py::TestMessageBox::test_init[stream-set_fields0]", "tests/ui_tools/test_messages.py::TestMessageBox::test_init[private-set_fields1]", "tests/ui_tools/test_messages.py::TestMessageBox::test_init_fails_with_bad_message_type", "tests/ui_tools/test_messages.py::TestMessageBox::test_...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2024-02-07 10:09:18+00:00
apache-2.0
6,408
zulip__zulip-terminal-1472
diff --git a/zulipterminal/core.py b/zulipterminal/core.py index ddc7e89..1e11354 100644 --- a/zulipterminal/core.py +++ b/zulipterminal/core.py @@ -414,11 +414,14 @@ class Controller: # Suppress stdout and stderr when opening browser with suppress_output(): browser_controller...
zulip/zulip-terminal
b71aec23f78c487506e86bbd5a89b90c5b3d61ec
diff --git a/tests/core/test_core.py b/tests/core/test_core.py index 033f126..be05d49 100644 --- a/tests/core/test_core.py +++ b/tests/core/test_core.py @@ -406,15 +406,24 @@ class TestController: assert popup.call_args_list[0][0][1] == "area:error" @pytest.mark.parametrize( - "url", + "ur...
ZT Crashes when viewing a message in browser in MacOS. <img width="1031" alt="Screenshot 2024-02-15 at 9 44 55 PM" src="https://github.com/zulip/zulip-terminal/assets/71403193/deeadd45-decb-42f5-880c-30f709268a29"> ZT crashes when viewing a message in browser on MacOS. My OS version = Ventura 13.6 Python version...
0.0
b71aec23f78c487506e86bbd5a89b90c5b3d61ec
[ "tests/core/test_core.py::TestController::test_open_in_browser_success[https://github.com/-None-default" ]
[ "tests/core/test_core.py::TestController::test_initialize_controller", "tests/core/test_core.py::TestController::test_initial_editor_mode", "tests/core/test_core.py::TestController::test_current_editor_error_if_no_editor", "tests/core/test_core.py::TestController::test_editor_mode_entered_from_initial", "te...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2024-02-15 16:45:06+00:00
apache-2.0
6,409
zwicker-group__py-pde-435
diff --git a/pde/storage/base.py b/pde/storage/base.py index 10ec98c..d5d12aa 100644 --- a/pde/storage/base.py +++ b/pde/storage/base.py @@ -266,18 +266,30 @@ class StorageBase(metaclass=ABCMeta): @fill_in_docstring def tracker( - self, interval: Union[int, float, InterruptsBase] = 1 + self, +...
zwicker-group/py-pde
95932603a3b15d44c4f5ef6c76ed6ab463d8aa44
diff --git a/tests/storage/test_generic_storages.py b/tests/storage/test_generic_storages.py index a8da6d6..465659d 100644 --- a/tests/storage/test_generic_storages.py +++ b/tests/storage/test_generic_storages.py @@ -258,3 +258,45 @@ def test_storage_mpi(storage_factory): if mpi.is_main: assert res.integr...
Add option for transformer function to `StorageTracker` `StorageTracker` should not only be able to store the actual fields of the simulations, but also some derived fields. The idea would be to add an argument to the StoragerTracker which could take a function that computes a field or field collection based on the cur...
0.0
95932603a3b15d44c4f5ef6c76ed6ab463d8aa44
[ "tests/storage/test_generic_storages.py::test_storing_transformation_scalar[MemoryStorage]" ]
[ "tests/storage/test_generic_storages.py::test_storage_write[MemoryStorage]", "tests/storage/test_generic_storages.py::test_storage_truncation", "tests/storage/test_generic_storages.py::test_storing_extract_range[MemoryStorage]", "tests/storage/test_generic_storages.py::test_storage_copy[MemoryStorage]", "te...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2023-06-28 14:36:43+00:00
mit
6,410