instance_id
stringlengths
14
53
repo
stringlengths
10
49
base_commit
stringlengths
40
40
patch
stringlengths
332
2.26M
language
stringclasses
1 value
non_code_patch
stringclasses
1 value
test_patch
stringlengths
0
21.5M
created_at
stringlengths
26
26
problem_statement
stringlengths
5
24.6k
hints_text
stringlengths
0
44.9k
version
stringclasses
1 value
environment_setup_commit
stringlengths
40
40
FAIL_TO_PASS
stringlengths
19
71.6k
PASS_TO_PASS
stringlengths
2
807k
FAIL_TO_FAIL
stringlengths
2
43.9k
license
dict
sangwonl__python-mpegdash-41
sangwonl/python-mpegdash
0b216949d1a4ad196544be301e6b56bd09b1be28
diff --git a/mpegdash/nodes.py b/mpegdash/nodes.py index 3345b76..b402bb4 100644 --- a/mpegdash/nodes.py +++ b/mpegdash/nodes.py @@ -320,21 +320,57 @@ class Descriptor(XMLNode): self.scheme_id_uri = '' # xs:anyURI (required) self.value = None ...
python
diff --git a/tests/mpd-samples/with_content_protection.mpd b/tests/mpd-samples/with_content_protection.mpd new file mode 100644 index 0000000..c486431 --- /dev/null +++ b/tests/mpd-samples/with_content_protection.mpd @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!--Generated with https://github.com/google...
2021-12-07T11:59:02+00:00Z
ContentProtection's most likely don't use `@value`, e.g. `@cenc:pssh` ```xml <!-- Common Encryption --> <ContentProtection cenc:default_KID="CCF8F1AC-0700-4591-A4E1-B60D1ADA5631" schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc"> </ContentProtection> <!-- Marlin --> <ContentProtection schemeIdUri="urn:u...
Same issue, pssh values are being stripped @rlaphoenix Can I provide a PR to fix this issue? > > > @rlaphoenix Can I provide a PR to fix this issue? This isn't my project, but I was added as a contributor by the repo maintainer. Regardless, PRs are ALWAYS appreciated. If the PR has any issues, we can always help...
0.0.1-alpha
65127784256622633575bf2fe9c7f13306126e0b
["tests.test_xmltompd.XML2MPDTestCase::test_xml2mpd_from_file_with_content_protection"]
["tests.test_xmltompd.XML2MPDTestCase::test_xml2mpd_from_file", "tests.test_xmltompd.XML2MPDTestCase::test_xml2mpd_from_file_with_event_messagedata", "tests.test_xmltompd.XML2MPDTestCase::test_xml2mpd_from_file_with_utc_timing", "tests.test_xmltompd.XML2MPDTestCase::test_xml2mpd_from_string", "tests.test_xmltompd.XML2M...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sibson__redbeat-151
sibson/redbeat
d5298522addb991dac44191da2f56a215169fe95
diff --git a/redbeat/schedulers.py b/redbeat/schedulers.py index d3d9171..8a268d9 100644 --- a/redbeat/schedulers.py +++ b/redbeat/schedulers.py @@ -8,6 +8,7 @@ import json import ssl import warnings from datetime import MINYEAR, datetime +from typing import Any import redis.exceptions from celery.app import app...
python
diff --git a/tests/test_entry.py b/tests/test_entry.py index eaccc33..f57dc98 100644 --- a/tests/test_entry.py +++ b/tests/test_entry.py @@ -1,5 +1,6 @@ import json from datetime import datetime, timedelta +from unittest.mock import patch, PropertyMock, MagicMock from celery.utils.time import maybe_make_aware @@...
2025-02-16T19:53:37+00:00Z
`Entry.last_run_at` Not Respected Between Restarts I've noticed that my tasks are scheduled strangely between restarts. For internals, they wait the entire amount of time of the internal. After digging into the source, I've narrowed down the issue to not reading the meta data from the schedules stored on Redis. `se...
Heres a sample of output: ``` [INFO][celery.beat][2020-02-07T16:18:14.501950] beat: Starting... [INFO][redbeat.schedulers][2020-02-07T16:18:14.579097] Loading 0 tasks [INFO][redbeat.schedulers][2020-02-07T16:18:19.586736] Loading 0 tasks [INFO][redbeat.schedulers][2020-02-07T16:18:24.590713] Loading 0 tasks [IN...
0.0.1-alpha
fe9414f00e6d9215705bd592172cab2dea3e84c3
["tests.test_entry.test_RedBeatEntry::test_generate_key", "tests.test_entry.test_RedBeatEntry::test_key", "tests.test_scheduler.TestRedBeatSchedulerUpdateFromDict::test_update_from_dict_fetch_redis_entry"]
["tests.test_config.test_RedBeatConfig::test_app", "tests.test_config.test_RedBeatConfig::test_either_or", "tests.test_config.test_RedBeatConfig::test_key_prefix_default", "tests.test_config.test_RedBeatConfig::test_key_prefix_override", "tests.test_config.test_RedBeatConfig::test_lock_timeout", "tests.test_config.test...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
simonw__strip-tags-5
simonw/strip-tags
81f93b0bd363680f80179d74c0a8844dc22d3b5f
diff --git a/strip_tags/cli.py b/strip_tags/cli.py index 39b44bc..a8139da 100644 --- a/strip_tags/cli.py +++ b/strip_tags/cli.py @@ -88,16 +88,23 @@ def cli(selectors, input, minify): cat input.html | strip-tags .entry .footer > output.txt """ - parser = BeautifulSoup(input, "html5lib") + soup = B...
python
diff --git a/tests/test_strip_tags.py b/tests/test_strip_tags.py index 709136c..399f40c 100644 --- a/tests/test_strip_tags.py +++ b/tests/test_strip_tags.py @@ -31,6 +31,12 @@ import pytest [], "Hello\n", ), + # Test alt text replacement + ( + '<img src="foo.j...
2023-05-19T05:16:38+00:00Z
Swap images for their alt text > Might be neat to swap images for their `alt=` text too. _Originally posted by @simonw in https://github.com/simonw/strip-tags/issues/4#issuecomment-1553850253_
0.0.1-alpha
d4ab7e1c7386a644606017204a5045e33a54dd3b
["tests.test_strip_tags::test_strip[False-<img src=\"foo.jpg\" alt=\"Foo\"><img src=\"bar.jpg\" alt=\"Bar\">-selectors10-FooBar\\n]", "tests.test_strip_tags::test_strip[True-<img src=\"foo.jpg\" alt=\"Foo\"><img src=\"bar.jpg\" alt=\"Bar\">-selectors10-FooBar\\n]"]
["tests.test_strip_tags::test_strip[False-<p>Hello <b>world</b></p>-selectors0-Hello world\\n]", "tests.test_strip_tags::test_strip[False-<p>Hello <b>world</b></p>-selectors1-Hello world\\n]", "tests.test_strip_tags::test_strip[False-<p>Hello <b>world</b></p>-selectors2-world\\n]", "tests.test_strip_tags::test_strip[Fa...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
simonw__ttok-4
simonw/ttok
ccebd8494107f8ccb33fa3ba9b98775c8fd2c4c9
diff --git a/README.md b/README.md index ddfcb2f..2a7046a 100644 --- a/README.md +++ b/README.md @@ -84,14 +84,30 @@ This is too ## Viewing tokens -The `--tokens` option can be used to view the integer token IDs for the incoming text: +The `--encode` option can be used to view the integer token IDs for the incomin...
python
diff --git a/tests/test_ttok.py b/tests/test_ttok.py index e8eacc6..d980ea0 100644 --- a/tests/test_ttok.py +++ b/tests/test_ttok.py @@ -35,6 +35,41 @@ def test_ttok_count_and_tokens(args, expected_length, expected_tokens): assert as_tokens_again.output.strip() == expected_tokens +@pytest.mark.parametrize(...
2023-07-10T23:29:53+00:00Z
An additional option to view the actual tokenized text Hi Simon - thanks for the nifty tooling. So useful when debugging with these models. Would like do a feature request to add an option to view the actual tokenized text (bytes produced). It would be quick to do it from `ttok` with the other functionality it pr...
You can do this now: ``` echo -n "this tool is much fineness" | ttok --encode 576 5507 374 1790 1913 24639 ``` But your concept is interesting because it helps display the leading spaces etc. I might try reusing the `--tokens` option (since this is a 0.1 I can make breaking changes) that I renamed to `--encode` in...
0.0.1-alpha
31921b5c8656f94dfa82038b1b09edf56e18e81c
["tests.test_ttok::test_ttok_decode_encode_tokens[args2-[b'hello', b' world']]", "tests.test_ttok::test_ttok_decode_encode_tokens[args3-[b'hello', b' world']]", "tests.test_ttok::test_ttok_decode_encode_tokens[args4-[b'hello', b' world']]", "tests.test_ttok::test_ttok_decode_encode_tokens[args5-[b'\\\\xe7\\\\xa7\\\\x81...
["tests.test_ttok::test_ttok_count_and_tokens[args0-1-606]", "tests.test_ttok::test_ttok_count_and_tokens[args1-2-606 1403]", "tests.test_ttok::test_ttok_count_and_tokens[args2-5-34093 24748 1070 420 374]", "tests.test_ttok::test_ttok_count_and_tokens[args3-6-2127 78 23748 612 428 318]", "tests.test_ttok::test_ttok_dec...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
python-validators__validators-373
python-validators/validators
d46cd586bdd6b9946d5d421f009794a25650f72e
diff --git a/src/validators/ip_address.py b/src/validators/ip_address.py index 66ca2e9..1bb5d13 100644 --- a/src/validators/ip_address.py +++ b/src/validators/ip_address.py @@ -19,7 +19,7 @@ from .utils import validator def _check_private_ip(value: str, is_private: Optional[bool]): if is_private is None: ...
python
diff --git a/tests/test_ip_address.py b/tests/test_ip_address.py index f28cdec..ed6fd7d 100644 --- a/tests/test_ip_address.py +++ b/tests/test_ip_address.py @@ -148,3 +148,59 @@ def test_returns_failed_validation_on_invalid_ipv6_cidr_address( ): """Test returns failed validation on invalid ipv6 CIDR address.""" ...
2024-05-17T02:15:01+00:00Z
validators.ip_address private kwarg does not work as intended Python: `3.12` Valdiators: `0.28.1` `validators.ip_address` does not properly handle the scenario when `private=False` Result: ``` ❯ python3.11 iPython 3.11.7 (main, Dec 4 2023, 18:10:11) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin Type "h...
PR Open to address the above, including unit tests. Hi, I do not understand. `1.1.1.1` does not fall into any of these categories. ``` "10.", # private "192.168.", # private "169.254.", # link-local "127.", # localhost "0.0.0.0", # loopback ``` See: - https://en.wikipedia.org/wiki/Reserved_IP_addres...
0.0.1-alpha
bcb134204edcfdabf0de0e5fc0a5010105659c36
["tests.test_ip_address::test_returns_true_on_valid_public_ipv4_address[1.1.1.1-False]", "tests.test_ip_address::test_returns_true_on_valid_public_ipv4_address[192.169.1.1-False]", "tests.test_ip_address::test_returns_true_on_valid_public_ipv4_address[7.53.12.1-False]"]
["tests.i18n.test_es::test_returns_true_on_valid_cif[B25162520]", "tests.i18n.test_es::test_returns_true_on_valid_cif[U4839822F]", "tests.i18n.test_es::test_returns_true_on_valid_cif[B96817697]", "tests.i18n.test_es::test_returns_true_on_valid_cif[P7067074J]", "tests.i18n.test_es::test_returns_true_on_valid_cif[Q789970...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
meerk40t__svgelements-156
meerk40t/svgelements
b20774461b12cd01a8c717d67e75bc1b25be1beb
diff --git a/setup.cfg b/setup.cfg index b9ff06e..902ec43 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = svgelements -version = 1.7.5 +version = 1.8.0 description = Svg Elements Parsing long_description_content_type=text/markdown long_description = file: README.md diff --git a/svge...
python
diff --git a/test/test_use.py b/test/test_use.py new file mode 100644 index 0000000..c37c3f4 --- /dev/null +++ b/test/test_use.py @@ -0,0 +1,235 @@ +import io +import unittest + +from svgelements import * + + +class TestElementUse(unittest.TestCase): + + def test_issue_156(self): + q1 = io.StringIO(u'''<?xml ...
2022-09-06T02:39:48+00:00Z
Presence of clone of a reference element creates a strange ghost element when parsing SVG file I am interested in the bounding box of various clones of an element. While using svgelements with SVGs created in inkscape, I stumbled upon an issue. **How to reproduce** Store the xml code as .svg and run the Python c...
To get the bounding box of a clone, I figured that applying the inverse transformation of the template element and then applying the clone´s tranformation is the way to go. Doing so gives me the right result for the clone´s bounding box, no matter what the order of the elements within the xml file is. However, calcu...
0.0.1-alpha
ecc5e3bd6b11b2ff509a0e950aa0c3bb223b8763
["test.test_use.TestElementUse::test_issue_156", "test.test_use.TestElementUse::test_issue_192"]
["test.test_angle.TestElementAngle::test_angle_equal", "test.test_angle.TestElementAngle::test_angle_init", "test.test_angle.TestElementAngle::test_orth", "test.test_approximate.TestElementApproximation::test_cubic_bezier_arc_approximation", "test.test_arc_length.TestElementArcLength::test_arc_angle_point", "test.test_...
["test.test_arc_length.TestElementArcLength::test_arc_len_circle_exact", "test.test_arc_length.TestElementArcLength::test_arc_len_flat_exact", "test.test_arc_length.TestElementArcLength::test_arc_len_r0_exact", "test.test_arc_length.TestElementArcLength::test_arc_len_random_int", "test.test_arc_length.TestElementArcLen...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
wimglenn__pytest-structlog-18
wimglenn/pytest-structlog
c0fbf1a583f22f515d8bb66ef8a7a163be0ac35c
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..5c58d32 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,30 @@ +name: tests + +on: + push: + branches: ["master"] + pull_request: + branches: ["master"] + workflow_dispatch: + +jobs: + tests: +...
python
diff --git a/tests/test_issue18.py b/tests/test_issue18.py new file mode 100644 index 0000000..cabb410 --- /dev/null +++ b/tests/test_issue18.py @@ -0,0 +1,32 @@ +import pytest + +import structlog + + +logger = structlog.get_logger(__name__) + + +@pytest.fixture +def stdlib_configure(): + structlog.configure( + ...
2021-09-21T01:04:28+00:00Z
Logs are not properly formatted when using `%s` Hey there! I've tried to figure this out myself but, unfortunately, I have not managed to. So the issue is the following: when running tests with `pytest` and using `pytest-structlog`, the tests fail because `pytest-structlog` captures unformatted logs, before arguments...
@odimko Can you show the part of the code where you call structlog.configure ? ```python def setup_logging(): """Setup the logging configuration.""" logging.basicConfig( format="%(message)s", stream=sys.stdout, level=logging.INFO, ) if DEFAULT_LOG_PROCESSOR == "json": ...
0.0.1-alpha
c6af3738d2d2567651ad04f799409be3304de400
["tests.test_issue18::test_positional_formatting"]
["tests.test_issue14::test_first", "tests.test_issue14::test_second", "tests.test_issue14::test_third", "tests.test_log::test_capture_creates_items", "tests.test_log::test_assert_without_context", "tests.test_log::test_assert_with_subcontext", "tests.test_log::test_assert_with_bogus_context", "tests.test_log::test_asse...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
localstack__localstack-python-client-26
localstack/localstack-python-client
65109d6ade9b5755de15c4e1ad7190b30afaf0a2
diff --git a/CHANGELOG.md b/CHANGELOG.md index e45c48b..4b18ebe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # LocalStack Python Client Change Log +* v2.0: Change `LOCALSTACK_HOSTNAME` from `<hostname>` to `<hostname>:<port>`; remove `EDGE_PORT` environment variable * v1.39: Add endpoint for Amazon ...
python
diff --git a/tests/test_config.py b/tests/test_config.py new file mode 100644 index 0000000..0c8ac2e --- /dev/null +++ b/tests/test_config.py @@ -0,0 +1,20 @@ +from localstack_client import config + + +def test_default_endpoint(): + assert config.get_service_endpoint("sqs") == "http://localhost:4566" + + +def test_w...
2023-03-23T11:56:38+00:00Z
Suggestion: document environment variable LOCALSTACK_HOST I am using Celery w. dynamoDB backend. The way to configure the dynDB endpoint in Celery is intercepted by localstack and `localhost` is injected instead. Reading the code, I've found the environment variable `LOCALSTACK_HOST` that can be used for this pur...
A year ago I also discovered this option to change the HOST via that variable, but only after reading through the source code! I definitely agree that it should be better documented! Note: Fixed in #44 :) Seems like this one is already fixed. I'll close this issue for now.
0.0.1-alpha
14aadb3bad3fb987d50e96b049c97e0bdec75a2e
["tests.test_config::test_with_localstack_host", "tests.test_config::test_without_host"]
["tests.test_config::test_default_endpoint", "tests.test_config::test_without_port"]
["tests.client.test_patches::test_enable_local_endpoints", "tests.client.test_python_client::test_session", "tests.client.test_python_client::test_client_kwargs_passed", "tests.client.test_python_client::test_protected_client_kwargs_not_passed", "tests.client.test_python_client::test_resource_kwargs_passed", "tests.cli...
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
microsoft__fabric-cicd-427
microsoft/fabric-cicd
c6cd4281d32c562f17a372d347ce537400092409
diff --git a/docs/how_to/config_deployment.md b/docs/how_to/config_deployment.md index f389553..00a7871 100644 --- a/docs/how_to/config_deployment.md +++ b/docs/how_to/config_deployment.md @@ -122,6 +122,9 @@ publish: # Optional - pattern to exclude items from publishing exclude_regex: <regex_pattern_string> ...
python
diff --git a/tests/test__check_utils.py b/tests/test__check_utils.py index c45d36f..89b41e7 100644 --- a/tests/test__check_utils.py +++ b/tests/test__check_utils.py @@ -123,6 +123,7 @@ def test_schedules_file_jsonpath_compatibility(real_schedules_file): first_match = matches[0] assert first_match is True # O...
2025-09-09T19:58:46+00:00Z
Is there any way to use item_name_exclude_regex allow to exclude an entire folder of items? ### What is the question? We have some 'not quite ready to delete items' that have been moved to a 'legacy' folder in the root of our repo. For example '/legacy/FabricLakehouse.Lakehouse' and 'Model.SemanticModel' ... There do...
@gregpj Thanks for raising this! We currently don't have a way of excluding folders, but we can look into adding this feature as an enhancement to the library. If you're interested in contributing feel free to do so, otherwise our devs can pick up the work. If you do contribute, please create new issue labelled enhan...
0.0.1-alpha
9fdd10b76d185a593292d0ee7cbd9b5c69144265
["tests.test_config_validator.TestOperationSectionValidation::test_validate_operation_section_with_invalid_folder_exclude_regex", "tests.test_deploy_with_config.TestDeployWithConfig::test_deploy_with_config_full_deployment", "tests.test_deploy_with_config.TestConfigUtilsExtractSettings::test_extract_publish_settings_wi...
["tests.test__check_utils::test_check_file_type_text", "tests.test__check_utils::test_check_file_type_binary", "tests.test__check_utils::test_check_file_type_image", "tests.test__check_utils::test_schedules_file_json_validation_and_structure", "tests.test__check_utils::test_schedules_file_jsonpath_compatibility", "test...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sherbold__autorank-37
sherbold/autorank
23680f3bc2150c7620197216c833a3a5c0687b2a
diff --git a/autorank/autorank.py b/autorank/autorank.py index 4ef7986..8633e65 100644 --- a/autorank/autorank.py +++ b/autorank/autorank.py @@ -260,6 +260,13 @@ def autorank(data, alpha=0.05, verbose=False, order='descending', approach='freq if data.index.name is not None or isinstance(data.index, pd.MultiIndex):...
python
diff --git a/tests/test_autorank.py b/tests/test_autorank.py index b0b5e33..c89d2fd 100644 --- a/tests/test_autorank.py +++ b/tests/test_autorank.py @@ -846,3 +846,17 @@ class TestAutorank(unittest.TestCase): }) data = data.set_index(["index1", "index2"]) autorank(data, 0.05, True) + + def...
2025-06-02T08:30:14+00:00Z
Cannot process a normally-distributed pivot table When creating a pivot table in Pandas and all the values are normally distributed, autorank errors out during the analysis. The error appears in the ANOVA test. The problem does not appear when not all the columns follow a normal distribution (a different test is used...
Thanks for reporting! Fun fact: this happened to somebody else two weeks ago as well, he just did not yet create the issue yet. I am starting to hate pandas indices. There are a couple of work items for maintenance now and I plan to update autorank in April (maybe May) with all of them.
0.0.1-alpha
b60c9f4eefc472cf8bcf70aaa3aaa1e46aa4df2c
["tests.test_autorank.TestAutorank::test_pivot_tables"]
["tests.test_autorank.TestAutorank::test_autorank_absoluterope", "tests.test_autorank.TestAutorank::test_autorank_force_effect_size", "tests.test_autorank.TestAutorank::test_autorank_force_mode_nonparametric_multiple", "tests.test_autorank.TestAutorank::test_autorank_force_mode_nonparametric_two", "tests.test_autorank....
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
microsoft__vscode-mypy-115
microsoft/vscode-mypy
faa32cb65209440d7fd2eedaa8f7c5eaf8ca0f81
diff --git a/README.md b/README.md index c4d9883..5e8d265 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ If you want to disable mypy, you can [disable this extension](https://code.visua | mypy-type-checker.importStrategy | `useBundled` | Setting to choose where to load `my...
python
diff --git a/src/test/python_tests/test_non_daemon.py b/src/test/python_tests/test_non_daemon.py new file mode 100644 index 0000000..63de223 --- /dev/null +++ b/src/test/python_tests/test_non_daemon.py @@ -0,0 +1,81 @@ +import copy +from threading import Event +from typing import Any, Dict, List + +from hamcrest import...
2023-09-12T05:57:05+00:00Z
Option for using mypy instead of dmypy (daemon) ## Suggestion Currently, a number of features are [buggy or unsupported](https://github.com/python/mypy/issues?q=is%3Aissue+is%3Aopen+dmypy) when using `dmypy` instead of calling the `mypy` command directly. I am aware you can sort-of achieve this by setting the `m...
I think this would be a useful setting. FYI: `"mypy-typer-checker.path": [ "<python-path>", "-m", "mypy"]` will use `mypy` from environment or use bundled based on the "fromEnvironment" / "useBundled" @karthiknadig I actually tried that, but `python` refers to the system path, as `subprocess.run` does not inherit t...
0.0.1-alpha
1366475790bec4faf0f85305509a818e7291371a
["src.test.python_tests.test_non_daemon::test_daemon_non_daemon_equivalence_for_file_with_errors"]
["src.test.python_tests.test_extra_paths::test_extra_paths", "src.test.python_tests.test_linting::test_publish_diagnostics_on_open", "src.test.python_tests.test_linting::test_publish_diagnostics_on_save", "src.test.python_tests.test_linting::test_publish_diagnostics_on_close", "src.test.python_tests.test_linting::test_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
nerdocs__pydifact-19
nerdocs/pydifact
a724256ddc4d9f0446002e2592daa26a171cd7d4
diff --git a/pydifact/segmentcollection.py b/pydifact/segmentcollection.py index 4142fdb..5874a0f 100644 --- a/pydifact/segmentcollection.py +++ b/pydifact/segmentcollection.py @@ -21,7 +21,7 @@ # THE SOFTWARE. import collections -from typing import List, Optional, Tuple +from typing import List, Optional, Tuple, U...
python
diff --git a/tests/test_segmentcollection.py b/tests/test_segmentcollection.py index 9445967..d2aecc4 100644 --- a/tests/test_segmentcollection.py +++ b/tests/test_segmentcollection.py @@ -125,6 +125,22 @@ def test_empty_interchange(interchange): ) +def test_empty_interchange_w_extra_header(interchange): + ...
2020-10-01T16:17:11+00:00Z
Implement high-level containers (Message & Interchange) In terms of high-level design and rough API, what do you think about : ```python # Former Message, made abstract class class AbstractSegmentsContainer: @classmethod def from_str(): pass @classmethod def from_file(): pa...
A `Message`, a `Group` and even an `Interchange` technically (in EDI terms) is an "Envelope", has a beginning segment and an ending one (UNB/UNZ etc.). `AbstractSegmentsContainer` even could be named `Envelope`? Even if this envelope should be an abstract class. But yes, I think this is a good start for a high level ...
0.0.1-alpha
abea42e0cd43b065037a8b2dadf5440a249f0c4d
["tests.test_segmentcollection::test_empty_interchange_w_extra_header"]
["tests.messagetypes.paxlst.test_una::test_una_segment", "tests.messagetypes.paxlst.test_unb.TestUNBSegment::test_una_decimal_point", "tests.messagetypes.paxlst.test_unb.TestUNBSegment::test_unb_segement", "tests.test_characters::test_with_separator_identity", "tests.test_characters::test_cc_assigning", "tests.test_cha...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
rsheftel__pandas_market_calendars-84
rsheftel/pandas_market_calendars
dc9d433d9f4db5ccadd3c6d3f71191f3af12730b
diff --git a/docs/change_log.rst b/docs/change_log.rst index 95aa347..4f2280c 100644 --- a/docs/change_log.rst +++ b/docs/change_log.rst @@ -121,4 +121,4 @@ Updates - Fixes to support Pandas v1.0 - Remove support for Python 3.4 based on underlying packages removing support for v3.4 - Added ASXExchangeCalendar from P...
python
diff --git a/tests/test_lse_calendar.py b/tests/test_lse_calendar.py index 6d21251..2fb5d95 100644 --- a/tests/test_lse_calendar.py +++ b/tests/test_lse_calendar.py @@ -1,6 +1,7 @@ +from itertools import chain + import pandas as pd import pytz -from itertools import chain from pandas_market_calendars.exchange_cale...
2020-05-07T20:48:13+00:00Z
Irregular English bank holidays missing from the LSE calender Could you please account for the following occasions in which the LSE was either closed due to a one-off English bank holiday or open due to the removal of a regular bank holiday in compensation [[1](https://www.bbc.co.uk/news/uk-48565417), [2](https://en.w...
First, than you very much for this. I pushed a new commit that includes all the closed dates you identified with unit tests. For the holidays that are skipped and open, I am not able yet to figure out how the Pandas library (which drives this package) can work for that. If you know how that would be great, otherwise at...
0.0.1-alpha
04e94a14e0221afe65d20cd51c840dddaf4c4038
["tests.test_lse_calendar::test_unique_holidays"]
["tests.test_cfe_calendar::test_2016_holidays", "tests.test_cfe_calendar::test_open_time_tz", "tests.test_cfe_calendar::test_close_time_tz", "tests.test_class_registry::test_inheritance", "tests.test_class_registry::test_metamixing", "tests.test_cme_calendar::test_time_zone", "tests.test_cme_calendar::test_2016_holiday...
["tests.test_cfe_calendar::test_2016_early_closes", "tests.test_cme_calendar::test_2016_early_closes", "tests.test_cme_calendar::test_dec_jan", "tests.test_hkex_calendar::test_hkex_closes_at_lunch", "tests.test_ice_calendar::test_2016_early_closes", "tests.test_jpx_calendar::test_jpx_closes_at_lunch", "tests.test_jpx_c...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
rfsbraz__deleterr-77
rfsbraz/deleterr
567c1f057f9f1de55c00a5dd08c7071dc157aa4a
diff --git a/.github/workflows/docker-image-dockerhub.yml b/.github/workflows/docker-image-dockerhub.yml index cd5f63c..7ef55a8 100644 --- a/.github/workflows/docker-image-dockerhub.yml +++ b/.github/workflows/docker-image-dockerhub.yml @@ -8,6 +8,9 @@ on: - 'develop' tags: - 'v*' + pull_request: + ...
python
diff --git a/tests/test_deleterr.py b/tests/test_deleterr.py index d100476..22ea86c 100644 --- a/tests/test_deleterr.py +++ b/tests/test_deleterr.py @@ -29,6 +29,10 @@ class TestLibraryMeetsDiskSpaceThreshold(unittest.TestCase): ] self.assertFalse(library_meets_disk_space_threshold(self.library, self....
2024-02-22T10:20:20+00:00Z
TypeError: 'NoneType' object is not iterable since v0.0.13 Hi, Since version: [v0.0.13], I'm getting ``` Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/app/app/deleterr.py", line 745, in <module> main()...
Ouch. What an oversight, fixing this quickly Done! Please point your image to `v0.0.14`!
0.0.1-alpha
aa3b2fe5a9c0c7584d5ed2e3ad5129742bb44926
["tests.test_deleterr.TestLibraryMeetsDiskSpaceThreshold::test_unset_disk_size_threshold"]
["tests.modules.test_trakt::test_extract_info_from_url[https://trakt.tv/movies/watched/yearly-expected_result0]", "tests.modules.test_trakt::test_extract_info_from_url[https://trakt.tv/shows/collected/weekly-expected_result1]", "tests.modules.test_trakt::test_extract_info_from_url[https://trakt.tv/movies/trending-expec...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
microsoft__fabric-cicd-408
microsoft/fabric-cicd
b5a531fc57fb7bb57ae149d23ef12a0b1f8bb164
diff --git a/docs/how_to/parameterization.md b/docs/how_to/parameterization.md index a081c42..61c9c3f 100644 --- a/docs/how_to/parameterization.md +++ b/docs/how_to/parameterization.md @@ -154,7 +154,10 @@ The `replace_value` field in the `find_replace` parameter supports fabric-cicd d - Dynamic replacement works in...
python
diff --git a/tests/test_parameter_utils.py b/tests/test_parameter_utils.py index c4b725b..db41434 100644 --- a/tests/test_parameter_utils.py +++ b/tests/test_parameter_utils.py @@ -147,6 +147,13 @@ class TestParameterUtilities: # Workspace ID variable should return the workspace ID assert extract_repl...
2025-09-12T20:58:49+00:00Z
Feature Request: dynamic replacement with workspace name (enable different workspaces) ### What is the feature? The problem with: ``` find_replace: # Lakehouse Connection Guid - find_value: "db52be81-c2b2-4261-84fa-840c67f4bbd0" replace_value: PROD: "5d6a1b16-447f-464a-b959-45d0fed35ca0" ``` Is...
@furmangg Thanks for raising this, we actually have a workable solution for this parameterization scenario. You can use a variable as the replace_value instead of having to deploy in two phases. Please read our [documentation](https://microsoft.github.io/fabric-cicd/latest/how_to/parameterization/#inputs) **(dynamic re...
0.0.1-alpha
826149244bc8e9266addc968bddb6f013f58a821
["tests.test_parameter_utils.TestParameterUtilities::test_extract_replace_value_default", "tests.test_parameter_utils.TestParameterUtilities::test_extract_replace_value_get_dataflow_name", "tests.test_parameter_utils.TestParameterUtilities::test_extract_workspace_id_direct", "tests.test_parameter_utils.TestParameterUti...
["tests.test__check_utils::test_check_file_type_text", "tests.test__check_utils::test_check_file_type_binary", "tests.test__check_utils::test_check_file_type_image", "tests.test__check_utils::test_schedules_file_json_validation_and_structure", "tests.test__check_utils::test_schedules_file_jsonpath_compatibility", "test...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
procrastinate-org__procrastinate-1342
procrastinate-org/procrastinate
32aa929064da170b6b0489d6a8af84861b10e5a2
diff --git a/procrastinate/worker.py b/procrastinate/worker.py index f4227d9..295c41a 100644 --- a/procrastinate/worker.py +++ b/procrastinate/worker.py @@ -194,7 +194,11 @@ class Worker: extra = self._log_extra( context=context, action=log_action, job_result=job_result ) - log_lev...
python
diff --git a/tests/unit/test_worker.py b/tests/unit/test_worker.py index 3d88d06..d687f51 100644 --- a/tests/unit/test_worker.py +++ b/tests/unit/test_worker.py @@ -630,12 +630,13 @@ async def test_run_job_abort(app: App, worker: Worker): @pytest.mark.parametrize( - "critical_error, recover_on_attempt_number, e...
2025-03-17T21:39:44+00:00Z
Tasks that have retries left still fail logging Error instead of Info Hi All, I noticed that we are now logging an Error every time we fail the task even when retries are left. Before the upgrade to v3, it used to log Info level first and only logged Error level if all retry attempts failed. It is creating a lot o...
Hi I have also added pull request for this issue: https://github.com/procrastinate-org/procrastinate/pull/1343 Thank you very much :)
0.0.1-alpha
0bd02b27998b0941956df2ab16dfaff887173fdb
["tests.unit.test_worker::test_run_job_retry_failed_job[False-2-succeeded-2-1-0]", "tests.unit.test_worker::test_run_job_retry_failed_job[True-2-succeeded-2-1-0]", "tests.unit.test_worker::test_run_job_retry_failed_job[False-3-failed-2-1-1]", "tests.unit.test_worker::test_run_job_retry_failed_job[True-3-failed-2-1-1]"]
["tests.unit.contrib.aiopg.test_aiopg_connector::test_adapt_pool_args_on_connect", "tests.unit.contrib.aiopg.test_aiopg_connector::test_wrap_exceptions_wraps[UniqueViolation-UniqueViolation]", "tests.unit.contrib.aiopg.test_aiopg_connector::test_wrap_exceptions_wraps[DatabaseError-ConnectorException]", "tests.unit.cont...
["tests.integration.contrib.django.test_django_connector::test_wrap_exceptions__integrity_error", "tests.integration.contrib.django.test_django_connector::test_get_sync_connector", "tests.integration.contrib.django.test_django_connector::test_open", "tests.integration.contrib.django.test_django_connector::test_open_poo...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
swingerman__ha-dual-smart-thermostat-122
swingerman/ha-dual-smart-thermostat
9ce2841a9b0c233a873cf4b77081ee097fd88466
diff --git a/README.md b/README.md index 6459fad..6afdf73 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ The `dual_smart_thermostat` is an enhanced version of generic thermostat impleme | :--- | :---: | :---: | | **Heater/Cooler Mode** | <img src="docs/images/sun-snowflake.svg" height="30" /> | [<img src="d...
python
diff --git a/tests/FEATURES.md b/tests/FEATURES.md index 14c2732..394d09e 100644 --- a/tests/FEATURES.md +++ b/tests/FEATURES.md @@ -70,6 +70,8 @@ | restore will turn off when loaded second | X | ! | ! | | restore state uncoherence state | X | ! | ! | | aux heater | X | N/A | N/A | +| aux heater keep primary on | X ...
2024-03-15T14:49:17+00:00Z
[AUX heating] Add option to keep primary heater on while aux heater is on
0.0.1-alpha
f02863746868fa0ccb7973ef004e7ef75cd4e216
["tests.test_heater_mode::test_heater_mode_aux_heater_keep_primary_heater_on"]
["tests.test_cooler_mode::test_unique_id", "tests.test_cooler_mode::test_setup_defaults_to_unknown", "tests.test_cooler_mode::test_setup_gets_current_temp_from_sensor", "tests.test_cooler_mode::test_get_hvac_modes", "tests.test_cooler_mode::test_set_preset_mode[none-23]", "tests.test_cooler_mode::test_set_preset_mode[a...
["tests.test_heater_mode::test_precision"]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
rsagroup__rsatoolbox-264
rsagroup/rsatoolbox
a53c5cdc694159a165a51735c40ea0df385bf271
diff --git a/rsatoolbox/data/dataset.py b/rsatoolbox/data/dataset.py index 9ab8759..31c12b0 100644 --- a/rsatoolbox/data/dataset.py +++ b/rsatoolbox/data/dataset.py @@ -189,10 +189,9 @@ class DatasetBase: return data_dict @staticmethod - def from_df( - df: DataFrame, - channels: Optiona...
python
diff --git a/tests/test_inference.py b/tests/test_inference.py index 7f01054..9db23b3 100755 --- a/tests/test_inference.py +++ b/tests/test_inference.py @@ -188,7 +188,7 @@ class TestEvaluationLists(unittest.TestCase): rdms = RDMs(np.random.rand(11, 10)) # 11 5x5 rdms m = ModelFixed('test', rdms.get_...
2022-10-18T18:05:45+00:00Z
Extracting and visualizing statistical inference Thanks for the great toolbox, I've quite enjoyed using it. I have a suggestion that I think might improve the usability of the statistical inference procedures. **Is your feature request related to a problem? Please describe.** Once an object of class `rsatoolbox.in...
Hi @psychNerdJae , thank you for your thoughtful comments! I agree that giving the users more access to the test results is a great idea. As the results object is already a summary of the results, I would prefer a solution that does not create another (list or dictionary) object from this one. The computations to e...
0.0.1-alpha
bc21fc34dc92ff194388be78cbb9d4a2fe0ae695
["tests.test_inference.TestResult::test_result_print", "tests.test_inference.TestsPairTests::test_pair_tests"]
["tests.test_calc_rdm.TestCalcRDM::test_calc_correlation", "tests.test_calc_rdm.TestCalcRDM::test_calc_crossnobis", "tests.test_calc_rdm.TestCalcRDM::test_calc_crossnobis_no_descriptors", "tests.test_calc_rdm.TestCalcRDM::test_calc_crossnobis_noise", "tests.test_calc_rdm.TestCalcRDM::test_calc_crossnobis_noise_list", "...
["tests.test_data.TestSave::test_save_load", "tests.test_data.TestOESplit::test_odd_even_split_nested", "tests.test_demo.TestDemos::test_temporal_rsa", "tests.test_inference.TestEvaluation::test_bootstrap_testset", "tests.test_inference.TestEvaluation::test_bootstrap_testset_pattern", "tests.test_inference.TestEvaluati...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
microsoft__fabric-cicd-388
microsoft/fabric-cicd
ff5394cb6f4bfbed7dbc6110dee87c174a547c1a
diff --git a/src/fabric_cicd/_common/_fabric_endpoint.py b/src/fabric_cicd/_common/_fabric_endpoint.py index 71bebd7..2fc2774 100644 --- a/src/fabric_cicd/_common/_fabric_endpoint.py +++ b/src/fabric_cicd/_common/_fabric_endpoint.py @@ -242,7 +242,7 @@ def _handle_response( # Handle item name conflicts elif (...
python
diff --git a/tests/test__fabric_endpoint.py b/tests/test__fabric_endpoint.py index 15d2b02..331ac98 100644 --- a/tests/test__fabric_endpoint.py +++ b/tests/test__fabric_endpoint.py @@ -356,7 +356,7 @@ def test_handle_response_feature_not_available(): def test_handle_response_item_display_name_already_in_use(setup_mock...
2025-07-02T21:13:09+00:00Z
ItemDisplayNameAlreadyInUse Error Code Renamed ### Library Version 0.1.22 ### What is the problem? The error code for a reserved name was updated from ItemDisplayNameAlreadyInUse to ItemDisplayNameNotAvailableYet. Update fabric_endpoint module to handle this. ### Is there an ideal solution? _No response_ ### A...
0.0.1-alpha
349c6e38b536d30aaae6059d4d4aa979dcb1f6d6
["tests.test__fabric_endpoint::test_handle_response_item_display_name_already_in_use"]
["tests.test__check_utils::test_check_file_type_text", "tests.test__check_utils::test_check_file_type_binary", "tests.test__check_utils::test_check_file_type_image", "tests.test__fabric_endpoint::test_integration", "tests.test__fabric_endpoint::test_performance", "tests.test__fabric_endpoint::test_invoke[invoke]", "tes...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pyswmm__swmmio-108
pyswmm/swmmio
0619f4f13f7ab9cd8a03f2adbfc0bfee69e63ad5
diff --git a/swmmio/utils/dataframes.py b/swmmio/utils/dataframes.py index 54f572f..d7e1b29 100644 --- a/swmmio/utils/dataframes.py +++ b/swmmio/utils/dataframes.py @@ -95,6 +95,12 @@ def dataframe_from_rpt(rpt_path, section, element_id=None): start_strings = [section, '-'*20, '-'*20] cols = headers[secti...
python
diff --git a/swmmio/tests/data/owa-rpt-example.rpt b/swmmio/tests/data/owa-rpt-example.rpt index 71c23ab..27d4216 100644 --- a/swmmio/tests/data/owa-rpt-example.rpt +++ b/swmmio/tests/data/owa-rpt-example.rpt @@ -204,14 +204,7 @@ Node Flooding Summary ********************* - Flooding refers to all water that...
2022-12-06T17:17:24+00:00Z
rpt.node_flooding_summary fails when no nodes are flooded The `rpt` file parsing runs into an issue when trying to return the `node_flooding_summary` when there is no flooding in the model. Need to hand this case in the Node Flooding Summary. ``` ********************* Node Flooding Summary *************...
0.0.1-alpha
581d3162b6b1f022da26194de231b26b997a1053
["swmmio.tests.test_dataframes::test_node_flooding_dataframe_from_rpt_2"]
["swmmio.tests.test_dataframes::test_dataframe_from_bi", "swmmio.tests.test_dataframes::test_node_dataframe_from_rpt", "swmmio.tests.test_dataframes::test_conduits_dataframe", "swmmio.tests.test_dataframes::test_weirs_composite", "swmmio.tests.test_dataframes::test_nodes_dataframe", "swmmio.tests.test_dataframes::test_...
["swmmio.tests.test_dataframes::test_pumps_composite", "swmmio.tests.test_graphics::test_draw_model", "swmmio.tests.test_graphics::test_draw_red_and_grey_nodes", "swmmio.tests.test_model_elements::test_dataframe_composite"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
matiasb__python-unidiff-19
matiasb/python-unidiff
aee2e1c2895e2ea0092dcc375492aebe220d78a1
diff --git a/unidiff/constants.py b/unidiff/constants.py index e3b1ae6..b6d8e3b 100644 --- a/unidiff/constants.py +++ b/unidiff/constants.py @@ -39,6 +39,10 @@ RE_TARGET_FILENAME = re.compile( RE_DIFF_GIT_HEADER = re.compile( r'^diff --git (?P<source>a/[^\t\n]+) (?P<target>b/[^\t\n]+)') +# check diff git new fi...
python
diff --git a/tests/samples/sample8.diff b/tests/samples/sample8.diff index 5ab192e..8a27fe6 100644 --- a/tests/samples/sample8.diff +++ b/tests/samples/sample8.diff @@ -1,3 +1,6 @@ +diff --git a/boo.bin b/boo.bin +new file mode 100644 +index 0000000..ae000000 diff --git a/foo.bin b/foo.bin new file mode 100644 index...
2021-12-23T14:51:15+00:00Z
git diff adding a new empty file is not parsed correctly a git diff adding a new empty file is not parsed correctly. the patch set contains 0 items in that case, while it should contain one. sample: ``` diff diff --git a/empty b/empty new file mode 100644 index 0000000..e69de29 ```
I see, you're right, will take a look. Thanks for your report! This is a problem for any changes to binary files. Capturing these changes in the metadata and being able to iterate over them as part of the PatchSet would be great. fwiw a while ago i made a start on a diff/patch parser. i just published that w-i-p code...
0.0.1-alpha
ff8b751fc2bf011c4107b93689b8d183bc481c03
["tests.test_parser.TestUnidiffParser::test_parse_diff_with_new_and_modified_binary_files"]
["tests.test_parser.TestVCSSamples::test_git_renaming", "tests.test_parser.TestVCSSamples::test_samples", "tests.test_hunks.TestHunk::test_append_added_line", "tests.test_hunks.TestHunk::test_append_context", "tests.test_hunks.TestHunk::test_append_deleted_line", "tests.test_hunks.TestHunk::test_default_is_valid", "tes...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sepandhaghighi__mycoffee-60
sepandhaghighi/mycoffee
a9fd5ffcaa34aca9eee276a300c57b879419a691
diff --git a/CHANGELOG.md b/CHANGELOG.md index 32ce85c..6b0a945 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,10 +6,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] ### Added -- 1 new water unit +- 2 new water units 1. Troy Ounce (`t oz`) -- 1 new coffee ...
python
diff --git a/test/functions_test.py b/test/functions_test.py index cc69364..d67df40 100644 --- a/test/functions_test.py +++ b/test/functions_test.py @@ -145,13 +145,14 @@ Coffee units list: 2. `cup` - cup 3. `dsp` - dessertspoon 4. `g` - gram -5. `kg` - kilogram -6. `lb` - pound -7. `mg` - milligram -8. `oz` - ounce...
2024-12-26T16:57:29+00:00Z
[Feature]: Grains ### Describe the feature you want to add Support **Grains** unit (for `coffee` and `water`) ### Describe your proposed solution _No response_ ### Describe alternatives you've considered, if relevant _No response_ ### Additional context References: 1. https://www.metric-convers...
@sadrasabouri Please take care of this when you have some free time. 💯 Sure, I have a question. Do we have grains for water too? I could find grains for coffee but not for water. Grain waters apparently is a unit for the mineral content (hardness). > Sure, I have a question. Do we have grains for water too? I could fi...
0.0.1-alpha
6cae5c4e31d1265e278371525ec6d45e67f57f80
["test.functions_test::functions_test", "test.verified_test::verified_test"]
[]
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
simonw__git-history-8
simonw/git-history
2a975ff869936e43114ddd8fd136c519eaf13170
diff --git a/git_history/cli.py b/git_history/cli.py index 92c9c3c..bd2adee 100644 --- a/git_history/cli.py +++ b/git_history/cli.py @@ -138,6 +138,16 @@ def file( # If --id is specified, do things a bit differently if ids: + # If '--id id' is only option, 'id' is not a reserved column + ...
python
diff --git a/tests/test_git_history.py b/tests/test_git_history.py index 911b166..b62ecbf 100644 --- a/tests/test_git_history.py +++ b/tests/test_git_history.py @@ -25,6 +25,26 @@ def repo(tmpdir): ), "utf-8", ) + (repo_dir / "items-with-reserved-columns.json").write_text( + json.dumps(...
2021-11-12T01:57:32+00:00Z
Figure out what to do if columns in the data clash with columns used by the tool Columns added by this tool are: - `id` - `item` - `version` - `commit`
I'm going to add `_` suffixes to the columns in the data - so `item` becomes `item_`. If the data has an `item_` I will add another underscore, `item__`. Special case: if there is only a single ID and it's called `id` - `--id id` - I'm not going to change it. Actually I'm going to completely ban columns called `...
0.0.1-alpha
de78320777f39f8d9262ab85b593a1e41818ccb5
["tests.test_git_history::test_file_with_reserved_columns", "tests.test_git_history::test_more_than_one_id_makes_id_reserved", "tests.test_git_history::test_file_with_banned_columns[True]", "tests.test_git_history::test_file_with_banned_columns[False]"]
["tests.test_git_history::test_file_without_id", "tests.test_git_history::test_file_with_id"]
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
pyswmm__swmmio-142
pyswmm/swmmio
61a8c08747007655bc381be92bce4d8ed9e3801f
diff --git a/swmmio/__init__.py b/swmmio/__init__.py index 476ec75..2414015 100644 --- a/swmmio/__init__.py +++ b/swmmio/__init__.py @@ -6,7 +6,7 @@ from swmmio.utils.dataframes import dataframe_from_bi, dataframe_from_rpt, dataf '''Python SWMM Input/Output Tools''' -VERSION_INFO = (0, 4, 11) +VERSION_INFO = (0, 4...
python
diff --git a/swmmio/tests/data/__init__.py b/swmmio/tests/data/__init__.py index 1844da3..bcc1723 100644 --- a/swmmio/tests/data/__init__.py +++ b/swmmio/tests/data/__init__.py @@ -31,6 +31,7 @@ MODEL_INFILTRAION_PARSE_FAILURE = os.path.join(DATA_PATH, 'model-with-infiltrati # test rpt paths RPT_FULL_FEATURES = os....
2022-12-05T22:56:22+00:00Z
fails to parse RPT when generated with Open Water Analytics SWMM Parsing RPT files fail when the report file is generated using OWA SWMM or pyswmm. This is due to the `swmmio.utils.text.get_rpt_metadata` function searching for `EPA STORM WATER MANAGEMENT MODEL - VERSION`, while OWA swmm rpt files are headed with `OWA ...
0.0.1-alpha
b83170b6777688f8550bff1514439301145f5457
["swmmio.tests.test_functions::test_get_rpt_metadata_owa_swmm"]
["swmmio.tests.test_dataframes::test_dataframe_from_bi", "swmmio.tests.test_dataframes::test_node_dataframe_from_rpt", "swmmio.tests.test_dataframes::test_conduits_dataframe", "swmmio.tests.test_dataframes::test_weirs_composite", "swmmio.tests.test_dataframes::test_nodes_dataframe", "swmmio.tests.test_dataframes::test_...
["swmmio.tests.test_dataframes::test_pumps_composite", "swmmio.tests.test_graphics::test_draw_model", "swmmio.tests.test_graphics::test_draw_red_and_grey_nodes", "swmmio.tests.test_model_elements::test_dataframe_composite"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
numirias__pytest-json-report-73
numirias/pytest-json-report
c739df1abf55aae4dd6489094d10246a6fb283b6
diff --git a/README.md b/README.md index 6fd8db4..31ab8f3 100644 --- a/README.md +++ b/README.md @@ -203,6 +203,7 @@ Number of outcomes per category and the total number of test items. | --- | --- | | `collected` | Total number of tests collected. | | `total` | Total number of tests run. | +| `deselected` | Total...
python
diff --git a/tests/test_jsonreport.py b/tests/test_jsonreport.py index 9989c81..fa4d6d7 100644 --- a/tests/test_jsonreport.py +++ b/tests/test_jsonreport.py @@ -232,7 +232,9 @@ def test_report_item_deselected(make_json): def test_second(): pass """, ['--json-report', '-m', 'not bad']) - as...
2022-03-15T20:57:37+00:00Z
include deselected tests on report Would it be possible to include deselected tests in the report? https://docs.pytest.org/en/6.2.x/reference.html?highlight=deselected#pytest.hookspec.pytest_deselected
0.0.1-alpha
41a345307996db15ac894d9b7f9dbb4387d9ebf1
["tests.test_jsonreport::test_report_item_deselected[0]", "tests.test_jsonreport::test_report_item_deselected[1]", "tests.test_jsonreport::test_report_item_deselected[4]"]
["tests.test_jsonreport::test_arguments_in_help", "tests.test_jsonreport::test_no_report", "tests.test_jsonreport::test_create_report", "tests.test_jsonreport::test_create_report_file_from_arg", "tests.test_jsonreport::test_create_no_report", "tests.test_jsonreport::test_terminal_summary", "tests.test_jsonreport::test_...
["tests.test_jsonreport::tests_only[0]", "tests.test_jsonreport::tests_only[1]", "tests.test_jsonreport::tests_only[4]", "tests.test_jsonreport::test_report_keys[0]", "tests.test_jsonreport::test_report_keys[1]", "tests.test_jsonreport::test_report_keys[4]", "tests.test_jsonreport::test_report_collectors[0]", "tests.te...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
semuconsulting__pynmeagps-12
semuconsulting/pynmeagps
4c8f6ec821fffe68811d8258a8231abb905d72d6
diff --git a/pynmeagps/nmeareader.py b/pynmeagps/nmeareader.py index 5e0c0ae..e6be119 100644 --- a/pynmeagps/nmeareader.py +++ b/pynmeagps/nmeareader.py @@ -128,16 +128,20 @@ class NMEAReader: return (raw_data, parsed_data) - def iterate(self, quitonerror: bool = True) -> tuple: + def iterate(self, *...
python
diff --git a/tests/test_stream.py b/tests/test_stream.py index 757da48..246a757 100644 --- a/tests/test_stream.py +++ b/tests/test_stream.py @@ -249,7 +249,7 @@ class StreamTest(unittest.TestCase): i = 0 raw = 0 nmr = NMEAReader(self.streamNMEA4SM, nmeaonly=False) - for (raw, parsed...
2022-01-14T16:02:04+00:00Z
Examples of parsing exception handling are not actually handling exceptions ![image](https://user-images.githubusercontent.com/20318135/149506636-4676eb48-d51e-4c43-8481-a78e9d55f7e6.png) This is a pattern frequently seen in examples of box pyubx2 and pynmeagps. It seems to imply the intention of handling parsing err...
Ah OK I'm with you - you're referring to the iterator in `nmeafile.py`, for example. Yes, the exception handling should be improved in some of the iterator examples. On it. I've updated the examples in the `improve-iterator-examples` branch (there were a couple of other issues as well). Could you take a look at th...
0.0.1-alpha
a5d912fb9d602749f82b813b2c59dce59b21941c
["tests.test_stream.StreamTest::testNMEAITERATE_ERR2"]
["tests.test_parse.ParseTest::testParseBADCK", "tests.test_parse.ParseTest::testParseBADMODE", "tests.test_parse.ParseTest::testParseGLL", "tests.test_parse.ParseTest::testParseNK", "tests.test_parse.ParseTest::testParseNK2", "tests.test_parse.ParseTest::testParsePGRMM", "tests.test_parse.ParseTest::testParsePGRMO", "t...
["unittest.loader._FailedTest.tests::testsuite"]
{ "key": "bsd-3-clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "spdx_id": "BSD-3-Clause", "url": "https://api.github.com/licenses/bsd-3-clause" }
nerdocs__pydifact-56
nerdocs/pydifact
9fa200455cb7469cad013500d113c4c5de71603f
diff --git a/pydifact/parser.py b/pydifact/parser.py index 7ceb2ea..21a26c1 100644 --- a/pydifact/parser.py +++ b/pydifact/parser.py @@ -51,7 +51,9 @@ class Parser: # If there is a UNA, take the following 6 characters # unconditionally, save them, strip them, and make control Characters() # f...
python
diff --git a/tests/test_parser.py b/tests/test_parser.py index 52ae560..6813b01 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -113,31 +113,34 @@ def test_compare_equal_segments(parser, default_una_segment): def test_una_parser1(parser): # UNA headers are a special parsing task and must be proces...
2023-04-22T12:18:35+00:00Z
Parser drops UNA Segments while converting tokens to segments Consider an interchange like ``` UNA:+.? ' UNB+UNOC:1+1234+3333+200102:2212+42' UNH+42z42+PAORES:93:1:IA' UNT+2+42z42' UNZ+1+42' ``` While the `Parser` correctly uses the given control characters to convert the tokens to `Segments`, it does not pas...
fixed by #57
0.0.1-alpha
bf075e6c96d1a1402f33a3e53595a7312cd91534
["tests.test_parser::test_una_parser1", "tests.test_parser::test_una_parser2", "tests.test_parser::test_una_parser3", "tests.test_parser::test_basic1", "tests.test_parser::test_basic2", "tests.test_parser::test_escape_character", "tests.test_parser::test_escape_component_separator", "tests.test_parser::test_escape_data...
["tests.messagetypes.paxlst.test_una::test_una_segment", "tests.messagetypes.paxlst.test_unb.TestUNBSegment::test_una_decimal_point", "tests.messagetypes.paxlst.test_unb.TestUNBSegment::test_unb_segement", "tests.test_characters::test_with_separator_identity", "tests.test_characters::test_cc_assigning", "tests.test_cha...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
machow__quartodoc-51
machow/quartodoc
8d2656b2a53e898537b028b3ea41496e34859873
diff --git a/quartodoc/renderers/md_renderer.py b/quartodoc/renderers/md_renderer.py index 52a6785..659fbb9 100644 --- a/quartodoc/renderers/md_renderer.py +++ b/quartodoc/renderers/md_renderer.py @@ -77,6 +77,27 @@ class MdRenderer(Renderer): raise ValueError(f"Unsupported display_name: `{self.display_name}...
python
diff --git a/quartodoc/tests/__init__.py b/quartodoc/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/quartodoc/tests/example_attribute.py b/quartodoc/tests/example_attribute.py new file mode 100644 index 0000000..2f620ab --- /dev/null +++ b/quartodoc/tests/example_attribute.py @@ -0,0 +1,7 @@...
2023-03-14T16:26:17+00:00Z
Should have a way to create pages for types For the Shiny docs, we want pages (or perhaps one combined page) of types. For example, in the `input_slider` page, there are many types which are not meaningful to users, and they don't have a good way to figure out what they are. <img width="842" alt="image" src="https:...
I'm overhauling the Builder right now, to allow for grouping object docs on pages. In this example, are you saying this?: * SliderValueArg needs a page * htmltools.TagChildArg would ideally link to htmltools docs (cf https://github.com/machow/quartodoc/issues/55) I'll pull out all the referenced types before ...
0.0.1-alpha
fea6e539393a252cbb93de1e575ab2480b7df405
["quartodoc.tests.test_basic::test_render_attribute"]
["quartodoc.tests.test_ast::test_transform_docstring_section[See Also\\n----]", "quartodoc.tests.test_ast::test_transform_docstring_section[See Also\\n---\\n-]", "quartodoc.tests.test_ast::test_transform_docstring_section[See Also\\n---------]", "quartodoc.tests.test_ast::test_transform_docstring_section[\\n\\nSee Also...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
niftycode__imessage_reader-4
niftycode/imessage_reader
f5bb52010c63ecc9e8da8ce584b1e3d20376a706
diff --git a/imessage_reader/cli.py b/imessage_reader/cli.py index 3a48405..5cbb536 100644 --- a/imessage_reader/cli.py +++ b/imessage_reader/cli.py @@ -28,8 +28,9 @@ def get_parser(): help='Show the current version.', action='store_true') - args = parser.parse_arg...
python
diff --git a/tests/test_cli.py b/tests/test_cli.py new file mode 100644 index 0000000..88634f0 --- /dev/null +++ b/tests/test_cli.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- + +import pytest +from imessage_reader import cli + + +@pytest.fixture() +def create_parser(): + """ + Create a par...
2020-10-27T09:40:19+00:00Z
Add test for CLI
I'd like to work on this issue.
0.0.1-alpha
c3679631d0271023acb663d1ce536ecac901e2fd
["tests.test_cli::test_evaluate"]
["tests.test_fetch_db::test_fetch_db_data", "tests.test_message_data::test_message_data", "tests.test_message_data::test_db_data", "tests.test_write_excel::test_write_excel"]
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
octodns__octodns-1234
octodns/octodns
84711580f2ef623cbb7a14a6efed4c84ae8a12d4
diff --git a/CHANGELOG.md b/CHANGELOG.md index d480311..4a463ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ * Add YamlProvider.order_mode to allow picking between natural (human) the default when enforce_order=True and simple `sort`. * Fix type-o in _build_kwargs handler notification +* Add suppor...
python
diff --git a/tests/test_octodns_processor_ownership.py b/tests/test_octodns_processor_ownership.py index bd0a630..95682e5 100644 --- a/tests/test_octodns_processor_ownership.py +++ b/tests/test_octodns_processor_ownership.py @@ -55,11 +55,21 @@ class TestOwnershipProcessor(TestCase): self.assertEqual([...
2025-01-08T18:14:16+00:00Z
TTL error (rrset_ttl) 60 below Gandi minimum (300) Hello @ross, I'm having a problem with the ownership processor application on **Gandi**, the default TTL value is **300**, I can't go below that and apparently, ownership (record TXT) has a forced value of **60**. I use : - OctoDNS v1.10.0 - octodns-gandi v0.0.3 `...
Moved this into octoDNS core as I believe the best fix will be to add support for a configurable TTL on the ownership processor. https://github.com/octodns/octodns/blob/84711580f2ef623cbb7a14a6efed4c84ae8a12d4/octodns/processor/ownership.py#L33 Fixed by https://github.com/octodns/octodns/pull/1235
0.0.1-alpha
85f47d348a8bcaf2887f63880afd7d583819fbc4
["tests.test_octodns_processor_ownership.TestOwnershipProcessor::test_process_source_zone"]
["tests.test_octodns_equality.TestEqualityTupleMixin::test_basics", "tests.test_octodns_equality.TestEqualityTupleMixin::test_not_implemented", "tests.test_octodns_idna.TestIdna::test_case_insensitivity", "tests.test_octodns_idna.TestIdna::test_exception_translation", "tests.test_octodns_idna.TestIdna::test_noops", "te...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
redimp__otterwiki-206
redimp/otterwiki
5f04b057bcd04fafc41c454062be30085a41afc7
diff --git a/otterwiki/renderer.py b/otterwiki/renderer.py index 2565059..3e4fe25 100644 --- a/otterwiki/renderer.py +++ b/otterwiki/renderer.py @@ -60,15 +60,15 @@ class CodeHtmlFormatter(html.HtmlFormatter): def pygments_render(code, lang, linenumbers=False): try: - lexer = get_lexer_by_name(lang, stri...
python
diff --git a/tests/test_renderer.py b/tests/test_renderer.py index fed981e..9f8858c 100644 --- a/tests/test_renderer.py +++ b/tests/test_renderer.py @@ -561,3 +561,53 @@ df[['a', "b"]] assert code code = code.text assert """df[['a', "b"]]""" in code + + +def test_indent_preformatted_issue206(): + md =...
2025-02-17T23:30:06+00:00Z
Indentation in preformatted text There's a minor issue with the indentation being stripped off the first line of preformatted text and code blocks. Example page: ``` # Preformatted Hello :) This is at 5 spaces. 5 spaces here as well. ``` Rendered by GitHub: # Preformatted Hello :) This is at 5 sp...
> An Otter Wiki should, too. Removing leading spaces hurts Otters like this one: 😂 A well-presented case. Fix released in [v2.9.4](https://github.com/redimp/otterwiki/releases/tag/v2.9.4).
0.0.1-alpha
680f74a8ad30f02653f3dd473d3bc7c400e853aa
["tests.test_renderer::test_indent_preformatted_issue206"]
["tests.test_attachments::test_app_with_attachments", "tests.test_attachments::test_list_attachments", "tests.test_attachments::test_get_attachment0_legcay", "tests.test_attachments::test_get_attachment0", "tests.test_attachments::test_edit_attachment0", "tests.test_attachments::test_thumbnail_legacy", "tests.test_atta...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
meerk40t__svgelements-175
meerk40t/svgelements
b58c87c06a7d4520147595c43430327fb0405a81
diff --git a/svgelements/svgelements.py b/svgelements/svgelements.py index e564489..c2a6fcb 100644 --- a/svgelements/svgelements.py +++ b/svgelements/svgelements.py @@ -8907,11 +8907,10 @@ class SVG(Group): if context is not None: context.append(s) cont...
python
diff --git a/test/test_parsing.py b/test/test_parsing.py index 7df67d7..be66ef8 100644 --- a/test/test_parsing.py +++ b/test/test_parsing.py @@ -616,6 +616,21 @@ class TestParseDisplay(unittest.TestCase): q = list(m.elements()) self.assertTrue(isinstance(q[-1], SimpleLine)) + def test_svgfile_no_...
2022-12-14T12:02:35+00:00Z
None Type append in SVG.Parse ``` else: s = SVGElement(values) # SVG Unknown object return as element. context.append(s) ``` Can somehow produce crash: ``` File "meerk40t\svgelements.py", line 8709, in parse AttributeError: 'NoneType' object has no...
I've already seen this. Here is a minimal example, which triggers it (a file without top-level "svg" element): ```svg <g></g> ``` Regards! And so it does... fixed in 1.9.0
0.0.1-alpha
55bc713d3e28bcfe92b2a7cbc2b4c10febb365d0
["test.test_parsing.TestParseDisplay::test_svgfile_no_root_issue175"]
["test.test_angle.TestElementAngle::test_angle_equal", "test.test_angle.TestElementAngle::test_angle_init", "test.test_angle.TestElementAngle::test_orth", "test.test_approximate.TestElementApproximation::test_cubic_bezier_arc_approximation", "test.test_arc_length.TestElementArcLength::test_arc_angle_point", "test.test_...
["test.test_arc_length.TestElementArcLength::test_arc_len_circle_exact", "test.test_arc_length.TestElementArcLength::test_arc_len_flat_exact", "test.test_arc_length.TestElementArcLength::test_arc_len_r0_exact", "test.test_arc_length.TestElementArcLength::test_arc_len_random_int", "test.test_arc_length.TestElementArcLen...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
oscal-compass__compliance-trestle-1580
oscal-compass/compliance-trestle
774e3cff89647a5e2fbd494d5ec5f352a0dd0671
diff --git a/scripts/oscal_normalize.py b/scripts/oscal_normalize.py index cd5fe72..73a37b2 100644 --- a/scripts/oscal_normalize.py +++ b/scripts/oscal_normalize.py @@ -1033,7 +1033,13 @@ def kill_roots(file_classes): for ii in range(1, len(c.lines)): line = c.lines[ii] ...
python
diff --git a/tests/data/validate/component-definitions/x1/component-definition.json b/tests/data/validate/component-definitions/x1/component-definition.json new file mode 100644 index 0000000..0dc7ec5 --- /dev/null +++ b/tests/data/validate/component-definitions/x1/component-definition.json @@ -0,0 +1,20 @@ +{ + "comp...
2024-06-14T12:05:02+00:00Z
trestle validate component-definitions incorrectly failing on port-ranges ## Describe the bug After upgrading to trestle 3.0.1, a ComponentDefinition file that was valid under trestle 2.6.1 started to fail with messages about the `protocols -> port-ranges` `start` and `end` values not being valid dicts. They should...
My guess is that https://github.com/oscal-compass/compliance-trestle/blob/b33490a24c93521568697fc582ae48bf4af71181/trestle/oscal/common.py#L525-L528 inheriting from `OscalBaseModel` with no other config is the issue here (and one shared by `class PositiveIntegerDatatype`) but I'm not sure how or where to make a fix sin...
0.0.1-alpha
888c9eb0f6ae106fefd3f9667d4fc9fa74f51008
["tests.trestle.core.commands.validate_test::test_period", "tests.trestle.core.commands.validate_test::test_validate_component_definition_ports"]
["tests.trestle.cli_test::test_run", "tests.trestle.core.base_model_test::test_echo_tmp_path", "tests.trestle.core.base_model_test::test_is_oscal_base", "tests.trestle.core.base_model_test::test_no_timezone_exception", "tests.trestle.core.base_model_test::test_with_timezone", "tests.trestle.core.base_model_test::test_b...
["tests.trestle.core.base_model_test::test_stripped_instance", "tests.trestle.core.base_model_test::test_oscal_read", "tests.trestle.core.base_model_test::test_oscal_write", "tests.trestle.core.base_model_test::test_get_field_value_by_alias", "tests.trestle.core.base_model_test::test_get_field_by_alias", "tests.trestle...
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
simonw__files-to-prompt-2
simonw/files-to-prompt
38b761112517877b0aee43c218dfd94792118d16
diff --git a/files_to_prompt/cli.py b/files_to_prompt/cli.py index ce94024..2e84f83 100644 --- a/files_to_prompt/cli.py +++ b/files_to_prompt/cli.py @@ -23,11 +23,48 @@ def read_gitignore(path): return [] +def process_path(path, include_hidden, ignore_gitignore, gitignore_rules): + if os.path.isfile(path): ...
python
diff --git a/tests/test_files_to_prompt.py b/tests/test_files_to_prompt.py index 6fc3016..8a41d3b 100644 --- a/tests/test_files_to_prompt.py +++ b/tests/test_files_to_prompt.py @@ -58,3 +58,72 @@ def test_ignore_gitignore(tmpdir): assert "test_dir/ignored.txt" in result.output assert "This file should...
2024-04-08T05:02:13+00:00Z
Take multiple arguments for files and directories to include That way you could send just specific files like this: files-to-prompt app.py utils.py
Do you want to accept multiple args for `path`? or add a new option like `--files`? > cat files_to_prompt/cli.py | llm -m opus --system ' > Modify this file. It should take multiple arguments in a variable called paths. Each of those argumets might be a path to a file or it might be a path to a directory - if any of t...
0.0.1-alpha
cc8473b13e4b259bcb6cd0e7b4aa667922a54e89
["tests.test_files_to_prompt::test_multiple_paths", "tests.test_files_to_prompt::test_mixed_paths_with_options"]
["tests.test_files_to_prompt::test_basic_functionality", "tests.test_files_to_prompt::test_include_hidden", "tests.test_files_to_prompt::test_ignore_gitignore"]
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
stytchauth__stytch-python-204
stytchauth/stytch-python
83be65f3100d78aa43166398315a151ef9e16d2f
diff --git a/stytch/core/http/client.py b/stytch/core/http/client.py index aad771e..53e14aa 100644 --- a/stytch/core/http/client.py +++ b/stytch/core/http/client.py @@ -96,10 +96,16 @@ class AsyncClient(ClientBase): super().__init__(project_id, secret) self.auth = aiohttp.BasicAuth(project_id, secret)...
python
diff --git a/stytch/core/http/test/__init__.py b/stytch/core/http/test/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/stytch/core/http/test/test_client.py b/stytch/core/http/test/test_client.py new file mode 100644 index 0000000..7df2895 --- /dev/null +++ b/stytch/core/http/test/test_client.py @@ ...
2024-05-29T20:17:41+00:00Z
how to use the Client in non-async scenarios? after the update to 9.x, my code that previously used to work, now raises RuntimeError exceptions because it is not running in an async context. For example, ``` client = Client( project_id=settings.stytch_project_id, secret=settings.stytch_sec...
Hey @caphrim007, really sorry about this regression. I've just put up #205 which I think addresses this. By chance, do you have a minimally reproducible example of something that's failing so I could test it for you? The test I added in #205 verifies that initializing the client will no longer attempt to retrieve th...
0.0.1-alpha
3896ee13f8d291339d4c507f833e8a365a80efec
["stytch.core.http.test.test_client.TestAsyncClient::test_session_without_event_loop"]
["stytch.shared.tests.test_rbac_local.TestRbacLocal::test_perform_authorization_check"]
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sepandhaghighi__nafas-153
sepandhaghighi/nafas
c359ba81a48b05f652f68e7966448256f749774c
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 60f7213..e553aa5 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -85,6 +85,7 @@ body: label: Nafas version description: Which version of Nafas are you using? ...
python
diff --git a/test/test.py b/test/test.py index 9ef28cf..1dc1a44 100644 --- a/test/test.py +++ b/test/test.py @@ -407,5 +407,5 @@ nava.errors.NavaBaseError: Sound file's path should be a string. False >>> # testing get_rendered_survey_link for multiple cases >>> get_rendered_survey_link("X", "Medium", {"ratio": [1, 0...
2025-07-28T23:26:47+00:00Z
[Feature]: British accent ### Describe the feature you want to add Add british accent (`uk`) ### Describe your proposed solution _No response_ ### Describe alternatives you've considered, if relevant _No response_ ### Additional context _No response_
0.0.1-alpha
073a8efb75ac0fdc5d6501fd8eacbe4cf26299d5
["test.test::test"]
[]
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
simonw__git-history-13
simonw/git-history
2be1e3fffd004716cb53b94ec84934b634e41f6e
diff --git a/git_history/cli.py b/git_history/cli.py index 92bf6e8..bf1c2a5 100644 --- a/git_history/cli.py +++ b/git_history/cli.py @@ -175,13 +175,13 @@ def file( resolved_filepath, branch, skip_commits=set( - r[0] for r in db.execute("select hash from [commit]").fetchall() + ...
python
diff --git a/tests/test_git_history.py b/tests/test_git_history.py index 9868162..7c7ce28 100644 --- a/tests/test_git_history.py +++ b/tests/test_git_history.py @@ -158,20 +158,20 @@ def test_file_without_id(repo, tmpdir, namespace): ");\n" "CREATE UNIQUE INDEX [idx_namespaces_name]\n" " O...
2021-11-30T22:17:40+00:00Z
Support history of more than one file in a single database Provide a way to customize the name of the `items_` and `item_versions` tables - but also need to work out how to reflect in the `commits` table that they may be related to other things (perhaps? Maybe it's OK to have commits just live there - but they should ...
If I have a `repo` table what should in contain? ```pycon >>> repo = Repo(".") >>> repo.remotes[0].url 'git@github.com:simonw/git-history' ``` Could use the first available remote URL, if one exists - maybe put that in a `origin_url` column. This will be easier if I use singular names for the tables instead of pl...
0.0.1-alpha
4c45a11348c17428ecf20015614071f2be513ec5
["tests.test_git_history::test_file_without_id[None]", "tests.test_git_history::test_file_without_id[custom]", "tests.test_git_history::test_file_with_id[None]", "tests.test_git_history::test_file_with_id[custom]", "tests.test_git_history::test_file_with_reserved_columns", "tests.test_git_history::test_csv_tsv[trees.cs...
["tests.test_git_history::test_convert[json.loads(content.upper())-expected_rows0]", "tests.test_git_history::test_convert[data = json.loads(content)\\nfor item in data:\\n yield {\"just_name\": item[\"name\"]}-expected_rows1]", "tests.test_utils::test_fix_reserved_columns[_id-_id_]", "tests.test_utils::test_fix_res...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
mdowds__python-mock-firestore-43
mdowds/python-mock-firestore
cabbb95ed5d989a90e1d44792044c0af2ab30c08
diff --git a/mockfirestore/query.py b/mockfirestore/query.py index 4761a92..7a4618d 100644 --- a/mockfirestore/query.py +++ b/mockfirestore/query.py @@ -121,6 +121,8 @@ class Query: def _compare_func(self, op: str) -> Callable[[T, T], bool]: if op == '==': return lambda x, y: x == y + ...
python
diff --git a/tests/test_collection_reference.py b/tests/test_collection_reference.py index 59397be..ed34c8b 100644 --- a/tests/test_collection_reference.py +++ b/tests/test_collection_reference.py @@ -81,6 +81,16 @@ class TestCollectionReference(TestCase): docs = list(fs.collection('foo').where('valid', '==', ...
2022-01-24T13:04:18+00:00Z
`!=` operator is not supported in queries Firestore supports `!=` operators now: https://firebase.google.com/docs/firestore/query-data/queries#query_operators I get the following error (which goes away if I use the `==` operator instead). ``` doc_snapshots = [doc_snapshot for doc_snapshot in doc_snapshots > ...
0.0.1-alpha
5c88b2b7c89fca105d767e9157da02d8b19305d8
["tests.test_collection_reference.TestCollectionReference::test_collection_whereNotEquals"]
["tests.test_timestamp.TestTimestamp::test_timestamp", "tests.test_document_snapshot.TestDocumentSnapshot::test_documentSnapshot_create_time", "tests.test_document_snapshot.TestDocumentSnapshot::test_documentSnapshot_exists", "tests.test_document_snapshot.TestDocumentSnapshot::test_documentSnapshot_exists_documentDoesN...
["unittest.loader._FailedTest.tests::test_document_reference"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
mapbox__tilesets-cli-127
mapbox/tilesets-cli
7cabddc2cb754fe96621d38ce35ad6d92d4fb72a
diff --git a/CHANGELOG.md b/CHANGELOG.md index eba8cb2..7642b38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # Unreleased - Hide deprecated `add-source` command from command list. +- Raise error in `tilesets status` for non-200s (includes unpublished tilesets). ======= diff --git a/mapbox_tileset...
python
diff --git a/tests/test_cli_status.py b/tests/test_cli_status.py index 1c91fe7..8f7cf54 100644 --- a/tests/test_cli_status.py +++ b/tests/test_cli_status.py @@ -5,6 +5,7 @@ from click.testing import CliRunner from unittest import mock from mapbox_tilesets.scripts.cli import status +from mapbox_tilesets.errors impor...
2021-12-01T20:38:25+00:00Z
Confusing error message for `tilesets status` of an unpublished tileset ``` (python-venv) ➤ tilesets status enf.countries-center Traceback (most recent call last): File "/Users/enf/python-venv/bin/tilesets", line 11, in <module> load_entry_point('mapbox-tilesets', 'console_scripts', 'tilesets')() File "/U...
0.0.1-alpha
5650e76ec2caf47577aa7074cbcead8de521547c
["tests.test_cli_status::test_cli_status_error"]
["tests.test_cli_create::test_cli_create_missing_recipe", "tests.test_cli_create::test_cli_create_missing_name", "tests.test_cli_create::test_cli_create_success", "tests.test_cli_create::test_cli_create_attribution_json_parse_error", "tests.test_cli_create::test_cli_create_success_description", "tests.test_cli_create::...
[]
{ "key": "bsd-2-clause", "name": "BSD 2-Clause \"Simplified\" License", "spdx_id": "BSD-2-Clause", "url": "https://api.github.com/licenses/bsd-2-clause" }
simonw__s3-credentials-12
simonw/s3-credentials
199009dd64795a0f1b3f2b29f44a984be1e65b55
diff --git a/README.md b/README.md index 76c0c1b..68935e2 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,7 @@ The `create` command has a number of options: - `--duration 15m`: For temporary credentials, how long should they last? This can be specified in seconds, minutes or hours using a suffix of `s`, `m` or `h`...
python
diff --git a/tests/test_integration.py b/tests/test_integration.py index 372925e..b6b4597 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -92,10 +92,79 @@ def test_create_bucket_read_only_duration_15(): Key="hello-read-only.txt", ) # Client should be able to read this - c...
2022-01-17T21:08:08+00:00Z
Support specifying a folder `--prefix` It looks like it may be possible to create policies that only allow users to read and write files with a specified S3 path prefix: https://aws.amazon.com/premiumsupport/knowledge-center/iam-s3-user-specific-folder/ Supporting that as a feature - maybe with a `--prefix foo/bar`...
Also covered in this talk: https://youtu.be/Du478i9O_mc at 27:50 ![766E2C5E-D149-415F-88EC-95A14CF3C313](https://user-images.githubusercontent.com/9599/140022173-54fadce6-6fe6-4c75-8d60-38c284ea5e05.png) Here's my annotated version of the example policy from https://aws.amazon.com/premiumsupport/knowledge-center/iam...
0.0.1-alpha
7303e5bae4bd2de8cc59084efc6637944ddcb213
["tests.test_s3_credentials::test_policy[options3-{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": [\"s3:GetBucketLocation\"], \"Resource\": [\"arn:aws:s3:::pytest-bucket-simonw-1\"]}, {\"Effect\": \"Allow\", \"Action\": [\"s3:ListBucket\"], \"Resource\": [\"arn:aws:s3:::pytest-bucket-s...
["tests.test_dry_run::test_dry_run[options0-Would create bucket: 'my-bucket'\\nWould create user: 's3.read-write.my-bucket' with permissions boundary: 'arn:aws:iam::aws:policy/AmazonS3FullAccess'\\nWould attach policy called 's3.read-write.my-bucket' to user 's3.read-write.my-bucket', details:*\\nWould call create acce...
["tests.test_s3_credentials::test_whoami", "tests.test_s3_credentials::test_list_users[-{\\n \"Path\": \"/\",\\n \"UserName\": \"NameA\",\\n \"UserId\": \"AID000000000000000001\",\\n \"Arn\": \"arn:aws:iam::000000000000:user/NameB\",\\n \"CreateDate\": \"2020-01-01 00:00:00+00:00\"\\n}\\n{\\n \"Path\"...
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
simonw__google-drive-to-sqlite-4
simonw/google-drive-to-sqlite
7f09c817546071413d4c2a9754d323b0f88e45e6
diff --git a/google_drive_to_sqlite/cli.py b/google_drive_to_sqlite/cli.py index 0d4c965..e51e575 100644 --- a/google_drive_to_sqlite/cli.py +++ b/google_drive_to_sqlite/cli.py @@ -334,10 +334,10 @@ def load_token(auth): ) def download(file_ids, auth, output, silent): "Download one or more file IDs to disk" - ...
python
2022-02-17T06:47:44+00:00Z
`google-drive-to-sqlite download FILE_ID` command > Here's the recipe that worked for retrieving the binary contents of a file - the trick is the `alt=media` parameter: > ```python > def get_binary(file_id): > return httpx.get( > "https://www.googleapis.com/drive/v3/files/{}?alt=media".format(file_id),...
May need to do two API requests here - one to figure out the filename, extension and content type, the other to retrieve the contents. I'll use an `httpx` streaming download: https://www.python-httpx.org/quickstart/#streaming-responses ```pycon >>> with httpx.stream("GET", "https://www.example.com") as r: ... ...
0.0.1-alpha
f40094ce4085024c89f8b7797372dbf4c3f977ba
["tests.test_google_drive_to_sqlite::test_download_output_two_files_error"]
[]
["tests.test_google_drive_to_sqlite::test_auth[response0-None]", "tests.test_google_drive_to_sqlite::test_auth[response1-Error: bad_error: description]", "tests.test_google_drive_to_sqlite::test_auth[response2-Error: No refresh_token in response]", "tests.test_google_drive_to_sqlite::test_auth_custom_client[opts0-expec...
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
wimglenn__advent-of-code-data-21
wimglenn/advent-of-code-data
3561836b158fc11cc00fc9742f509aee88f70bf3
diff --git a/aocd/runner.py b/aocd/runner.py index 360b08c..9bfd5b1 100644 --- a/aocd/runner.py +++ b/aocd/runner.py @@ -43,13 +43,14 @@ def main(): users = _load_users() log_levels = "DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL" parser = ArgumentParser(description="AoC runner") - parser.add_argumen...
python
diff --git a/tests/test_runner.py b/tests/test_runner.py index 7083d66..afd5b92 100644 --- a/tests/test_runner.py +++ b/tests/test_runner.py @@ -63,6 +63,7 @@ def test_main(capsys, mocker, aocd_config_dir): timeout=60, autosubmit=True, reopen=False, + capture=False, ) @@ -87,8...
2021-11-09T03:49:30+00:00Z
Suppress stdout from runner Is it possible to suppress stdout when using the `aoc` runner? The output from print statements tends to destroy the runner output.
You can do this directly in your entry-point. For example, in [`advent-of-code-wim`](https://github.com/wimglenn/advent-of-code-wim) I redirect stdout to a `StringIO` instance: https://github.com/wimglenn/advent-of-code-wim/blob/925223bb1aab7fb7b905b20b78ed897203d82d2a/aoc_wim/__init__.py#L13-L18 There is also stdl...
0.0.1-alpha
42c452d416402b13738719060f466abc972b713d
["tests.test_runner::test_main"]
["tests.test_aocd::test_get_data_imported_from_class", "tests.test_aocd::test_get_data_via_import", "tests.test_aocd::test_import_submit_binds_day_and_year", "tests.test_aocd::test_import_submit_doesnt_bind_day_and_year_when_introspection_failed", "tests.test_aocd::test_get_data_via_import_in_interactive_mode", "tests....
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
nteract__testbook-85
nteract/testbook
044c3b1fa3d96f4e97f8ad8a22e5eaa948ba2025
diff --git a/testbook/client.py b/testbook/client.py index 56c3fc9..462225b 100644 --- a/testbook/client.py +++ b/testbook/client.py @@ -289,9 +289,6 @@ class TestbookNotebookClient(NotebookClient): e.save_varname = save_varname raise e - def _eq_in_notebook(self, lhs: str, rhs: Any) -> b...
python
diff --git a/testbook/tests/resources/datamodel.ipynb b/testbook/tests/resources/datamodel.ipynb new file mode 100644 index 0000000..e7b021c --- /dev/null +++ b/testbook/tests/resources/datamodel.ipynb @@ -0,0 +1,43 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "id": "political-plaintif...
2021-02-20T03:29:57+00:00Z
Consider adding support for len and iter This doesn't work: ``` data_list = tb.ref('data_list') assert len(data_list) == 1024 ``` It throws: ``` TypeError: object of type 'TestbookObjectReference' has no len() ``` For the same reason, I'm guessing this won't work too: ``` for x in data_list: as...
0.0.1-alpha
770b16e4a78232ae44a300767ee91faace7e42f3
["testbook.tests.test_datamodel::test_len", "testbook.tests.test_datamodel::test_iter", "testbook.tests.test_datamodel::test_getitem", "testbook.tests.test_datamodel::test_getitem_raisesIndexError", "testbook.tests.test_datamodel::test_setitem", "testbook.tests.test_datamodel::test_setitem_raisesIndexError", "testbook....
["testbook.tests.test_client::test_cell_index[2-2]", "testbook.tests.test_client::test_cell_index[hello-1]", "testbook.tests.test_client::test_cell_index_raises_error[cell_index_args0-TypeError]", "testbook.tests.test_client::test_cell_index_raises_error[non-existent-tag-TestbookCellTagNotFoundError]", "testbook.tests....
[]
{ "key": "bsd-3-clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "spdx_id": "BSD-3-Clause", "url": "https://api.github.com/licenses/bsd-3-clause" }
scrapli__scrapli_community-145
scrapli/scrapli_community
57217fbe397e9e2f7c657d587bbc626b86dc8f75
diff --git a/scrapli_community/huawei/vrp/huawei_vrp.py b/scrapli_community/huawei/vrp/huawei_vrp.py index f9ab5c8..7f50af3 100644 --- a/scrapli_community/huawei/vrp/huawei_vrp.py +++ b/scrapli_community/huawei/vrp/huawei_vrp.py @@ -14,7 +14,7 @@ from scrapli_community.huawei.vrp.sync_driver import ( DEFAULT_PRIVILEGE...
python
diff --git a/tests/unit/huawei/vrp/test_huawei_vrp.py b/tests/unit/huawei/vrp/test_huawei_vrp.py index 4e42324..ad0d053 100644 --- a/tests/unit/huawei/vrp/test_huawei_vrp.py +++ b/tests/unit/huawei/vrp/test_huawei_vrp.py @@ -8,15 +8,27 @@ from scrapli_community.huawei.vrp.huawei_vrp import DEFAULT_PRIVILEGE_LEVELS @py...
2022-10-24T21:28:38+00:00Z
prompts for huawei HA setup **Describe the bug** Timed out while connecting to device. **To Reproduce** Steps to reproduce the behavior: 1. Your script ```python from scrapli import Scrapli device = { "host": "192.168.255.1", "auth_username": "admin", "auth_password": "admin", "auth_strict...
Hi @alsigna Feel free to open a PR - as long as you've got tests to cover the new patterns and things are looking reasonable I'll get it merged. Carl
0.0.1-alpha
4e8b03e4893ea262d7b0e68ce712df7993dc5808
["tests.unit.huawei.vrp.test_huawei_vrp::test_default_prompt_patterns[ssh_prompt_privilege_exec_hrp_master]", "tests.unit.huawei.vrp.test_huawei_vrp::test_default_prompt_patterns[ssh_prompt_privilege_exec_hrp_slave_standby]", "tests.unit.huawei.vrp.test_huawei_vrp::test_default_prompt_patterns[ssh_prompt_privilege_exec...
["tests.unit.aethra.atosnt.test_aethra_atosnt::test_default_prompt_patterns[HOSTNAME>>]", "tests.unit.aethra.atosnt.test_aethra_atosnt::test_default_prompt_patterns[SCRAPLI_AETHRA-ATOSNT_RTR>>]", "tests.unit.aethra.atosnt.test_aethra_atosnt::test_default_prompt_patterns[SCRAPLI-1234>>]", "tests.unit.aruba.test_aruba_ao...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
openscilab__nava-6
openscilab/nava
ce1b94d82ce15cc590f4f6f5d1370b63f5904af9
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6022f1c..cc9f7be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Chan...
python
diff --git a/test/error_test.py b/test/error_test.py index 578c0d5..3b68bee 100644 --- a/test/error_test.py +++ b/test/error_test.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- """ +>>> import os >>> from nava import play, stop >>> play("test.wav") Traceback (most recent call last): @@ -13,4 +14,8 @@ nava.errors.NavaB...
2024-03-29T13:27:31+00:00Z
Support loop #### Description Support loop
0.0.1-alpha
ec725637e09211ea34b46ccd362670baadd99e25
["test.error_test::error_test"]
[]
["test.function_test::function_test"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
matthewwithanm__python-markdownify-226
matthewwithanm/python-markdownify
9b1412aa5b5bca345806068b66d35086cbc88b25
diff --git a/markdownify/__init__.py b/markdownify/__init__.py index 72c5214..e901d10 100644 --- a/markdownify/__init__.py +++ b/markdownify/__init__.py @@ -41,6 +41,9 @@ re_escape_misc_hashes = re.compile(r'(\s|^)(#{1,6}(?:\s|$))') # confused with a list item re_escape_misc_list_items = re.compile(r'((?:\s|^)[0-9]{1...
python
diff --git a/tests/test_conversions.py b/tests/test_conversions.py index 825559b..dd99dfb 100644 --- a/tests/test_conversions.py +++ b/tests/test_conversions.py @@ -101,6 +101,9 @@ def test_code(): assert md('<code>foo<s> bar </s>baz</code>') == '`foo bar baz`' assert md('<code>foo<sup>bar</sup>baz</code>', s...
2025-06-29T18:56:21+00:00Z
Support backticks inside inline code spans With the version `1.1.0`, the following code ~~~python from markdownify import markdownify as md print( md( '<code>We have to `manage` this.</code>', ) ) ~~~ should print ~~~ ``We have to `manage` this.`` ~~~ instead of ~~~ `We have to `manage` this.` ~~...
0.0.1-alpha
48724e700270353b5bbf53f98e85d89796b7d0bf
["tests.test_conversions::test_code"]
["tests.test_advanced::test_chomp", "tests.test_advanced::test_nested", "tests.test_advanced::test_ignore_comments", "tests.test_advanced::test_ignore_comments_with_other_tags", "tests.test_advanced::test_code_with_tricky_content", "tests.test_advanced::test_special_tags", "tests.test_args::test_strip", "tests.test_arg...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sepandhaghighi__pycm-310
sepandhaghighi/pycm
b1a2d7b3a28e04751e0d875b0bfb3d9dd95380e3
diff --git a/pycm/pycm_obj.py b/pycm/pycm_obj.py index 85e95ab..27244f9 100644 --- a/pycm/pycm_obj.py +++ b/pycm/pycm_obj.py @@ -76,7 +76,7 @@ class ConfusionMatrix(): matrix_param = __obj_vector_handler__( self, actual_vector, predict_vector, threshold, sample_weight) if len(matr...
python
diff --git a/Test/error_test.py b/Test/error_test.py index 05c3ff6..616bc51 100644 --- a/Test/error_test.py +++ b/Test/error_test.py @@ -31,7 +31,7 @@ pycm.pycm_obj.pycmMatrixError: Type of the input matrix classes is assumed be t >>> cm_5=ConfusionMatrix(matrix={1:{1:2}}) Traceback (most recent call last): ...
2020-05-16T19:41:06+00:00Z
Single category cannot be executed #### Description Single category cannot be executed #### Steps/Code to Reproduce ``` from pycm import ConfusionMatrix y_actu = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1] y_pred = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1] cm = ConfusionMatrix(y_actu, y_pred) print(cm) ``` #### Expected Beh...
@Matt-Wang88 Hi Thanks for opening this issue 🥇 We must have at least 2 classes to make a confusion matrix, your example only have one, is it valid? @alirezazolanvari Whats your idea ? Hi This is an extreme example, but it can actually happen. Would it be better if the program could create another "other categ...
0.0.1-alpha
1e0d63ea5e4dbc1440bf192cc8d99162945b79bd
["Test.error_test::error_test"]
["Test.compare_test::compare_test", "Test.output_test::output_test", "Test.warning_test::warning_test", "pycm.pycm_obj::pycm.pycm_obj.ConfusionMatrix"]
["Test.function_test::function_test", "Test.overall_test::overall_test", "Test.verified_test::verified_test", "pycm.pycm_compare::pycm.pycm_compare.Compare"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
okta__okta-sdk-python-279
okta/okta-sdk-python
5d4ffa5402b7c1739f571dffd00b205eef5e1761
diff --git a/okta/models/group_profile.py b/okta/models/group_profile.py index d6058fe..28b7bf7 100644 --- a/okta/models/group_profile.py +++ b/okta/models/group_profile.py @@ -20,6 +20,8 @@ limitations under the License. from okta.okta_object import OktaObject +from okta.helpers import to_snake_case, to_lower_cam...
python
diff --git a/tests/integration/cassettes/test_groups_it/TestGroupsResource.test_group_profile_custom_attributes.yaml b/tests/integration/cassettes/test_groups_it/TestGroupsResource.test_group_profile_custom_attributes.yaml new file mode 100644 index 0000000..072a60c --- /dev/null +++ b/tests/integration/cassettes/test_...
2022-02-17T15:16:42+00:00Z
Okta Group Object Missing Custom Attributes Group objects returned via the SDK are missing any custom attributes that are placed on them. A similar issue is discussed in https://github.com/okta/okta-sdk-python/issues/230, but the resolution there seems to be around the creation or mangement of custom group profile ...
Hi @jlrgraham23, Thanks for your issue. Someone from our team will take a look soon. cc @serhiibuniak-okta @jlrgraham23 could you please, add some usage samples or request/response samples? If we are talking about #230, then custom attributes appears within GroupSchema object: https://github.com/okta/okta-sdk-py...
0.0.1-alpha
da1ef8f6b3b88fb76b157b0a87c19dce04d12e35
["tests.integration.test_groups_it.TestGroupsResource::test_group_profile_custom_attributes"]
["tests.integration.test_applications_it.TestApplicationsResource::test_create_bookmark_app", "tests.integration.test_applications_it.TestApplicationsResource::test_create_basic_auth_app", "tests.integration.test_applications_it.TestApplicationsResource::test_create_SWA_app", "tests.integration.test_applications_it.Tes...
["tests.integration.test_org_it.TestOrgResource::test_get_org_contact_user", "tests.integration.test_org_it.TestOrgResource::test_update_org_contact_user", "tests.integration.test_subscription_it.TestSubscriptionResource::test_get_role_subscription_by_notification_type", "tests.integration.test_subscription_it.TestSubs...
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
movingpandas__movingpandas-263
movingpandas/movingpandas
44183a8ccde7435c80504a6b275a9e71fd9579d8
diff --git a/movingpandas/overlay.py b/movingpandas/overlay.py index bea4f41..49657ec 100644 --- a/movingpandas/overlay.py +++ b/movingpandas/overlay.py @@ -146,6 +146,8 @@ def _get_segments_for_ranges(traj, ranges): continue segment.id = f"{traj.id}_{next(counter)}" segment.parent = traj...
python
diff --git a/movingpandas/tests/test_overlay.py b/movingpandas/tests/test_overlay.py index 21a782c..7e745b0 100644 --- a/movingpandas/tests/test_overlay.py +++ b/movingpandas/tests/test_overlay.py @@ -31,6 +31,8 @@ class TestOverlay: id="1_0", parent=traj, ) + # make sure traj ...
2024-12-30T20:41:56+00:00Z
clean up temp.gpkg file are running tests When the tests are run it generates a temp.gpkg this file could be cleaned up when the tests finish
0.0.1-alpha
45c9a3cd5040af17e4f361794dd8bfb0e44b1951
["movingpandas.tests.test_overlay.TestOverlay::test_clip_one_intersections"]
["movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_east", "movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_west", "movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_north", "movingpandas.tests.test_geometry_utils.TestGeometryUtils...
[]
{ "key": "bsd-3-clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "spdx_id": "BSD-3-Clause", "url": "https://api.github.com/licenses/bsd-3-clause" }
movingpandas__movingpandas-368
movingpandas/movingpandas
95d709848cf91600bcb213191e7065cd5ce75edc
diff --git a/movingpandas/trajectory_aggregator.py b/movingpandas/trajectory_aggregator.py index 2a5b291..9f76492 100644 --- a/movingpandas/trajectory_aggregator.py +++ b/movingpandas/trajectory_aggregator.py @@ -80,7 +80,7 @@ class TrajectoryCollectionAggregator: Significant points """ i...
python
diff --git a/movingpandas/tests/test_trajectory_aggregator.py b/movingpandas/tests/test_trajectory_aggregator.py index a27ff1e..034724e 100644 --- a/movingpandas/tests/test_trajectory_aggregator.py +++ b/movingpandas/tests/test_trajectory_aggregator.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- from pandas import Data...
2024-03-04T20:24:41+00:00Z
Add objectID weights to Aggregator flows output ### Discussed in https://github.com/movingpandas/movingpandas/discussions/364 <div type='discussions-op-text'> <sup>Originally posted by **Naarlack** February 21, 2024</sup> I have a bunch of GPS data I have collected from multiple cyclists. I would like to show a...
0.0.1-alpha
286f3aa6c477ce410a06533e417aa80a424fcb0d
["movingpandas.tests.test_trajectory_aggregator.TestTrajectoryCollectionAggregator::test_get_flows_gdf_crs_metric", "movingpandas.tests.test_trajectory_aggregator.TestTrajectoryCollectionAggregator::test_get_flows_gdf_crs_metric_obj"]
["movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_east", "movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_west", "movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_north", "movingpandas.tests.test_geometry_utils.TestGeometryUtils...
[]
{ "key": "bsd-3-clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "spdx_id": "BSD-3-Clause", "url": "https://api.github.com/licenses/bsd-3-clause" }
zheller__flake8-quotes-102
zheller/flake8-quotes
461254935334d3877c7c0990a39fe6c74494a207
diff --git a/flake8_quotes/__init__.py b/flake8_quotes/__init__.py index 6fb22c5..3113d7c 100644 --- a/flake8_quotes/__init__.py +++ b/flake8_quotes/__init__.py @@ -27,11 +27,13 @@ class QuoteChecker(object): "'": { 'good_single': "'", 'bad_single': '"', + 'single_error_mes...
python
diff --git a/test/test_checks.py b/test/test_checks.py index 06ebca5..0d9d82c 100644 --- a/test/test_checks.py +++ b/test/test_checks.py @@ -22,9 +22,15 @@ class TestFlake8Stdin(TestCase): stdout_lines = stdout.splitlines() self.assertEqual(stderr, b'') self.assertEqual(len(stdout_lines), 3) ...
2021-08-23T07:52:36+00:00Z
Friendlier error message Hi. I was looking to add a linter for string literals to a project of mine and found this one, thanks for writing it. I find the error message likely a bit too unclear for people however. Specifically it'll tell someone to "remove bad quotes", when instead it seems clearer to say somethi...
Not strongly opposed to it, though I could see it breaking some setups which expect consistent human readable output Do you mind surveying other parts of `flake8` or plugins to see how they handle different user configurations? (e.g. line length messages, tabs vs spaces, casing) Great! Sure thing. Here's e.g. [py...
0.0.1-alpha
07f161cdec04a83391b5a4e77e6b55b7cdc64f64
["test.test_checks.SinglesTestChecks::test_multiline_string", "test.test_checks.SinglesTestChecks::test_singles", "test.test_docstring_checks.DocstringTestChecks::test_require_double_docstring_double_present", "test.test_docstring_checks.DocstringTestChecks::test_require_double_docstring_single_present", "test.test_doc...
["test.test_docstring_detection.GetDocstringTokensTests::test_get_docstring_tokens_absent", "test.test_docstring_detection.GetDocstringTokensTests::test_get_docstring_tokens_doubles", "test.test_docstring_detection.GetDocstringTokensTests::test_get_docstring_tokens_singles", "test.test_checks.SinglesTestChecks::test_es...
["test.test_checks.TestFlake8Stdin::test_stdin"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
more-itertools__more-itertools-495
more-itertools/more-itertools
1604bc368d3e5f7a8ead1f1ac3896c85da709f96
diff --git a/README.rst b/README.rst index efab8fe..5d4a87e 100644 --- a/README.rst +++ b/README.rst @@ -54,6 +54,7 @@ Python iterables. | | `zip_offset <https://more-itertools.readthedocs.io/en/stable/api.html#more_itertools.zip_offset>`_, ...
python
diff --git a/tests/test_recipes.py b/tests/test_recipes.py index c78d125..3527401 100644 --- a/tests/test_recipes.py +++ b/tests/test_recipes.py @@ -1,7 +1,7 @@ import warnings from doctest import DocTestSuite -from itertools import combinations, permutations +from itertools import combinations, count, permutations...
2021-01-06T11:55:28+00:00Z
Add convolve recipe https://github.com/python/cpython/pull/23928 and https://github.com/python/cpython/pull/24012 add a new recipe to the itertools docs. This issue is to add it to `more-itertools`: - [x] Copy the code into `recipes.py` - [x] Write a type stub in `recipes.pyi` - [x] Write some unit tests in `tes...
0.0.1-alpha
3c6408ef653ebca9150df8c8da7236ed417e9edb
["tests.test_recipes.Convolvetests::test_derivative", "tests.test_recipes.Convolvetests::test_infinite_signal", "tests.test_recipes.Convolvetests::test_moving_average"]
["tests.test_more.CollateTests::test_alias", "tests.test_more.CollateTests::test_default", "tests.test_more.CollateTests::test_empty", "tests.test_more.CollateTests::test_key", "tests.test_more.CollateTests::test_one", "tests.test_more.CollateTests::test_reverse", "tests.test_more.ChunkedTests::test_even", "tests.test_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
rsagroup__rsatoolbox-214
rsagroup/rsatoolbox
f839c481f33e89ffd54a7739bd9ff97599fa2f95
diff --git a/rsatoolbox/data/__init__.py b/rsatoolbox/data/__init__.py index e4afdcd..58fbe44 100644 --- a/rsatoolbox/data/__init__.py +++ b/rsatoolbox/data/__init__.py @@ -7,3 +7,7 @@ from .computations import average_dataset from .computations import average_dataset_by from .noise import cov_from_residuals from .n...
python
diff --git a/tests/test_data.py b/tests/test_data.py index 83adf6f..112501e 100644 --- a/tests/test_data.py +++ b/tests/test_data.py @@ -365,22 +365,47 @@ class TestNoiseComputations(unittest.TestCase): residuals = residuals - np.mean(residuals, axis=0, keepdims=True) res_list.append(residuals...
2021-12-08T23:23:45+00:00Z
Fallback option for Noise Estimate In a current experiment we have 300 conditions each of which is sampled 6 times (so 1800 bmaps). A reasonable size ROI (default mode network in left-hemisphere) has about 7,000 vertices in the hcp mesh. At present, it seems this is too large of an ROI for the toolbox to handle calcul...
Hi Stephen, I can see two memory improvements. First, declare your data .astype(np.float32) That should cut size in half. Second, and this is more internal to rsatoolbox, as far as I understand, there is no need to store Square rdms at any point. Only storing the upper triangular vectors should reduce memory use ev...
0.0.1-alpha
8014a21ca7cc2a950b6a685fb10c145e420ee8a0
["tests.test_data.TestNoiseComputations::test_dataset", "tests.test_data.TestNoiseComputations::test_equal", "tests.test_data.TestNoiseComputations::test_unbalanced"]
["tests.test_calc_rdm.TestCalcRDM::test_calc_correlation", "tests.test_calc_rdm.TestCalcRDM::test_calc_crossnobis", "tests.test_calc_rdm.TestCalcRDM::test_calc_crossnobis_no_descriptors", "tests.test_calc_rdm.TestCalcRDM::test_calc_crossnobis_noise", "tests.test_calc_rdm.TestCalcRDM::test_calc_crossnobis_noise_list", "...
["tests.test_data.TestSave::test_save_load", "tests.test_data.TestOESplit::test_odd_even_split_nested", "tests.test_demo.TestDemos::test_temporal_rsa", "tests.test_inference.TestEvaluation::test_bootstrap_testset", "tests.test_inference.TestEvaluation::test_bootstrap_testset_pattern", "tests.test_inference.TestEvaluati...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pyfar__pyfar-122
pyfar/pyfar
fb69c906e0a43b042a6e07be132851ab4c9af0d8
diff --git a/pyfar/coordinates.py b/pyfar/coordinates.py index acf494a..38f3848 100644 --- a/pyfar/coordinates.py +++ b/pyfar/coordinates.py @@ -1632,9 +1632,9 @@ class Coordinates(object): return kdtree def __getitem__(self, index): - """Return mutable slice of Coordinates object at index.""" + ...
python
diff --git a/tests/test_coordinates.py b/tests/test_coordinates.py index 5e863d8..13df4bc 100644 --- a/tests/test_coordinates.py +++ b/tests/test_coordinates.py @@ -413,6 +413,13 @@ def test_getitem(): assert isinstance(new, Coordinates) assert new.cshape == (1, 5) + # test if sliced object stays untouch...
2021-03-17T07:31:57+00:00Z
Coordinates __getitem__, slicing bug ## Description Slicing of coordinates changes the original object instead of returning a new object. ## What I Did ``` import pyfar coords = pyfar.Coordinates([0,1], [0,1], [0,1]) coords_sliced = coords[0] coords.cshape == (2,) ```
0.0.1-alpha
3c6be2de6a95dd3e5280b6b68e981f5dd6f06404
["tests.test_coordinates::test_getitem"]
["tests.test_audio::test_audio_init_with_defaults", "tests.test_audio::test_audio_init_invalid_domain", "tests.test_audio::test_audio_comment", "tests.test_audio::test_return_item", "tests.test_audio::test_assert_matching_meta_data", "tests.test_codec::test__str_to_type", "tests.test_coordinates::test_coordinates_init"...
["tests.test_coordinates::test_show", "tests.test_coordinates::test_get_nearest_k", "tests.test_filter_classes::test___eq___equal", "tests.test_filter_classes::test___eq___notEqual", "tests.test_io::test_write_read_orientations", "tests.test_io::test_write_read_frequencydata", "tests.test_io::test_write_read_filter", "...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pysmt__pysmt-809
pysmt/pysmt
d1a1a25cc197ec445943d3dc06954af06d1e7276
diff --git a/pysmt/smtlib/parser/parser.py b/pysmt/smtlib/parser/parser.py index 8345444..1b42437 100644 --- a/pysmt/smtlib/parser/parser.py +++ b/pysmt/smtlib/parser/parser.py @@ -795,6 +795,11 @@ class SmtLibParser(object): keyword = tk[1:] tk = tokens.consume() value = None + ...
python
diff --git a/pysmt/test/smtlib/test_annotations.py b/pysmt/test/smtlib/test_annotations.py index bcda7af..8e0b764 100644 --- a/pysmt/test/smtlib/test_annotations.py +++ b/pysmt/test/smtlib/test_annotations.py @@ -167,8 +167,10 @@ class TestBasic(TestCase): script = parser.get_script(buf) ann = script....
2025-05-27T12:06:59+00:00Z
`SmtLibParser` fails to parse annotations without associated values When parsing annotations, the parser always tries to read an associated value: https://github.com/pysmt/pysmt/blob/8aaf1d3309e7402db20fafd6075a9ce7142fed85/pysmt/smtlib/parser/parser.py#L773-L790 However, following the SMT-LIB specs: ``` 〈attribute_v...
0.0.1-alpha
9cf1bd0c1738b21198adbd4a10f28be27b2453d7
["pysmt.test.smtlib.test_annotations.TestBasic::test_annotations_colon_values"]
["pysmt.test.smtlib.test_annotations.TestBasic::test_basic", "pysmt.test.smtlib.test_annotations.TestBasic::test_complex_annotations_values", "pysmt.test.smtlib.test_annotations.TestBasic::test_interpreting_annotations", "pysmt.test.smtlib.test_annotations.TestBasic::test_remove", "pysmt.test.smtlib.test_annotations.Te...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
pysal__spopt-267
pysal/spopt
87fc84d05979fc1b2413b80191643ba38ea853c9
diff --git a/notebooks/p-center.ipynb b/notebooks/p-center.ipynb index 89c43d1..4ea3789 100644 --- a/notebooks/p-center.ipynb +++ b/notebooks/p-center.ipynb @@ -38,8 +38,7 @@ "This tutorial generates synthetic demand (clients) and facility sites near a 10x10 lattice representing a gridded urban core. Three $p$-cen...
python
diff --git a/spopt/tests/test_locate.py b/spopt/tests/test_locate.py index 78447ed..09c8f71 100644 --- a/spopt/tests/test_locate.py +++ b/spopt/tests/test_locate.py @@ -405,6 +405,38 @@ class TestSyntheticLocate: numpy.array(pmedian_objective, dtype=object), ) + def test_pmedian_preselected_f...
2022-10-31T19:49:07+00:00Z
pre-defined facilities for all location models? It looks like the functionality to stipulate pre-defined facilities never made it into the [`PCenter`](https://github.com/pysal/spopt/blob/main/spopt/locate/p_center.py) or [`PMedian`](https://github.com/pysal/spopt/blob/main/spopt/locate/p_median.py) classes. I had swor...
``` TypeError: PMedian.from_geodataframe() got an unexpected keyword argument 'predefined_facility_col' ```
0.0.1-alpha
0e6a7cf9aadbb3243e62b01b933f85e4b7238a9f
["spopt.tests.test_locate.TestSyntheticLocate::test_pmedian_preselected_facility_client_array_from_geodataframe", "spopt.tests.test_locate.TestSyntheticLocate::test_pcenter_preselected_facility_client_array_from_geodataframe"]
["spopt.tests.test_locate.TestSyntheticLocate::test_lscp_from_cost_matrix", "spopt.tests.test_locate.TestSyntheticLocate::test_lscp_from_cost_matrix_no_results", "spopt.tests.test_locate.TestSyntheticLocate::test_lscp_facility_client_array_from_cost_matrix", "spopt.tests.test_locate.TestSyntheticLocate::test_lscp_clien...
["spopt.tests.test_azp.TestAZP::test_azp_basic_from_w", "spopt.tests.test_maxp.TestMaxPHeuristic::test_maxp_heuristic_complex", "spopt.tests.test_maxp.TestMaxPHeuristic::test_maxp_one_var", "spopt.tests.test_maxp.TestMaxPHeuristic::test_plot_components"]
{ "key": "bsd-3-clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "spdx_id": "BSD-3-Clause", "url": "https://api.github.com/licenses/bsd-3-clause" }
opensearch-project__opensearch-benchmark-780
opensearch-project/opensearch-benchmark
4878e91cca3691ee44cc83a664fd02c2c3632357
diff --git a/osbenchmark/worker_coordinator/runner.py b/osbenchmark/worker_coordinator/runner.py index 9ea3e79..38c3091 100644 --- a/osbenchmark/worker_coordinator/runner.py +++ b/osbenchmark/worker_coordinator/runner.py @@ -2000,15 +2000,13 @@ class Sleep(Runner): """ Sleeps for the specified duration not is...
python
diff --git a/tests/worker_coordinator/runner_test.py b/tests/worker_coordinator/runner_test.py index 5e19262..0a7f907 100644 --- a/tests/worker_coordinator/runner_test.py +++ b/tests/worker_coordinator/runner_test.py @@ -4715,8 +4715,8 @@ class SleepTests(TestCase): self.assertEqual(0, opensearch.call_count) ...
2025-03-09T17:00:43+00:00Z
[Bug]: Sleep Runner fails to complete with KeyError: 'request_start' ### Describe the bug I have a custom procedure with sleep operation after each major operation. Here is an example procedure - ``` {% import "benchmark.helpers" as benchmark with context %} { "name": "knn-no-train-test", "default": false,...
@gkamat Spoke offline with @Gankris96. @Gankris96 will post a PR for this. you can assign the issue to me @IanHoang - i have already raised the PR Can i get reviews on this PR please : https://github.com/opensearch-project/opensearch-benchmark/pull/781 Closing as this was resolved with #781
0.0.1-alpha
1e4bf3c7a5ad789fe8dcd0ae84d603e155a85752
["tests.worker_coordinator.runner_test.SleepTests::test_missing_parameter"]
["tests.aggregator_test::test_count_iterations_for_each_op", "tests.aggregator_test::test_accumulate_results", "tests.aggregator_test::test_test_execution_compatibility_check", "tests.aggregator_test::test_aggregate_json_by_key", "tests.aggregator_test::test_calculate_weighted_average", "tests.aggregator_test::test_cal...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
ushiboy__nmcli-39
ushiboy/nmcli
ebacd27b81b8e5d58e1ae8db5f89c159e04ad77f
diff --git a/README.md b/README.md index 8e7c14f..ac9c815 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ nmcli.connection.add( options: Optional[ConnectionOptions] = None, ifname: str = "*", name: str = None, - autoconnect: bool = False) -> None + autoconnect: bool = None) -> None ``` ...
python
diff --git a/tests/dummy/test_connection.py b/tests/dummy/test_connection.py index 545190d..1a2ecbc 100644 --- a/tests/dummy/test_connection.py +++ b/tests/dummy/test_connection.py @@ -28,6 +28,12 @@ def test_add(): c.add(conn_type, options, ifname, name, autoconnect) assert c.add_args[0] == (conn_type, optio...
2021-09-26T00:34:00+00:00Z
autoconnect parameter is not used Hi, we just noticed that autoconnect variable at https://github.com/ushiboy/nmcli/blob/ebacd27b81b8e5d58e1ae8db5f89c159e04ad77f/nmcli/_connection.py#L59 is not used (as our code was not working). As workround we are setting autoconnect trough options parameter. We wanted to let y...
Thanks @Hadatko for the follow-up on git. The workraround is indeed to set the under options ``` options = {..., ..., 'connection.autoconnect'="<yes/no>"} ``` This was not clear as the *add()* routine can make the user think the autoconnect defaults to False while it in fact defaults to True @Hadatko @qcabrol T...
0.0.1-alpha
30279344bf118304740be2e34d583c6e8ab71b11
["tests.dummy.test_connection::test_add", "tests.test_connection::test_add"]
["tests.data.test_connection::test_to_json", "tests.data.test_connection::test_parse", "tests.data.test_device::test_device_to_json", "tests.data.test_device::test_device_wifi_to_json", "tests.data.test_device::test_device_wifi_parse", "tests.data.test_device::test_device_wifi_parse_when_failed", "tests.data.test_gener...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
serge-sans-paille__beniget-64
serge-sans-paille/beniget
8e12b8143b27a3e1588ce027ae5094452019866f
diff --git a/beniget/beniget.py b/beniget/beniget.py index 65dd1ea..4faa64d 100644 --- a/beniget/beniget.py +++ b/beniget/beniget.py @@ -689,7 +689,7 @@ class DefUseChains(ast.NodeVisitor): def visit_FunctionDef(self, node, step=DeclarationStep): if step is DeclarationStep: dnode = self.chain...
python
diff --git a/tests/test_definitions.py b/tests/test_definitions.py index 15ea2d7..e4702c7 100644 --- a/tests/test_definitions.py +++ b/tests/test_definitions.py @@ -171,6 +171,26 @@ class TestGlobals(TestCase): code = "def foo(): global x; x = 1" self.checkGlobals(code, ["foo", "x"]) + def testGl...
2023-09-17T06:31:47+00:00Z
Bug with global keyword The following code seems to confuse beniget: ```python def func(): global GlobalClass class GlobalClass(object):... func() i = GlobalClass() ``` Creates warnings: ``` W: unbound identifier 'GlobalClass' at ./test.py:5:4 W: 'GlobalClass' is defined but not used at ./test.py:...
I’m wondering why the _globals stack is a stack? Since the globals all refers to the same scope; I don’t think it should be a stack but simply a dict of definitions. The other issue is that the function bodies are processed last, after body of modules. So we need to be able to store the not-bound-yet names until the en...
0.0.1-alpha
dbca2f88948adb19bfcdd5111059b25fc9af5cdf
["tests.test_definitions.TestGlobals::testGlobalThroughKeywordAndClassDef", "tests.test_definitions.TestGlobals::testGlobalThroughKeywordAndFunctionDef", "tests.test_definitions.TestGlobals::testGlobalThroughKeywordAndImport", "tests.test_definitions.TestGlobals::testGlobalThroughKeywordAndImportFrom"]
["tests.test_attributes.TestAttributes::test_no_attribute", "tests.test_attributes.TestAttributes::test_non_standard_self", "tests.test_attributes.TestAttributes::test_self_redefinition", "tests.test_attributes.TestAttributes::test_self_redefinition_in_args", "tests.test_attributes.TestAttributes::test_self_redefinitio...
[]
{ "key": "bsd-3-clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "spdx_id": "BSD-3-Clause", "url": "https://api.github.com/licenses/bsd-3-clause" }
pyprojectx__pyprojectx-89
pyprojectx/pyprojectx
5224474108043e0da952e22ee3d65f0e20914e12
diff --git a/src/pyprojectx/install_global.py b/src/pyprojectx/install_global.py index 3b15c7f..89cabef 100644 --- a/src/pyprojectx/install_global.py +++ b/src/pyprojectx/install_global.py @@ -13,8 +13,6 @@ from pyprojectx.wrapper.pw import ( RESET, ) -SCRIPT_EXTENSION = ".bat" if sys.platform.startswith("win")...
python
diff --git a/tests/integration/test_px.py b/tests/integration/test_px.py index 6e5b110..2c49263 100644 --- a/tests/integration/test_px.py +++ b/tests/integration/test_px.py @@ -3,8 +3,6 @@ import subprocess import sys from pathlib import Path -from pyprojectx.install_global import SCRIPT_EXTENSION - SCRIPT_PREFIX ...
2024-03-07T12:30:51+00:00Z
Running `./pw --install-px` through Git bash only install Windows script in `.pyprojectx` folder When you install `px` utility through the `./pw --install-px` command line using a Git Bash terminal on a Windows machine you end up only with Windows scripts: ![image](https://github.com/pyprojectx/pyprojectx/assets/25...
I released 2.1.1 All scripts are now being copied, but I didn't test it explicitly in windows. Please let me know if it works as expected now. This is working perfectly now, thank you very much for such a quick fix ![image](https://github.com/pyprojectx/pyprojectx/assets/2545380/eec385c2-3034-4f0b-baab-4d5754d314c...
0.0.1-alpha
7bdf2570db1e91908d0f0270d2a459d1392d9a27
["tests.integration.test_px::test_install_px"]
["tests.integration.test_pw::test_install_ctx", "tests.integration.test_pw::test_logs_and_stdout_with_quiet", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_with_verbose[combine-pw-scripts]", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_w...
["tests.unit.test_cli::test_run_tool", "tests.unit.test_cli::test_run_tool_with_args", "tests.unit.test_cli::test_run_alias_with_ctx", "tests.unit.test_cli::test_run_alias_with_ctx_with_args", "tests.unit.test_cli::test_run_explicit_alias_with_ctx_with_arg", "tests.unit.test_cli::test_combined_alias_with_arg", "tests.u...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
octodns__octodns-1196
octodns/octodns
131024e4c2b42e71654919f592bce47ff743b105
diff --git a/CHANGELOG.md b/CHANGELOG.md index 53bb57e..82a298d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ * MetaProcessor.include_extra to add support for arbitrary extra values to be set on the meta record. * Correctly handled quoted svcparams when parsing SVCB/HTTPS rdata text +* Fix handling ...
python
diff --git a/tests/test_octodns_record_chunked.py b/tests/test_octodns_record_chunked.py index 30592cc..4d7bbc0 100644 --- a/tests/test_octodns_record_chunked.py +++ b/tests/test_octodns_record_chunked.py @@ -4,8 +4,9 @@ from unittest import TestCase -from octodns.record.chunked import _ChunkedValue +from octodns....
2024-09-06T01:38:47+00:00Z
"Value should be enclosed in quotation marks" when specific record pattern The octodns-sync --doit (to Route53) fails with the following config: ```yaml --- '': ttl: 600 type: TXT values: - v=DMARC1\; p=quarantine\; rua=mailto:xxxxxxxxx@xxxxxxxxxxxxxxxxxxx,mailto:xxxxxxxxxx@xxxxxxxxxxxxxxxxxxxxxxxxx...
If I'm understanding correctly I believe this is a bug splitting as you point out and not a problem with quoting. Route53 uses chunked_value https://github.com/octodns/octodns-route53/blob/53342d3e53a78718e253ed87f6ec2c162f85e8fb/octodns_route53/provider.py#L301 so points to the problem being in octoDNS core's chunk...
0.0.1-alpha
abb8eb4808f356feee60b0c2e245648aa347b127
["tests.test_octodns_record_chunked.TestChunkedValue::test_splitting"]
["tests.test_octodns_equality.TestEqualityTupleMixin::test_basics", "tests.test_octodns_equality.TestEqualityTupleMixin::test_not_implemented", "tests.test_octodns_idna.TestIdna::test_case_insensitivity", "tests.test_octodns_idna.TestIdna::test_exception_translation", "tests.test_octodns_idna.TestIdna::test_noops", "te...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
prometheus__client_python-1131
prometheus/client_python
47d2b416d75f5569863e2bb08a15b58218563814
diff --git a/prometheus_client/parser.py b/prometheus_client/parser.py index ec71b2a..ceca273 100644 --- a/prometheus_client/parser.py +++ b/prometheus_client/parser.py @@ -186,6 +186,12 @@ def _split_quoted(text, separator, maxsplit=0): tokens[-1] = text[x:] x = len(text) continu...
python
diff --git a/tests/test_parser.py b/tests/test_parser.py index c8b17fa..49c4dc8 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -121,7 +121,6 @@ a 1 """) self.assertEqualMetrics([CounterMetricFamily("a", "help", value=1)], list(families)) - def test_comments_parts_are_not_validated_agai...
2025-09-11T19:45:57+00:00Z
Prometheus parser 0.22.0 raises `ValueError` when parsing HELP, INFO comments with double spaces ## Issue Starting with version 0.22.0, comment lines that are `INFO`, `HELP` will fail to parse if they contain double spaces between parts. ### Example: We have a particular service which exposes metrics in this format...
Thank you for the report, I have opened up a fix in https://github.com/prometheus/client_python/pull/1134 and will cut a patch release after it is merged.
0.0.1-alpha
b3fbbca891a6c6d07b83a3680919956a3c3ab523
["tests.test_parser.TestParse::test_extra_whitespace"]
["tests.openmetrics.test_exposition.TestGenerateText::test_counter", "tests.openmetrics.test_exposition.TestGenerateText::test_counter_exemplar", "tests.openmetrics.test_exposition.TestGenerateText::test_counter_non_total_exemplar", "tests.openmetrics.test_exposition.TestGenerateText::test_counter_total", "tests.openme...
["tests.test_parser::test_benchmark_text_string_to_metric_families"]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
opensearch-project__opensearch-benchmark-548
opensearch-project/opensearch-benchmark
e8745b4195cdef4568958d1e054a54e4412745f3
diff --git a/osbenchmark/builder/utils/template_renderer.py b/osbenchmark/builder/utils/template_renderer.py index ee4821a..722758d 100644 --- a/osbenchmark/builder/utils/template_renderer.py +++ b/osbenchmark/builder/utils/template_renderer.py @@ -3,6 +3,7 @@ from jinja2 import select_autoescape from osbenchmark.ex...
python
diff --git a/tests/builder/utils/template_renderer_test.py b/tests/builder/utils/template_renderer_test.py index 566b7f2..024bfbf 100644 --- a/tests/builder/utils/template_renderer_test.py +++ b/tests/builder/utils/template_renderer_test.py @@ -22,6 +22,18 @@ class TemplateRendererTest(TestCase): self.templa...
2024-07-29T18:32:59+00:00Z
Enhance Jinja template support to enable workloads to be customized by OpenSearch version ### Is your feature request related to a problem? Please describe Customizing workloads to behave differently as new OpenSearch features become available is not straightforward. For instance, [this test](https://github.com/open...
Closing with #599
0.0.1-alpha
f12c9c0240959d3781d974cfde3fcd62ba797571
["tests.builder.utils.template_renderer_test.TemplateRendererTest::test_version_between_filter"]
["tests.builder.configs.listers.plugin_config_instance_lister_test.PluginConfigInstanceListerTest::test_list_plugin_config_instances", "tests.builder.configs.utils.config_path_resolver_test.ConfigPathResolverTest::test_provision_config_path_defined", "tests.builder.configs.utils.config_path_resolver_test.ConfigPathReso...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
maxfischer2781__asyncstdlib-176
maxfischer2781/asyncstdlib
80af8797e8ea8ce38e640c9c600442af24029596
diff --git a/asyncstdlib/itertools.py b/asyncstdlib/itertools.py index 006da37..febd591 100644 --- a/asyncstdlib/itertools.py +++ b/asyncstdlib/itertools.py @@ -24,7 +24,6 @@ from ._utility import public_module from ._core import ( ScopedIter, awaitify as _awaitify, - Sentinel, borrow as _borrow, ) ...
python
diff --git a/unittests/test_itertools.py b/unittests/test_itertools.py index 5f88e96..82e4e7a 100644 --- a/unittests/test_itertools.py +++ b/unittests/test_itertools.py @@ -34,6 +34,7 @@ async def test_accumulate(): @sync async def test_accumulate_default(): + """Test the default function of accumulate""" f...
2025-08-28T15:22:08+00:00Z
[Bug]: Inconsistent `initial=None` Parameter Handling in asyncstdlib.accumulate ### What happened? ## Issue Description `asyncstdlib.accumulate` handles the `initial=None` parameter inconsistently compared to `itertools.accumulate`. When `initial=None` is explicitly passed, the two libraries produce different result...
0.0.1-alpha
d348c07b6735fd228c85c359ff938cf2101cb07a
["unittests.test_itertools::test_accumulate_initial"]
["unittests.test_asynctools::test_scoped_iter_iterclose", "unittests.test_asynctools::test_nested_lifetime", "unittests.test_asynctools::test_nested_lifetime_closed_outer", "unittests.test_asynctools::test_borrow_explicitly", "unittests.test_asynctools::test_borrow_iterable", "unittests.test_asynctools::test_borrow_met...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
matthewwithanm__python-markdownify-126
matthewwithanm/python-markdownify
c1672aee444d4fa8c76a7be37b0746ce769d2631
diff --git a/markdownify/__init__.py b/markdownify/__init__.py index eaa6ded..6a983d9 100644 --- a/markdownify/__init__.py +++ b/markdownify/__init__.py @@ -383,13 +383,13 @@ class MarkdownConverter(object): def convert_td(self, el, text, convert_as_inline): colspan = 1 - if 'colspan' in el.attrs...
python
diff --git a/tests/test_tables.py b/tests/test_tables.py index 9120c29..594e5bf 100644 --- a/tests/test_tables.py +++ b/tests/test_tables.py @@ -215,7 +215,7 @@ table_with_colspan = """<table> <th>Age</th> </tr> <tr> - <td>Jill</td> + <td colspan="1">Jill</td> <td>Smith</td> ...
2024-06-23T11:17:20+00:00Z
ValueError: invalid literal for int() with base 10: 'undefined' (table colspan) For example ```html The euro-are economy will expand more quickly than previously thought this year as the bloc’s biggest member exits more than a year of near-stagnation, a Bloomberg poll of analysts showed.<figure><img alt="Economi...
Quick fix ```py from markdownify import MarkdownConverter class ModifiedMarkdownConverter(MarkdownConverter): def convert_td(self, el, text, convert_as_inline): colspan = 1 if "colspan" in el.attrs: try: colspan = int(el["colspan"]) except Value...
0.0.1-alpha
2ec33384de85d0906b4b40a59f1a3650846150cb
["tests.test_tables::test_table"]
["tests.test_advanced::test_chomp", "tests.test_advanced::test_nested", "tests.test_advanced::test_ignore_comments", "tests.test_advanced::test_ignore_comments_with_other_tags", "tests.test_advanced::test_code_with_tricky_content", "tests.test_advanced::test_special_tags", "tests.test_args::test_strip", "tests.test_arg...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sepandhaghighi__pycm-313
sepandhaghighi/pycm
8c9d763cb2e28ea50a4bf3619c98a2688b56b499
diff --git a/pycm/pycm_overall_func.py b/pycm/pycm_overall_func.py index 2d07606..74f68f4 100644 --- a/pycm/pycm_overall_func.py +++ b/pycm/pycm_overall_func.py @@ -20,10 +20,13 @@ def alpha_calc(RACC, ACC, POP): :type POP : int :return: unweighted alpha as float """ - epsi = 1/(2*POP) - pa = (1-ep...
python
diff --git a/Test/function_test.py b/Test/function_test.py index b308d1f..e7a7270 100644 --- a/Test/function_test.py +++ b/Test/function_test.py @@ -88,70 +88,71 @@ Example : online_help("J") or online_help(2) 57-Kappa No Prevalence 58-Kappa Standard Error 59-Kappa Unbiased -60-LS -61-Lambda A -62-Lambda B -63-MCC -...
2020-05-18T10:28:49+00:00Z
Add Krippendorff's alpha #### Description ![image](https://user-images.githubusercontent.com/7515099/82192483-4e8f7000-9909-11ea-891c-4863a7b31b0f.png) ![image](https://user-images.githubusercontent.com/7515099/82192569-69fa7b00-9909-11ea-8881-8e04e8e387b7.png) ![image](https://user-images.githubusercontent.com...
0.0.1-alpha
fe8807d6105f371103df723f7ff35f0155e409d7
["Test.overall_test::overall_test"]
["Test.compare_test::compare_test", "Test.error_test::error_test", "Test.output_test::output_test", "Test.warning_test::warning_test", "pycm.pycm_obj::pycm.pycm_obj.ConfusionMatrix"]
["Test.function_test::function_test", "Test.verified_test::verified_test", "pycm.pycm_compare::pycm.pycm_compare.Compare"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
more-itertools__more-itertools-388
more-itertools/more-itertools
533ab09709b755ebeb2c51e0bfcd99c360cf2ab1
diff --git a/more_itertools/more.py b/more_itertools/more.py index 173f505..e1d713f 100755 --- a/more_itertools/more.py +++ b/more_itertools/more.py @@ -545,7 +545,7 @@ def one(iterable, too_short=None, too_long=None): return first_value -def distinct_permutations(iterable): +def distinct_permutations(iterable...
python
diff --git a/tests/test_more.py b/tests/test_more.py index 11eb5d7..a4cb381 100644 --- a/tests/test_more.py +++ b/tests/test_more.py @@ -526,6 +526,24 @@ class DistinctPermutationsTests(TestCase): ref_output = sorted(set(permutations(iterable))) self.assertEqual(test_output, ref_output) + def tes...
2020-03-06T01:54:17+00:00Z
proposals on distinct_permutations Standard python's permutation has signature `itertools.permutations(iterable, r=None)` where **r** means length of permutations. distinct_permutations has no this option. Is it drawback? Yes. A few days ago I felt it on my own. There is a trick to bypass this: to combine distinct...
Thanks for the note. Is your method any faster than this? ```python from more_itertools import ilen, unique_justseen iterable = 'mississippi' r = 9 ilen(unique_justseen(p[:r] for p in distinct_permutations(iterable))) ``` It looks like you're building things up and then chopping them off - can we just do ...
0.0.1-alpha
1f4576d3b09aa6c666f65185a5e00c4d6e8af8f8
["tests.test_more.DistinctPermutationsTests::test_r"]
["tests.test_more.CollateTests::test_alias", "tests.test_more.CollateTests::test_default", "tests.test_more.CollateTests::test_empty", "tests.test_more.CollateTests::test_key", "tests.test_more.CollateTests::test_one", "tests.test_more.CollateTests::test_reverse", "tests.test_more.ChunkedTests::test_even", "tests.test_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
mkorpela__overrides-83
mkorpela/overrides
de4f51a41b25b16682083eecaf92d5eab678598c
diff --git a/overrides/signature.py b/overrides/signature.py index c00f828..b36a0cd 100644 --- a/overrides/signature.py +++ b/overrides/signature.py @@ -281,12 +281,9 @@ def ensure_no_extra_args_in_sub( def ensure_return_type_compatibility( super_type_hints: Dict, sub_type_hints: Dict, method_name: str ): - i...
python
2022-08-04T17:53:12+00:00Z
`sub_return` is required if `super_return` is specified Currently, subclasses are required to have a return type-hint if the superclass defines one. ```python import overrides class SuperClass(overrides.EnforceOverrides): def foo(self) -> int: return 1 class SubClass(SuperClass): @override...
@mkorpela My bad I created a commit with the intention of creating a PR, but it automatically merged it. Can you back out my commit and then create a new PR with it (if you don't like the change)? Sorry about that. https://github.com/mkorpela/overrides/commit/1aede9d4b58010d16ce850689f223713c0be5937 It should be `or...
0.0.1-alpha
78191f59354d79aefc72c9b14296a202ec66ffc2
["tests.test_enforce__py38.EnforceTests::test_typevar_in_signature"]
["tests.test_enforce__py38.EnforceTests::test_allowed_extra_args_in_overrider", "tests.test_enforce__py38.EnforceTests::test_enforcing_when_all_ok", "tests.test_enforce__py38.EnforceTests::test_enforcing_when_classmethod_overriden", "tests.test_enforce__py38.EnforceTests::test_enforcing_when_finality_broken", "tests.te...
["tests.test_decorator_params::test_my_func", "tests.test_enforce__py38.EnforceTests::test_enforcing_when_incompatible", "tests.test_enforce__py38.EnforceTests::test_nested_typevar_in_signature", "tests.test_named_and_positional__py38::test_multiple_inheritance"]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
mdowds__python-mock-firestore-31
mdowds/python-mock-firestore
c9491d08047ce3d73a47f3655786f9c8443cab5c
diff --git a/mockfirestore/query.py b/mockfirestore/query.py index a17c12f..354df4b 100644 --- a/mockfirestore/query.py +++ b/mockfirestore/query.py @@ -103,7 +103,7 @@ class Query: index = idx else: index = None - if index: + if index is ...
python
diff --git a/tests/test_collection_reference.py b/tests/test_collection_reference.py index 0eeadaf..5507811 100644 --- a/tests/test_collection_reference.py +++ b/tests/test_collection_reference.py @@ -232,7 +232,7 @@ class TestCollectionReference(TestCase): docs = list(fs.collection('foo').start_at({'id': 2})....
2020-10-24T13:06:48+00:00Z
Query._apply_cursor is not working for first element Hello, Got problem with `start_after` and after some digging I found that `Query._apply_cursor` is not working properly when first doc is passed. Let's take a look at problematic fragment: ``` for idx, doc in enumerate(doc_snapshot): ind...
0.0.1-alpha
2e1ebb817ba98a5e34700940bdc285bf4c318662
["tests.test_collection_reference.TestCollectionReference::test_collection_start_after"]
["tests.test_collection_reference.TestCollectionReference::test_collection_addDocument", "tests.test_collection_reference.TestCollectionReference::test_collection_end_at", "tests.test_collection_reference.TestCollectionReference::test_collection_end_at_order_by", "tests.test_collection_reference.TestCollectionReference...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
redcanaryco__surveyor-101
redcanaryco/surveyor
7fedd92514fe640c686f40e3cf12fbd0274d6316
diff --git a/products/cortex_xdr.py b/products/cortex_xdr.py index 662cc85..b222968 100644 --- a/products/cortex_xdr.py +++ b/products/cortex_xdr.py @@ -55,6 +55,7 @@ class CortexXDR(Product): _session: requests.Session _queries: dict[Tag, list[Query]] _last_request: float + _limit: int = 1000 # Max i...
python
diff --git a/tests/test_microsoft_defender_for_endpoints.py b/tests/test_microsoft_defender_for_endpoints.py index 440577c..965c7c4 100644 --- a/tests/test_microsoft_defender_for_endpoints.py +++ b/tests/test_microsoft_defender_for_endpoints.py @@ -8,6 +8,31 @@ sys.path.append(os.getcwd()) from products.microsoft_defe...
2023-07-10T20:57:36+00:00Z
Requesting automatic termination of search after x time or y results **Which category is the feature part of?** - [ ] Definition File - [X] Code Feature - [ ] Other (please explain) **Which product is the feature part of?** - [X] All products - [ ] Carbon Black Response - [ ] Threat Hunter - [ ] Defender fo...
0.0.1-alpha
0fcb4dccdf2314defb8e89dbfc8cd4a4cac57070
["tests.test_surveyor::test_no_argument_provided"]
["tests.test_microsoft_defender_for_endpoints::test_build_query_with_supported_fields", "tests.test_sentinel_one::test_build_query_with_supported_field_dv", "tests.test_sentinel_one::test_build_query_time_filter_min", "tests.test_sentinel_one::test_build_query_time_filter_day", "tests.test_sentinel_one::test_build_quer...
["tests.test_microsoft_defender_for_endpoints::test_init_lower_limit_option", "tests.test_microsoft_defender_for_endpoints::test_init_upper_limit_option", "tests.test_microsoft_defender_for_endpoints::test_build_query_with_unsupported_field", "tests.test_microsoft_defender_for_endpoints::test_process_search_limit_optio...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
santoshphilip__eppy-405
santoshphilip/eppy
73ec76870089da247e3c0dca16e1b7fe44ee65ce
diff --git a/eppy/modeleditor.py b/eppy/modeleditor.py index 3c2790e..69b84e6 100644 --- a/eppy/modeleditor.py +++ b/eppy/modeleditor.py @@ -498,6 +498,29 @@ def zonevolume(idf, zonename): def refname2key(idf, refname): """return all keys that have the reference name""" return [item[0] for item in getallobjl...
python
diff --git a/tests/test_modeleditor.py b/tests/test_modeleditor.py index 7b1e8e0..665a22b 100644 --- a/tests/test_modeleditor.py +++ b/tests/test_modeleditor.py @@ -1,4 +1,4 @@ -# Copyright (c) 2012 Santosh Philip +# Copyright (c) 2012, 2022 Santosh Philip # Copyright (c) 2021 Jeremy Lerond # ========================...
2022-11-30T18:00:40+00:00Z
write idf.copyidf(source_idf) write a function to copy an entire idf This is useful in tests
there was a question in unmethours.com about this. update the response to that question The question from unmethours.com is here https://unmethours.com/question/52746/built-in-method-to-merge-idfs-with-eppy/ it has a link to the issue #328 issue #328 can be resolved by doing idf.copyidfs(idf1, idf2, idf3 ...) ...
0.0.1-alpha
e7aa05c9d29b0086e9671652aec7edf4e10af551
["tests.test_modeleditor::test_copyidf"]
["tests.EPlusInterfaceFunctions_tests.test_iddgroups::test_idd2groups", "tests.EPlusInterfaceFunctions_tests.test_iddgroups::test_idd2group", "tests.EPlusInterfaceFunctions_tests.test_iddgroups::test_iddtxt2grouplist", "tests.EPlusInterfaceFunctions_tests.test_iddgroups::test_idd2grouplist", "tests.EPlusInterfaceFuncti...
["tests.test_parse_error::test_capture_real_error"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
physiopy__phys2bids-184
physiopy/phys2bids
a749bde335f2dfa0aef50522fcf6d163b5aae89c
diff --git a/phys2bids/phys2bids.py b/phys2bids/phys2bids.py index 5bad26b..4bf09d1 100644 --- a/phys2bids/phys2bids.py +++ b/phys2bids/phys2bids.py @@ -347,7 +347,7 @@ def phys2bids(filename, info=False, indir='.', outdir='.', heur_file=None, outfile = f'{outfile}_{uniq_freq}' LGR.info(f'Ex...
python
diff --git a/phys2bids/tests/test_physio_obj.py b/phys2bids/tests/test_physio_obj.py index 488b374..f5cabaf 100644 --- a/phys2bids/tests/test_physio_obj.py +++ b/phys2bids/tests/test_physio_obj.py @@ -93,7 +93,7 @@ def test_BlueprintOutput(): # Tests init_from_blueprint blueprint_out = po.BlueprintOutput.init...
2020-03-27T14:13:22+00:00Z
Output files are not BIDS compliant <!--- Provide a general summary of the issue in the Title above --> ## Expected Behavior <!--- NECESSARY --> <!--- Describe what one would expect from the buggy code --> Following [BIDS 1.2.2](https://bids-specification.readthedocs.io/en/v1.2.2/), the `.tsv.gz` files should ha...
Totally agree that the output should be made BIDS-compliant&mdash;that's literally the whole point of `phys2bids`! I think I agree in-principle that the second solution is the ideal approach, but for the moment (while we figure out the logistics of that), can we quickly implement the first solutiuon just so people ...
0.0.1-alpha
07bec6aa41d2cc1a2da4383b8dcf112bf9775734
["phys2bids.tests.test_physio_obj::test_BlueprintOutput"]
["phys2bids.tests.test_acq::test_populate_phys_input", "phys2bids.tests.test_integration::test_integration_tutorial", "phys2bids.tests.test_integration::test_integration_acq", "phys2bids.tests.test_integration::test_integration_multifreq", "phys2bids.tests.test_integration::test_integration_heuristic", "phys2bids.tests...
["phys2bids.tests.test_integration::test_logger", "phys2bids.tests.test_integration::test_integration_info", "phys2bids.tests.test_txt::test_process_labchart_notime"]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
python-validators__validators-296
python-validators/validators
71b40bd54ecf88de792b15acc831801903cc6bc0
diff --git a/src/validators/url.py b/src/validators/url.py index 16698b1..00df3d6 100644 --- a/src/validators/url.py +++ b/src/validators/url.py @@ -3,7 +3,7 @@ # standard from functools import lru_cache import re -from urllib.parse import unquote, urlsplit +from urllib.parse import parse_qs, unquote, urlsplit # ...
python
diff --git a/tests/test_url.py b/tests/test_url.py index 62332f5..558d50c 100644 --- a/tests/test_url.py +++ b/tests/test_url.py @@ -19,7 +19,6 @@ from validators import ValidationError, url "http://foo.com/blah_blah_(wikipedia)", "http://foo.com/blah_blah_(wikipedia)_(again)", "http://www.ex...
2023-09-17T08:34:44+00:00Z
Valid URLs failing validation - query and fragment parts Hi! I have encountered a few weird urls that are not passing validation even though they are functional. The issue is with the validation of the query and fragment parts of the URL. Furthermore, the query and fragment validations in `url.py` do not confor...
Hello, i just was in the mid of creating a bug report as well (thanks for raising this :+1:) for previously valid URLs which are now reported as invalid after the update from 0.20.0 to 0.21.2 (still seen also after the update to 0.22.0 to include the fix from #289 for #288). These are the cases we're seeing as re...
0.0.1-alpha
960b48b8a548fa5b104f1999ef0c18923a232c52
["tests.test_url::test_returns_true_on_valid_url[https://www.foo.com/bar#/baz/test]", "tests.test_url::test_returns_failed_validation_on_invalid_url[https://www.example.com/foo/?bar=baz&inga=42&quux]"]
["tests.i18n.test_es::test_returns_true_on_valid_cif[B25162520]", "tests.i18n.test_es::test_returns_true_on_valid_cif[U4839822F]", "tests.i18n.test_es::test_returns_true_on_valid_cif[B96817697]", "tests.i18n.test_es::test_returns_true_on_valid_cif[P7067074J]", "tests.i18n.test_es::test_returns_true_on_valid_cif[Q789970...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sciunto-org__python-bibtexparser-475
sciunto-org/python-bibtexparser
09f8bc102704bf7f3b1371b3a9734dfa4f445ba5
diff --git a/bibtexparser/middlewares/names.py b/bibtexparser/middlewares/names.py index d067222..415beea 100644 --- a/bibtexparser/middlewares/names.py +++ b/bibtexparser/middlewares/names.py @@ -600,8 +600,8 @@ def split_multiple_persons_names(names): step = FIND_A possible_end = pos...
python
diff --git a/tests/middleware_tests/test_names.py b/tests/middleware_tests/test_names.py index 5da4d81..fc99d50 100644 --- a/tests/middleware_tests/test_names.py +++ b/tests/middleware_tests/test_names.py @@ -75,6 +75,8 @@ from tests.middleware_tests.middleware_test_util import assert_nonfield_entry_at ("Harry...
2024-03-19T19:32:42+00:00Z
split_multiple_persons_names() bug `split_multiple_persons_names()` doesn't give the correct splitting if there's a one-character middle name, e.g., `Doe, John A`. MWE: ```python from bibtexparser.middlewares.names import split_multiple_persons_names # okay: string = "Doe, John and Doe, Jane" print(split_m...
Thanks for reporting! This is indeed a bug. Should be fixed in https://github.com/sciunto-org/python-bibtexparser/pull/476
0.0.1-alpha
cf0079daccbe5c1da0721dcbb6b863098d70c28d
["tests.middleware_tests.test_names::test_split_coauthors_consistent_with_bibtex[Doe, John A and Doe, Jane-expected38]", "tests.middleware_tests.test_names::test_split_coauthors_consistent_with_bibtex[Doe, John AN and Doe, Jane-expected39]"]
["tests.middleware_tests.test_block_middleware::test_successful_transform[middleware0-expected0]", "tests.middleware_tests.test_block_middleware::test_successful_transform[middleware1-expected1]", "tests.middleware_tests.test_block_middleware::test_successful_transform[middleware2-expected2]", "tests.middleware_tests.t...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pylessard__python-can-isotp-90
pylessard/python-can-isotp
54fac743f3825d2315f2215b74501851160cc15c
diff --git a/doc/source/isotp/implementation.rst b/doc/source/isotp/implementation.rst index 2abad1c..182fd4c 100755 --- a/doc/source/isotp/implementation.rst +++ b/doc/source/isotp/implementation.rst @@ -358,6 +358,7 @@ All errors inherit :class:`isotp.IsoTpError<isotp.IsoTpError>` which itself inhe .. autoclass:: is...
python
diff --git a/test/test_transport_layer_logic.py b/test/test_transport_layer_logic.py index 36068b5..c2a0403 100755 --- a/test/test_transport_layer_logic.py +++ b/test/test_transport_layer_logic.py @@ -840,9 +840,11 @@ class TestTransportLayerLogicNonBlockingRxfn(TransportLayerBaseTest): self.stack.process() ...
2023-12-30T00:49:43+00:00Z
Replacing the bytearray data handling with Generator As CAN-FD supports up to 4GB of data, the code should not convert the data to bytearray. Instead the data should be handled as an iterator of bytes to let the user use a byte generator.
CAN-FD supports frames up to 64 bytes. You probably are referring to the ISO-TP frame size as defined since the 2016 version where data length is 32 bits (instead of 12 bits as before). I understand the request. Do you have a real use-case for it? IF this gets implemented, it would need to be a pair of generator ...
0.0.1-alpha
47b0cc9a2c82ad7133a7e6ca776010348b599bbe
["test.test_transport_layer_logic.TestTransportLayerLogicNonBlockingRxfn::test_generator_size_too_big_error_multiframe", "test.test_transport_layer_logic.TestTransportLayerLogicNonBlockingRxfn::test_generator_size_too_big_error_single_frame", "test.test_transport_layer_logic.TestTransportLayerLogicNonBlockingRxfn::test...
["test.test_addressing_modes.TestAddressingMode::test_11bits_extended", "test.test_addressing_modes.TestAddressingMode::test_11bits_extended_through_layer", "test.test_addressing_modes.TestAddressingMode::test_11bits_mixed", "test.test_addressing_modes.TestAddressingMode::test_11bits_mixed_through_layer", "test.test_ad...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
williamgilpin__pypdb-46
williamgilpin/pypdb
6bef095fa776173a359e6c20ea766db4b12cc3c4
diff --git a/pypdb/clients/search/search_client.py b/pypdb/clients/search/search_client.py index 1fc25cd..35807ae 100644 --- a/pypdb/clients/search/search_client.py +++ b/pypdb/clients/search/search_client.py @@ -283,6 +283,7 @@ class SearchService(Enum): """Which type of field is being searched. Auto-infer...
python
2021-11-01T19:04:55+00:00Z
Cannot perform the first query from the jupyter notebook Hello, I am trying to run the demos jupyter notebook and I get an error when running the second cell: `found_pdbs = Query("ribosome").search()` `print(found_pdbs[:10])` I get: ``` ------------------------------------------------------------------------...
Hi @YannRoussel thank you for this report! I will check this today and get back to you. This looks like a breaking change in the RCSB API. For now, I would recommend seeing if the [raw JSON search page](https://search.rcsb.org/#building-search-request) can get you the results you need. If you do manage to get this ...
0.0.1-alpha
9a501d4650ddd9b3ac0a10ff28b83642fbe2ef68
["pypdb.clients.search.search_client_test.TestHTTPRequests::test_range_operator_with_entry_return"]
["pypdb.clients.fasta.fasta_client_test.TestFastaLogic::test_get_fasta_file", "pypdb.clients.fasta.fasta_client_test.TestFastaLogic::test_parse_fasta_file", "pypdb.clients.pdb.pdb_client_test.TestPDBFileDownloading::test_compressed_cif_file", "pypdb.clients.pdb.pdb_client_test.TestPDBFileDownloading::test_compressed_st...
["tests.test_pypdb.TestSearchFunctions::test_querying"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
uber__uber-poet-13
uber/uber-poet
8bf42806d4baa2b2543cbe5277da2f1506330aee
diff --git a/README.md b/README.md index cf0d0ee..a5e7866 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/2983/badge)](https://bestpractices.coreinfrastructure.org/projects/2983) [![Build Status](https://travis-ci.com/uber-common/uber...
python
diff --git a/tests/fixtures/loc_mappings.json b/tests/fixtures/loc_mappings.json index 2e49c4a..2423b33 100644 --- a/tests/fixtures/loc_mappings.json +++ b/tests/fixtures/loc_mappings.json @@ -1,5 +1,5 @@ { - "DotReaderLib0": 180, + "DotReaderLib0": { "loc": 180, "language": "Objective-C" }, "DotReaderLib1": 260,...
2021-06-09T02:44:25+00:00Z
Make Objective-C modules part of app gen To better simulate a mixed app
2 years later, objective-c is shrinking in most codebases, not sure if it's really worth it.
0.0.1-alpha
bd7902d07b87b03ca9244ef8d46ee37b67a77395
["tests.test_locreader.TestLocReader::test_language_for_module"]
["tests.test_locreader.TestLocReader::test_loc_for_module", "tests.test_locreader.TestLocReader::test_throws_exception_without_read"]
["tests.test_dotreader.TestDotReader::test_read_integration", "unittest.loader._FailedTest.tests::test_bazel_integration", "unittest.loader._FailedTest.tests::test_buck_integration", "unittest.loader._FailedTest.tests::test_cp_integration", "unittest.loader._FailedTest.tests::test_loccalc", "unittest.loader._FailedTest...
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
tkem__cachetools-176
tkem/cachetools
1fd2fdee4b1794724403990e2c1b95f093061fc6
diff --git a/docs/index.rst b/docs/index.rst index d6ea285..8d83094 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -286,26 +286,18 @@ often called with the same arguments: cache object. The underlying wrapped function will be called outside the `with` statement, and must be thread-safe by itself. ...
python
diff --git a/tests/test_cached.py b/tests/test_cached.py new file mode 100644 index 0000000..046cd2c --- /dev/null +++ b/tests/test_cached.py @@ -0,0 +1,175 @@ +import contextlib +import unittest + +import cachetools +import cachetools.keys + + +class DecoratorTestMixin: + def cache(self, minsize): + raise No...
2022-05-15T20:40:22+00:00Z
[Feature] expose the cache, key and lock arguments of @cachetools.cached as attributes on the decorated function This feature is more just for convenience, so I understand if its far down in the list of desirable features. But I think it would allow users to write cleaner code when they need to interact with the under...
IMHO, if you're trying to do something more complex so you really need access to these, you should properly _not_ use the decorators at all, but better use the cache classes directly. The decorators are there for the most simple use cases, and the fact that you _can_ do tricky stuff with them doesn't necessarily mean y...
0.0.1-alpha
0ace534060d80a446777a31998eab8737227543a
["tests.test_cached.CacheWrapperTest::test_decorator_attributes", "tests.test_cached.CacheWrapperTest::test_decorator_attributes_lock", "tests.test_cached.DictWrapperTest::test_decorator_attributes", "tests.test_cached.DictWrapperTest::test_decorator_attributes_lock", "tests.test_cachedmethod.CachedMethodTest::test_att...
["tests.test_cache.CacheTest::test_defaults", "tests.test_cache.CacheTest::test_delete", "tests.test_cache.CacheTest::test_getsizeof_param", "tests.test_cache.CacheTest::test_getsizeof_subclass", "tests.test_cache.CacheTest::test_insert", "tests.test_cache.CacheTest::test_missing", "tests.test_cache.CacheTest::test_mis...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
supabase__postgrest-py-560
supabase/postgrest-py
9e7cca4c6929ab37067a2737760dcbf022154c65
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a070916..1fb6c4f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,9 +33,11 @@ jobs: run: make run_tests - name: Upload coverage to Coveralls + if: ${{ matrix.python-version }} == "3.12" uses: cove...
python
diff --git a/tests/_async/test_filter_request_builder.py b/tests/_async/test_filter_request_builder.py index 624e244..5a0b837 100644 --- a/tests/_async/test_filter_request_builder.py +++ b/tests/_async/test_filter_request_builder.py @@ -20,7 +20,7 @@ def test_constructor(filter_request_builder: AsyncFilterRequestBuilde...
2025-01-24T21:28:36+00:00Z
Client is sending a body in a GET request # Bug report - [x] I confirm this is a bug with Supabase, not with my own application. - [x] I confirm I have searched the [Docs](https://docs.supabase.com), GitHub [Discussions](https://github.com/supabase/supabase/discussions), and [Discord](https://discord.supabase.com). ...
What's the exact problem this is causing with the proxies/reverse proxies? The request is getting refused (reverse proxy returns 400) Version **2.12.0** of the `supabase` library has been released with the fix for this. https://github.com/supabase/supabase-py/releases/tag/v2.12.0 I can confirm it's working with the pr...
0.0.1-alpha
6947a5391b1b2178c4d4a2f13a9592e996f4fa6e
["tests._async.test_filter_request_builder::test_constructor", "tests._async.test_query_request_builder::test_constructor", "tests._async.test_request_builder.TestSelect::test_select", "tests._async.test_request_builder.TestSelect::test_select_with_count", "tests._async.test_request_builder.TestSelect::test_select_with...
["tests._async.test_client.TestConstructor::test_simple", "tests._async.test_client.TestConstructor::test_custom_headers", "tests._async.test_client.TestAuth::test_auth_token", "tests._async.test_client.TestAuth::test_auth_basic", "tests._async.test_client::test_schema", "tests._async.test_client::test_params_purged_af...
["tests._async.test_filter_request_builder_integration::test_multivalued_param", "tests._async.test_filter_request_builder_integration::test_match", "tests._async.test_filter_request_builder_integration::test_equals", "tests._async.test_filter_request_builder_integration::test_not_equal", "tests._async.test_filter_requ...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pygfx__pygfx-120
pygfx/pygfx
a27bc28f023960d945733c45c9c9a87c2ba1dcad
diff --git a/examples/mesh_slice.py b/examples/mesh_slice.py index b75914a..5d893da 100644 --- a/examples/mesh_slice.py +++ b/examples/mesh_slice.py @@ -22,7 +22,6 @@ obj2 = gfx.Mesh(geometry, material2) scene.add(obj1) scene.add(obj2) - camera = gfx.PerspectiveCamera(70, 2) camera.position.z = 4 diff --git a/e...
python
diff --git a/tests/objects/test_materials.py b/tests/objects/test_materials.py new file mode 100644 index 0000000..e90914a --- /dev/null +++ b/tests/objects/test_materials.py @@ -0,0 +1,30 @@ +import pygfx + + +# Collect materials +material_classes = [] +for name in dir(pygfx.materials): + val = getattr(pygfx.materi...
2021-09-08T20:07:23+00:00Z
The meshslice does not honor depth test The mesh slice visual draws itself behind other objects, so it looks like the depth is not set correctly, or the test is bypassed. This is in current main, so not due to changes in #117.
0.0.1-alpha
7783955d148d107c99742e1ad1f5569bc24b826c
["tests.objects.test_materials::test_uniform_types_uniform_type"]
["tests.cameras.test_cameras::test_otho_camera_near_far", "tests.cameras.test_cameras::test_perspective_camera_near_far", "tests.linalg.test_euler::test_instancing", "tests.linalg.test_euler::test_x", "tests.linalg.test_euler::test_y", "tests.linalg.test_euler::test_z", "tests.linalg.test_euler::test_order", "tests.lin...
["tests.geometry.test_boxgeometry::test_compare_to_three"]
{ "key": "bsd-2-clause", "name": "BSD 2-Clause \"Simplified\" License", "spdx_id": "BSD-2-Clause", "url": "https://api.github.com/licenses/bsd-2-clause" }
movingpandas__movingpandas-236
movingpandas/movingpandas
f4a9ce7b2e88fee05821639c213aaf7f16d2ec0d
diff --git a/movingpandas/overlay.py b/movingpandas/overlay.py index 744509d..bea4f41 100644 --- a/movingpandas/overlay.py +++ b/movingpandas/overlay.py @@ -196,6 +196,17 @@ def _determine_time_ranges_linebased(traj, polygon): # intersection. possible_matches = _get_potentially_intersecting_lines(traj, ...
python
diff --git a/movingpandas/tests/test_trajectory_collection.py b/movingpandas/tests/test_trajectory_collection.py index 97a65b5..e5671ca 100644 --- a/movingpandas/tests/test_trajectory_collection.py +++ b/movingpandas/tests/test_trajectory_collection.py @@ -198,17 +198,17 @@ class TestTrajectoryCollection: asse...
2024-12-14T09:28:21+00:00Z
Clip fails for Polygons with holes and Multipolygons in edge cases As reported in #235: ![image](https://user-images.githubusercontent.com/590385/182443876-4b173eac-a51c-42cf-bad7-0e7feac20d7d.png) ```python # make toy trajectory df = pd.DataFrame([ {'geometry':Point(0,2), 't':datetime(2018,1,1,12,0,0)}, ...
Hi @anitagraser - just wondering if there might be a solution for this bug soon? Thanks! Currently, we don't have a timeline for this issue. I was hoping for the upcoming MEOS integration that should fix it but this is not advancing as quickly as I initially thought. The following test also fails, presumably because b...
0.0.1-alpha
6ab3e5fb71b4e91eaf7a56db94bb368554e92ee3
["movingpandas.tests.test_trajectory_collection.TestTrajectoryCollection::test_clip_with_multipolygon2"]
["movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_east", "movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_west", "movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_north", "movingpandas.tests.test_geometry_utils.TestGeometryUtils...
[]
{ "key": "bsd-3-clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "spdx_id": "BSD-3-Clause", "url": "https://api.github.com/licenses/bsd-3-clause" }
yukinarit__pyserde-645
yukinarit/pyserde
4bb0e200a44b5423141be406d84d11773ce0dfed
diff --git a/serde/json.py b/serde/json.py index a664e3b..52eadea 100644 --- a/serde/json.py +++ b/serde/json.py @@ -76,7 +76,14 @@ def to_json( your own logic. """ return se.serialize( - to_dict(obj, c=cls, reuse_instances=reuse_instances, convert_sets=convert_sets), **opts + to_dict( + ...
python
diff --git a/tests/test_json.py b/tests/test_json.py new file mode 100644 index 0000000..20d1be6 --- /dev/null +++ b/tests/test_json.py @@ -0,0 +1,34 @@ +from serde import serde +from serde.json import to_json, from_json +from typing import Optional + + +def test_json_basics() -> None: + @serde + class Foo: + ...
2025-05-03T13:23:38+00:00Z
`skip_none` is a no-op in JSON, YAML, and Pickle `serde.json.to_json`, `serde.yaml.to_yaml`, and `serde.pickle.to_pickle` are all documented as – and accept – a `skip_none` argument. However, it's a no-op, as it's dropped on the floor instead of being passed to `as_dict`. It seems like only TOML fully implemented it. ...
Hi @vtbassmatt! 👋 Thanks for letting me know. This is unintended. It would be great if you can fix it 👍
0.0.1-alpha
e7c44a821a1693e5276d4fce66127a0e170b7236
["tests.test_json::test_skip_none", "tests.test_yaml::test_skip_none"]
["tests.test_basics::test_simple[to_dict-from_dict-reuse_instances_default-False0-int(10)0]", "tests.test_basics::test_simple[to_dict-from_dict-reuse_instances_default-False0-str(foo)]", "tests.test_basics::test_simple[to_dict-from_dict-reuse_instances_default-False0-float(100.0)]", "tests.test_basics::test_simple[to_d...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
oceanbase__sql-lifecycle-management-83
oceanbase/sql-lifecycle-management
809482a5771689869a263f1d0a9fcf9605459e8e
diff --git a/src/parser/mysql_parser/parser.py b/src/parser/mysql_parser/parser.py index f1769d6..a49c397 100644 --- a/src/parser/mysql_parser/parser.py +++ b/src/parser/mysql_parser/parser.py @@ -60,14 +60,14 @@ def p_create_table_end(p): r""" create_table_end : ENGINE EQ identifier create_table_end ...
python
diff --git a/test/parser/test_parser_dml.py b/test/parser/test_parser_dml.py index 3bd212b..3a2c0bb 100644 --- a/test/parser/test_parser_dml.py +++ b/test/parser/test_parser_dml.py @@ -510,6 +510,14 @@ SELECT channel_code , contact_number FROM customer_contact_channels WHERE active result = oceanbase_parser.pa...
2023-07-18T06:07:15+00:00Z
[Bug]: limit negative number parse does not support ``` select * from foo limit -10,10 ``` SyntaxError: The current version does not support this SQL 24 (-) E select * from foo limit -10,10
0.0.1-alpha
2af7bef636928fd03607533dd23c474cab556a7a
["test.parser.test_parser_dml.MyTestCase::test_negative_number_in_limit"]
["test.parser.test_parser_utils.MyTestCase::test_between", "test.parser.test_parser_utils.MyTestCase::test_get_filter_column", "test.parser.test_parser_utils.MyTestCase::test_get_filter_column2", "test.parser.test_parser_utils.MyTestCase::test_in_subquery", "test.parser.test_parser_utils.MyTestCase::test_parameterized_...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
py-cov-action__python-coverage-comment-action-275
py-cov-action/python-coverage-comment-action
27f188a422cfd8f5db6119bd81c2b8b9f292eb1c
diff --git a/coverage_comment/coverage.py b/coverage_comment/coverage.py index 75c43bf..29d4bb0 100644 --- a/coverage_comment/coverage.py +++ b/coverage_comment/coverage.py @@ -288,11 +288,11 @@ def parse_diff_output(diff: str) -> dict[pathlib.Path, list[int]]: current_file = pathlib.Path(line.removeprefix...
python
diff --git a/tests/unit/test_coverage.py b/tests/unit/test_coverage.py index 7d30c31..05ab09e 100644 --- a/tests/unit/test_coverage.py +++ b/tests/unit/test_coverage.py @@ -246,7 +246,15 @@ def test_parse_line_number_diff_line(git, line_number_diff_line, expected): def test_parse_diff_output(git): - diff = """d...
2023-09-27T00:49:37+00:00Z
`parse_diff_output()` raises AssertionError in v3.12 Hello, and thanks for creating this GH Action! I have a workflow that fails on v3.12 but succeeds on v3.11... <details> <summary>Stack trace from failing workflow run when using v3.12...</summary> ```bash Notice: Generating comment for PR Error: Critical er...
@atenni Thanks for the debug efforts! I've made a PR where we add more logs: #276 As soon as tests pass, I'll release it, and you'll be able to re-run your workflow and see exactly how the diff appears to be different from expected. I've tried passing the diff you submitted to the parse function, but it seems to work...
0.0.1-alpha
be8e107ca74a0cd9c9de698fc669bf4c7538d768
["tests.unit.test_coverage::test_parse_diff_output"]
["tests.unit.test_activity::test_find_activity[workflow_run-True-post_comment]", "tests.unit.test_activity::test_find_activity[push-True-save_coverage_data_files]", "tests.unit.test_activity::test_find_activity[push-False-process_pr]", "tests.unit.test_activity::test_find_activity[pull_request-True-process_pr]", "tests...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
swingerman__ha-dual-smart-thermostat-150
swingerman/ha-dual-smart-thermostat
ec640067d82cc36dba97239bea5b507f18f23258
diff --git a/config/configuration.yaml b/config/configuration.yaml index f416de7..c4f6663 100644 --- a/config/configuration.yaml +++ b/config/configuration.yaml @@ -166,8 +166,8 @@ climate: precision: 0.1 - platform: dual_smart_thermostat - name: Edge Case 1 - unique_id: edge_case_1 + name: Edge Case...
python
diff --git a/tests/test_dual_mode.py b/tests/test_dual_mode.py index af02cf7..b51905c 100644 --- a/tests/test_dual_mode.py +++ b/tests/test_dual_mode.py @@ -13,6 +13,7 @@ from homeassistant.components.climate import ( PRESET_HOME, PRESET_NONE, PRESET_SLEEP, + HVACAction, HVACMode, ) from homeas...
2024-04-16T15:52:02+00:00Z
0.9.5 Update removed cool mode on my thermostat I just updated to 0.9.5 and saw that the one thermostat I am running as a dual thermostat was missing the cool mode. I didn't change any of the config in yaml but it was missing. I re-downloaded 0.9.4 and it came back. Yaml code for thermostat: ``` - platform: dual_...
I am also facing something similar. In my case, I lost both cooling and heating functionality. For example, every time I turn on cool mode, it will turn on the Cool/Heat, and it does not turn on the `input_boolean.aircon_cool_switch` for me., although the current temperature is 2-3 degrees higher than the `target_temp...
0.0.1-alpha
c6548c32898a998c51d972d670d07c15cdf8e468
["tests.test_dual_mode::test_presets_use_case_150", "tests.test_dual_mode::test_presets_use_case_150_2", "tests.test_dual_mode::test_hvac_mode_mode_heat_cool", "tests.test_dual_mode::test_hvac_mode_mode_heat_cool_hvac_modes_temps"]
["tests.test_cooler_mode::test_unique_id", "tests.test_cooler_mode::test_setup_defaults_to_unknown", "tests.test_cooler_mode::test_setup_gets_current_temp_from_sensor", "tests.test_cooler_mode::test_get_hvac_modes", "tests.test_cooler_mode::test_get_hvac_modes_fan_configured", "tests.test_cooler_mode::test_set_preset_m...
["tests.test_heater_mode::test_hvac_action_reason_service"]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
marcolivierarsenault__moonraker-home-assistant-221
marcolivierarsenault/moonraker-home-assistant
3fcdc06320aef099820260b38affd3ff5eb3aad1
diff --git a/custom_components/moonraker/camera.py b/custom_components/moonraker/camera.py index 0e26bb8..e2a7b26 100755 --- a/custom_components/moonraker/camera.py +++ b/custom_components/moonraker/camera.py @@ -115,22 +115,31 @@ class PreviewCamera(Camera): self, width: int | None = None, height: int | None ...
python
diff --git a/tests/test_sensor.py b/tests/test_sensor.py index ddb4068..33e1221 100755 --- a/tests/test_sensor.py +++ b/tests/test_sensor.py @@ -458,3 +458,20 @@ async def test_update_no_system_update(hass, get_machine_update_status): entity_registry = er.async_get(hass) entity = entity_registry.async_get("se...
2023-12-10T01:38:02+00:00Z
K1 MAX dont show thumbnail camera Can´t load images from camera and thumbnails,moonraker integration configuration section with and without port 7125 and with and without api key same results.....no cameras. I can add it from the generic mjpeg camera integration with the url: http://192.168.1.235:4408/webcam/?actio...
The camera problem has been solved by adding it to moonraker.conf, I still have problems with the thumbnail @cashew22 is working on a fix, https://github.com/marcolivierarsenault/moonraker-home-assistant/pull/228 will likely fix it > @cashew22 is working on a fix, #228 will likely fix it in 10.1 version the thumbn...
0.0.1-alpha
34409fcd052b0196419eed26669446b877d356a6
["tests.test_sensor::test_update_no_info_item"]
["tests.test_api::test_connect_client", "tests.test_api::test_none_port_connect_client", "tests.test_binary_sensor::test_runout_filament_sensor_missing", "tests.test_binary_sensor::test_runout_filament_sensor", "tests.test_binary_sensor::test_multiple_runout_filament_sensor", "tests.test_binary_sensor::test_runout_fila...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
mnaberez__py65-46
mnaberez/py65
ec089bb40842b237d32e7d6af3e646ade19d1428
diff --git a/py65/monitor.py b/py65/monitor.py index 38b1bd9..8027e44 100644 --- a/py65/monitor.py +++ b/py65/monitor.py @@ -53,28 +53,60 @@ class Monitor(cmd.Cmd): self._width = 78 self.prompt = "." self._add_shortcuts() - cmd.Cmd.__init__(self, stdin=stdin, stdout=stdout) - ...
python
2020-10-11T20:56:30+00:00Z
error with stdin - termios.error (with patch) hi, we have some problems with the termios module. sometimes we get a error code 25 as you can see below. Py65 Monitor PC AC XR YR SP NV-BDIZC` 65C02: 0000 00 00 00 ff 00110000 .Wrote +2955 bytes from $e800 to $f38a PC AC XR YR SP NV-BDIZC 65C02:...
Contents of `termios.patch.gz` from above: ```diff :100644 100644 b63db62 0000000 M py65/monitor.py :100644 100644 eb15df0 0000000 M py65/utils/console.py diff --git a/py65/monitor.py b/py65/monitor.py index b63db62..096f974 100644 --- a/py65/monitor.py +++ b/py65/monitor.py @@ -235,9 +235,8 @@ class Monito...
0.0.1-alpha
5ae7eeb6f79659f13a3b7e7a85eb80e7561aa984
["py65.tests.test_monitor.MonitorTests::test_argv_combination_rom_mpu", "py65.tests.test_monitor.MonitorTests::test_argv_rom"]
["py65.tests.devices.test_mpu6502.MPUTests::test_adc_bcd_off_abs_x_carry_clear_in_accumulator_zeroes", "py65.tests.devices.test_mpu6502.MPUTests::test_adc_bcd_off_abs_x_carry_clear_in_carry_set_out", "py65.tests.devices.test_mpu6502.MPUTests::test_adc_bcd_off_abs_x_carry_clear_in_no_carry_clear_out", "py65.tests.device...
["py65.tests.test_monitor.MonitorTests::test__preprocess_line_does_not_remove_semicolons_in_apostrophes", "py65.tests.test_monitor.MonitorTests::test__preprocess_line_does_not_remove_semicolons_in_quotes", "py65.tests.test_monitor.MonitorTests::test__preprocess_line_removes_leading_and_trailing_whitespace", "py65.tests...
{ "key": "bsd-3-clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "spdx_id": "BSD-3-Clause", "url": "https://api.github.com/licenses/bsd-3-clause" }
mcp-use__mcp-use-138
mcp-use/mcp-use
3da38023be860d5e4cad843bea2fa53058d8bf2e
diff --git a/CLAUDE.md b/CLAUDE.md index 6357e9b..918340e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -11,6 +11,12 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ### Setup ```bash +# Activate virtual environment (if it exists) +source env/bin/activate + +# Create virtual environme...
python
diff --git a/tests/integration/servers_for_testing/custom_streaming_server.py b/tests/integration/servers_for_testing/custom_streaming_server.py index f8fcd2f..756d1fe 100644 --- a/tests/integration/servers_for_testing/custom_streaming_server.py +++ b/tests/integration/servers_for_testing/custom_streaming_server.py @@ ...
2025-06-22T06:03:04+00:00Z
ERROR: when using `use_server_manager=True` When trying to use the `MCPAget()` with the attribute `user_sever_manger` I get an error: ``` Server 'get_active_mcp_server' not found. Available servers: fastapi-mcp, 2025-06-18 23:03:33,502 - mcp_use - ERROR - The 'fastembed' library is not installed. To use the search fu...
Hi @KikeVen can you please provide an example on how to reproduce it? It doesn't matter which server I try, but when I attempt to use the `use_server_mager` argument with a `multi_server.json` file, I encounter errors. ```python import asyncio import pathlib from dotenv import load_dotenv from langchain_openai impor...
0.0.1-alpha
08dda3998083bafe665d396483025617c16383d7
["tests.unit.test_search_tools_issue_138.TestSearchToolsIssue138::test_format_search_results_method_exists", "tests.unit.test_search_tools_issue_138.TestSearchToolsIssue138::test_format_search_results_empty_list"]
["tests.unit.test_client.TestMCPClientInitialization::test_init_empty", "tests.unit.test_client.TestMCPClientInitialization::test_init_with_dict_config", "tests.unit.test_client.TestMCPClientInitialization::test_from_dict", "tests.unit.test_client.TestMCPClientInitialization::test_init_with_file_config", "tests.unit.te...
["tests.integration.transports.customStreaming.test_custom_streaming_integration::test_custom_streaming_sse_connection", "tests.integration.transports.customStreaming.test_custom_streaming_integration::test_mcp_tools_availability", "tests.integration.transports.customStreaming.test_custom_streaming_integration::test_mc...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pyprojectx__pyprojectx-37
pyprojectx/pyprojectx
e870e5d7da8c083808fbe8eef7767cd64299231d
diff --git a/pyproject.toml b/pyproject.toml index db1f449..2abec8c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ ignore = ["D100", "D102", "D103", "D104", "D105", "D213", "D203", "T201", "TRY00 "tests/*" = ["S101", "I001"] [tool.pyprojectx] -pdm = { requirements = ["pdm==2.10.0"], post-install...
python
diff --git a/tests/data/test.toml b/tests/data/test.toml index dac934e..fdd2f37 100644 --- a/tests/data/test.toml +++ b/tests/data/test.toml @@ -1,4 +1,5 @@ [tool.pyprojectx] +env = { ENV_VAR1="ENV_VAR1"} tool-1 = ["req1", "req2"] tool-2 = 'tool2 requirement' @@ -26,7 +27,7 @@ alias-list = [ 'pw@alias-2', ...
2023-11-20T13:20:08+00:00Z
Allow passing environment variables to commands and aliases Really love your project! One thing that would be nice to be able to pass environment variables to the different commands aliases, like [PDM scripts](https://pdm.fming.dev/latest/usage/scripts/#script-options). For example, PDM allows you to set PDM_IGNOR...
solved this by allowing default env variables (always added) and per-alias env variables: ```toml [tool.pyprojectx] env = { ENV_VAR1="ENV_VAR1"} [tool.pyprojectx.aliases] alias = { cmd = 'echo "$ENV_VAR1 $ENV_VAR2"', env = { ENV_VAR2="ENV_VAR2"}} ```
0.0.1-alpha
9fb2504c1aed7692ee4a79ddc633316457ced4e2
["tests.unit.test_config::test_alias_config", "tests.unit.test_env::test_run"]
["tests.integration.test_pw::test_logs_and_stdout_with_quiet", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_with_verbose[combine-pw-scripts]", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_with_verbose[combine-pw-scripts-list]", "tests.i...
["tests.unit.test_cli::test_run_tool", "tests.unit.test_cli::test_run_tool_with_args", "tests.unit.test_cli::test_run_tool_alias", "tests.unit.test_cli::test_run_tool_alias_with_args", "tests.unit.test_cli::test_run_explicit_tool_alias_with_arg", "tests.unit.test_cli::test_combined_alias_with_arg", "tests.unit.test_cli...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
python-astrodynamics__spacetrack-98
python-astrodynamics/spacetrack
16f1f3fb6e91f10d66db73b5f3c37d9882a8d06e
diff --git a/docs/usage.rst b/docs/usage.rst index 28ef578..a45b1ea 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -4,10 +4,11 @@ Usage .. code-block:: python - import spacetrack.operators as op - from spacetrack import SpaceTrackClient + import spacetrack.operators as op + from spacetrack import Sp...
python
diff --git a/tests/conftest.py b/tests/conftest.py index 3a4f461..9d42fb8 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -20,6 +20,7 @@ def respx_mock(respx_router): @pytest.fixture def mock_auth(respx_mock): respx_mock.post("ajaxauth/login").respond(json="") + respx_mock.get("ajaxauth/logout").res...
2025-02-21T09:24:03+00:00Z
Log out when you are done Please add https://www.space-track.org/ajaxauth/logout at the end so you log the user out when their API queries are complete. Please see https://www.space-track.org/documentation#/howto and search for "logout" email admin@space-track.org if you have any questions
Tasks - [ ] Add logout to [`close`](https://github.com/python-astrodynamics/spacetrack/blob/74ecaa57a231d829a22dbb0464d1d2df27b9a4b9/src/spacetrack/base.py#L825) - [ ] Encourage use of `with SpaceTrackClient():` in docs to ensure close happens automatically - [ ] We can't prevent that the program terminates without an...
0.0.1-alpha
b6c0b2bb5e5224a9a777f03395c972c1be98da71
["tests.test_spacetrack::test_implicit_cleanup_warning"]
["tests.test_aio::test_authenticate[asyncio]", "tests.test_aio::test_authenticate[trio]", "tests.test_aio::test_get_predicates_calls[asyncio]", "tests.test_aio::test_get_predicates_calls[trio]", "tests.test_aio::test_get_predicates[asyncio]", "tests.test_aio::test_get_predicates[trio]", "tests.test_aio::test_generic_re...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
utapyngo__pytest-unordered-5
utapyngo/pytest-unordered
ffdf31fe80ef0c8b8db77f7ee0b95cd7eaac1a88
diff --git a/CHANGELOG.md b/CHANGELOG.md index 01ae1fa..8cc83bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [0.4.1] - 2021-02-06 +- Add `check_type` argument to make it possible to disable type checking for single non-generators positional argument + + ## [0.4.0] - 2020-11-02 - Add...
python
diff --git a/tests/test_unordered.py b/tests/test_unordered.py index b151888..692af1d 100644 --- a/tests/test_unordered.py +++ b/tests/test_unordered.py @@ -110,6 +110,12 @@ def test_compare_to_non_sequence(value): assert unordered("x") != value +def test_check_type(): + assert not unordered([1]) == {1} + ...
2021-02-05T08:46:08+00:00Z
0.4.0 breaks 1-item sequence calls with type checking Type checking was added in #3 (fixing #2) (v0.4.0) and enabled based on the number of arguments passed to `unordered()` This breaks some code that was previously working: ```python def pb(message): """ Helper for unordered comparisons of protobuf m...
Since 0.3, you can use the following syntax: unordered(pb(x) for x in message) Since 0.4, you can also use unordered([pb(x) for x in message]) to enforce type checking. I'll add the examples to the README. @rcoup, does this work for you? 👋 (same team as @rcoup ) I think we're trying to *avoi...
0.0.1-alpha
761e1ddbd9763fa86ccbba714327a4b19aca4c63
["tests.test_unordered::test_check_type"]
["tests.test_unordered::test_unordered[expected0-actual0]", "tests.test_unordered::test_unordered[expected1-actual1]", "tests.test_unordered::test_unordered[expected2-actual2]", "tests.test_unordered::test_unordered[expected3-actual3]", "tests.test_unordered::test_unordered[expected4-actual4]", "tests.test_unordered::t...
["tests.test_unordered::test_replace"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pysal__spaghetti-717
pysal/spaghetti
a627ce825d4fc5c04320256f8a8bcb3e92048337
diff --git a/spaghetti/util.py b/spaghetti/util.py index a5097e5..7e7a932 100644 --- a/spaghetti/util.py +++ b/spaghetti/util.py @@ -720,7 +720,7 @@ def _points_as_gdf( # instantiate geopandas.GeoDataFrame pts_list = list(pts_dict.items()) points = geopandas.GeoDataFrame(pts_list, columns=[id_col, geom_c...
python
2023-05-07T20:03:04+00:00Z
COMPAT: `geopandas==0.13.0` comp with `utils._points_as_gdf()` [CI failing](https://github.com/pysal/spaghetti/actions/runs/4904445529/jobs/8757529893#step:7:395) with the [`geopandas==0.13.0`](https://github.com/pysal/spaghetti/actions/runs/4904445529/jobs/8757529626#step:6:28) release. The culprit is [this line](htt...
0.0.1-alpha
878141e12b45d8fbd4b18835d7ea43ff7e6123b4
["spaghetti.tests.test_network.TestNetwork::test_element_as_gdf", "spaghetti.tests.test_network.TestNetworkPointPattern::test_element_as_gdf"]
["spaghetti.tests.test_network.TestNetwork::test_network_data_read", "spaghetti.tests.test_network.TestNetwork::test_network_from_libpysal_chains", "spaghetti.tests.test_network.TestNetwork::test_network_from_single_libpysal_chain", "spaghetti.tests.test_network.TestNetwork::test_network_from_vertical_libpysal_chains",...
["spaghetti.tests.test_network.TestNetwork::test_network_from_geopandas", "spaghetti.tests.test_network.TestNetworkPointPattern::test_pp_from_geopandas"]
{ "key": "bsd-3-clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "spdx_id": "BSD-3-Clause", "url": "https://api.github.com/licenses/bsd-3-clause" }
simonw__s3-credentials-29
simonw/s3-credentials
b68e70743e042ace8914c508406e4c857d4d82b5
diff --git a/README.md b/README.md index 4412bf6..1681f57 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ If you have an existing `~/.aws/config` or `~/.aws/credentials` file the tool wi You can set the `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` environment variables before calling this tool. -You ca...
python
diff --git a/tests/test_s3_credentials.py b/tests/test_s3_credentials.py index c15b0b4..4e0f632 100644 --- a/tests/test_s3_credentials.py +++ b/tests/test_s3_credentials.py @@ -502,3 +502,60 @@ def test_verify_create_policy_option( "Error: Invalid value for '--policy': {}".format(expected_error) ...
2021-11-10T22:16:42+00:00Z
`--auth filepath` option for authentication from a file Now that I'm building time-limited credentials in #27 it's getting pretty inconvenient to pass them as the `--access-key` and `--secret-key` and `--session-key` arguments. I'm going to support a new option called `--credentials` which, if provided, is treated ...
It's a shame `-c` is already used as a shortcut for `--create-bucket` - maybe for this one I'll have a short option with a different letter, perhaps `-x`? Or `-a` for authentication? I'm going to use `--auth` instead, for consistency with https://github.com/dogsheep/twitter-to-sqlite and so I can use `-a` as the shorte...
0.0.1-alpha
f7989bce2d4029f2d1ade098acb461995a149291
["tests.test_s3_credentials::test_auth_option_errors[--access-key]", "tests.test_s3_credentials::test_auth_option_errors[--secret-key]", "tests.test_s3_credentials::test_auth_option_errors[--session-token]"]
[]
["tests.test_s3_credentials::test_whoami", "tests.test_s3_credentials::test_list_users[-{\\n \"Path\": \"/\",\\n \"UserName\": \"NameA\",\\n \"UserId\": \"AID000000000000000001\",\\n \"Arn\": \"arn:aws:iam::000000000000:user/NameB\",\\n \"CreateDate\": \"2020-01-01 00:00:00+00:00\"\\n}\\n{\\n \"Path\"...
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
vispy__jupyter_rfb-18
vispy/jupyter_rfb
16349e5c295fbfcbac14e5cf8897cc5747b89ef8
diff --git a/examples/drawing1.ipynb b/examples/drawing1.ipynb index 25345ed..efe4406 100644 --- a/examples/drawing1.ipynb +++ b/examples/drawing1.ipynb @@ -1,6 +1,17 @@ { "cells": [ { + "cell_type": "markdown", + "id": "28b38e38", + "metadata": {}, + "source": [ + "# Drawing example 1\n", + "A simp...
python
diff --git a/tests/test_framesender.py b/tests/test_framesender.py index 9388631..94f5a25 100644 --- a/tests/test_framesender.py +++ b/tests/test_framesender.py @@ -8,7 +8,8 @@ from jupyter_rfb.widget import FrameSenderMixin class MyFrameSender(FrameSenderMixin): max_buffered_frames = 1 - max_queued_frames =...
2021-07-23T15:25:18+00:00Z
API change for sending frames Right now the widget has the `send_frame()` method. If you're lucky the widget can send the frame away directly. Otherwise the frame is queued ... or dropped. I propose to change this to an `on_draw()` method that automatically gets called when the widget is ready to send a new frame. ...
I definitely having been keeping up with this development, but the user is calling `send_frame()` right? Who is calling `on_draw()` (you say it is automatically called)? Do both send_frame and on_draw exist? How does this compare with other tools like this and with vispy desktop backends? Isn't Qt's event loop block...
0.0.1-alpha
83c983ce7caa0c318245819eee8a10986e447538
["tests.test_framesender::test_framesender_1", "tests.test_framesender::test_framesender_3"]
["tests.test_png::test_writing", "tests.test_png::test_writing_failures"]
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
octodns__octodns-1177
octodns/octodns
6718a52b1d725e84150676fd24c38635bbbe8d52
diff --git a/CHANGELOG.md b/CHANGELOG.md index f9c5e30..b81bf7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## v1.9.? - 2024-??-?? - ??? + +* Add `name` to Change.data, and thus PlanJson output + ## v1.9.0 - 2024-06-20 - Grab bag * ICMP & UDP healthcheck protocol support added diff --git a/octodns...
python
diff --git a/tests/test_octodns_plan.py b/tests/test_octodns_plan.py index 943d4af..bb2ff0b 100644 --- a/tests/test_octodns_plan.py +++ b/tests/test_octodns_plan.py @@ -408,7 +408,8 @@ class TestPlanSafety(TestCase): # have a dedicated test (file) delete_data = data['changes'][0] # delete se...
2024-06-21T22:34:12+00:00Z
Print plan in machine consumable format First and foremost, thanks for providing this awesome tool! While working on automating zone management in ansible, I would benefit from a way to load the plan (executed or from a dry-run), and work with the results. This will enable customized reporting of what have chang...
There are currently a handful of `_PlanOutput`s available, located in https://github.com/octodns/octodns/blob/main/octodns/provider/plan.py. I could have sworn there was a JSON one, but apparently not. Doesn't look like any of them are particularly machine readable. Would be fairly simple to create one. Outputs are...
0.0.1-alpha
c6839e4d41d383d0909b52b819c079323bb8e4f7
["tests.test_octodns_plan.TestPlanSafety::test_data"]
["tests.test_octodns_equality.TestEqualityTupleMixin::test_basics", "tests.test_octodns_equality.TestEqualityTupleMixin::test_not_implemented", "tests.test_octodns_idna.TestIdna::test_case_insensitivity", "tests.test_octodns_idna.TestIdna::test_exception_translation", "tests.test_octodns_idna.TestIdna::test_noops", "te...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pgzip__pgzip-23
pgzip/pgzip
3b2e9bb48d76f68eacf30bea61b85842d7126af0
diff --git a/pgzip/pgzip.py b/pgzip/pgzip.py index ef62119..66582e5 100644 --- a/pgzip/pgzip.py +++ b/pgzip/pgzip.py @@ -23,7 +23,7 @@ from gzip import ( FCOMMENT, FHCRC, ) -from multiprocessing.dummy import Pool +from concurrent.futures import ThreadPoolExecutor __version__ = "0.3.2" @@ -212,7 +212,7 @...
python
diff --git a/tests/test_pgzip.py b/tests/test_pgzip.py index 6354bdb..d57deb7 100644 --- a/tests/test_pgzip.py +++ b/tests/test_pgzip.py @@ -46,23 +46,12 @@ def test_pool_close(tmpdir): filename = os.path.join(tmpdir, "test.gz") fh = pgzip.open(filename, "wb", compresslevel=6, thread=4, blocksize=128) fh...
2022-09-22T07:44:42+00:00Z
AWS lambda doesn't support multiprocessing.dummy pool AWS lambda doesn't support using multiprocessing.dummy Pool. However, they fully support multiprocessing and multithreading, just need to do it a different way. For example, concurrent.futures works just fine. You can also emulate multiprocessing.dummy Pool with ot...
Fixed this in #24
0.0.1-alpha
6c995fda8b2f53fd916f33fa4d4e5a98a0ef2556
["tests.test_pgzip::test_pool_close"]
["tests.test_pgzip::test_write_wb"]
["tests.test_pgzip::test_read_rb"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
meerk40t__svgelements-197
meerk40t/svgelements
232ff4839fd1fe97e2540d770b11c6598c398410
diff --git a/svgelements/svgelements.py b/svgelements/svgelements.py index 34c797e..c8ce5d9 100644 --- a/svgelements/svgelements.py +++ b/svgelements/svgelements.py @@ -7690,6 +7690,47 @@ class Use(SVGElement, Transformable, list): for s in subitem.select(conditional): yiel...
python
diff --git a/test/test_use.py b/test/test_use.py index 5ed7def..02fbdf9 100644 --- a/test/test_use.py +++ b/test/test_use.py @@ -6,6 +6,22 @@ from svgelements import * class TestElementUse(unittest.TestCase): + def test_use_bbox_method(self): + q = io.StringIO(u'''<?xml version="1.0" encoding="utf-8" ?> ...
2022-09-26T21:08:10+00:00Z
Missing bbox() method in Use class Is it intentional? ``Use`` should be pretty similar to ``Group`` in this matter. Currently it just throws ``NotImplementedError``.
No. It's an oversight. I added Use fully in 1.8.0 (two versions back) and according to the class diagram the Use is very much like a Group but isn't one. Both are structural nodes so they got flagged as similar but I didn't check everything Use should have or port that over from group. as #198 fixes this issue, I think...
0.0.1-alpha
e90a2b3fb97b3b5eb820973d1c70473397d6f749
["test.test_use.TestElementUse::test_use_bbox_method"]
["test.test_angle.TestElementAngle::test_angle_equal", "test.test_angle.TestElementAngle::test_angle_init", "test.test_angle.TestElementAngle::test_orth", "test.test_approximate.TestElementApproximation::test_cubic_bezier_arc_approximation", "test.test_arc_length.TestElementArcLength::test_arc_angle_point", "test.test_...
["test.test_arc_length.TestElementArcLength::test_arc_len_circle_exact", "test.test_arc_length.TestElementArcLength::test_arc_len_flat_exact", "test.test_arc_length.TestElementArcLength::test_arc_len_r0_exact", "test.test_arc_length.TestElementArcLength::test_arc_len_random_int", "test.test_arc_length.TestElementArcLen...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
wimglenn__pytest-structlog-32
wimglenn/pytest-structlog
193bcfc272627676fca047df7f7429105c2bc122
diff --git a/pytest_structlog/__init__.py b/pytest_structlog/__init__.py index b639963..1012ff6 100644 --- a/pytest_structlog/__init__.py +++ b/pytest_structlog/__init__.py @@ -18,7 +18,7 @@ from structlog.typing import Processor from structlog.typing import WrappedLogger -__version__ = "0.8" +__version__ = "0.9" ...
python
diff --git a/tests/test_issue32.py b/tests/test_issue32.py new file mode 100644 index 0000000..03a72e5 --- /dev/null +++ b/tests/test_issue32.py @@ -0,0 +1,51 @@ +import pytest +import structlog + + +@pytest.fixture +def stdlib_bound_logger_configure(): + structlog.configure( + processors=[ + struc...
2024-05-30T01:34:18+00:00Z
Display Traceback in captured logs for `logger.exception` Could we conditionally specify that additional processors should be kept? Or at least allow the `format_exc` processor to be configurable? Without the `format_exc` processor, [the logs have `exc_info=True`](https://github.com/wimglenn/pytest-structlog/blob/1...
Hello @KyleKing, I've a proposed fix in https://github.com/wimglenn/pytest-structlog/pull/33 Can you check if it is satisfactory before I tag/release? You can install that from test PyPI: ``` pip install --index-url=https://test.pypi.org/simple 'pytest-structlog==0.9' ``` I'm procrastinating configuration of...
0.0.1-alpha
566933f94565e2d6e0d146cbbbd85155ad360a8a
["tests.test_issue32::test_exception_traceback", "tests.test_issue32::test_exception_dict_traceback"]
["tests.test_issue14::test_first", "tests.test_issue14::test_second", "tests.test_issue14::test_third", "tests.test_issue18::test_positional_formatting", "tests.test_issue20::test_contextvar", "tests.test_issue24::test_contextvar_isolation_in_events[0]", "tests.test_issue24::test_contextvar_isolation_in_events[1]", "te...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
mivade__argparse_dataclass-27
mivade/argparse_dataclass
19f709e4f598d15185adc3fd95d1a37b3ac9205a
diff --git a/README.rst b/README.rst index 43d08a4..71f739a 100644 --- a/README.rst +++ b/README.rst @@ -165,6 +165,25 @@ Parsing only the known arguments: >>> print(parser.parse_known_args(["--name", "John", "--other-arg", "foo"])) (Options(name='John', logging=False), ['--other-arg', 'foo']) + +Configurin...
python
diff --git a/tests/test_argumentparser.py b/tests/test_argumentparser.py index 1345c80..0929273 100644 --- a/tests/test_argumentparser.py +++ b/tests/test_argumentparser.py @@ -3,8 +3,7 @@ import unittest import datetime as dt from dataclasses import dataclass, field -from typing import List - +from typing import L...
2022-06-06T16:36:42+00:00Z
Needs explicit type in metadata for Optional[type] fields The following class fails to parse: ``` @dataclass class IndexOptsMinimal: index: Optional[int] = None ``` The following workaround is required: ``` @dataclass class IndexOptsWorkaround: index: Optional[int] = field(metadata=dict(type=in...
Closed via #28.
0.0.1-alpha
1393bd7108b2d5ea6304ba79338235acf8fd681c
["tests.test_argumentparser.ArgumentParserTests::test_optional_args", "tests.test_argumentparser.ArgumentParserTests::test_optional_union_args", "tests.test_functional.FunctionalParserTests::test_optional_args", "tests.test_functional.FunctionalParserTests::test_optional_union_args"]
["tests.test_argumentparser.ArgumentParserTests::test_basic", "tests.test_argumentparser.ArgumentParserTests::test_basic_negative", "tests.test_argumentparser.ArgumentParserTests::test_choices", "tests.test_argumentparser.ArgumentParserTests::test_choices_negative", "tests.test_argumentparser.ArgumentParserTests::test_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
timvink__mkdocs-print-site-plugin-45
timvink/mkdocs-print-site-plugin
ff0d41d66031fff4e0c80f155012f96d451595cc
diff --git a/mkdocs_print_site_plugin/urls.py b/mkdocs_print_site_plugin/urls.py index 3ea202b..d27eb38 100644 --- a/mkdocs_print_site_plugin/urls.py +++ b/mkdocs_print_site_plugin/urls.py @@ -136,12 +136,16 @@ def update_anchor_ids(page_html, page_key): """ # Regex demo / tests: https://regex101.com/r/mlAPNH...
python
diff --git a/tests/fixtures/projects/with_markdown_ext/docs/index.md b/tests/fixtures/projects/with_markdown_ext/docs/index.md index 285ab02..0b8c7d9 100644 --- a/tests/fixtures/projects/with_markdown_ext/docs/index.md +++ b/tests/fixtures/projects/with_markdown_ext/docs/index.md @@ -4,8 +4,25 @@ Lorem ipsum dolor sit ...
2021-05-10T13:45:48+00:00Z
Can't switch content tabs Code tabs can be clicked here: * https://majkinetor.github.io/mm-docs-template/demo/#code-highlight But can't be clicked on print_page: * https://majkinetor.github.io/mm-docs-template/print_page/#demo-code-highlight The code to make it is described on [Content tabs](https://squidfu...
0.0.1-alpha
40491f6f3abfbc9926b488753143214ff1b87e3c
["tests.test_urls::test_update_anchor_ids_noupdate"]
["tests.test_exclude::test_exclude", "tests.test_urls::test_get_page_key", "tests.test_urls::test_is_external", "tests.test_urls::test_is_attachment", "tests.test_urls::test_fix_href_links", "tests.test_urls::test_update_anchor_ids[h1]", "tests.test_urls::test_update_anchor_ids[h2]", "tests.test_urls::test_update_ancho...
["tests.test_building::test_windmill", "tests.test_building::test_no_toc", "tests.test_building::test_add_to_nav_works", "tests.test_building::test_basic_build", "tests.test_building::test_basic_build2", "tests.test_building::test_basic_build3", "tests.test_building::test_basic_build4", "tests.test_building::test_basic...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }