instance_id
stringlengths
13
57
patch
stringlengths
273
19.3k
repo
stringlengths
9
53
base_commit
stringlengths
40
40
hints_text
stringclasses
1 value
test_patch
stringlengths
212
195k
problem_statement
stringlengths
40
7.66k
version
stringclasses
1 value
environment_setup_commit
stringlengths
40
40
FAIL_TO_PASS
listlengths
1
144
PASS_TO_PASS
listlengths
0
1.46k
meta
dict
created_at
stringdate
2015-11-16 22:59:02
2024-04-24 11:36:26
license
stringclasses
7 values
__index_level_0__
int64
1
6.4k
arviz-devs__arviz-1076
diff --git a/CHANGELOG.md b/CHANGELOG.md index bee1c84..16824f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,7 @@ * Fix `io_pymc3.py` to handle models with `potentials` (#1043) * Fix several inconsistencies between schema and `from_pymc3` implementation in groups `prior`, `prior_predictive` and `obser...
arviz-devs/arviz
0eef3b95eff477541ba599f15687612652074b7e
diff --git a/arviz/tests/test_plots_matplotlib.py b/arviz/tests/test_plots_matplotlib.py index a688a79..c0fa4ae 100644 --- a/arviz/tests/test_plots_matplotlib.py +++ b/arviz/tests/test_plots_matplotlib.py @@ -156,6 +156,21 @@ def test_plot_trace_max_subplots_warning(models): assert axes.shape +@pytest.mark.par...
plot_trace lines is unclear and it may yield unexpected results **Describe the bug** The argument `lines` for the function `plot_trace` can give unexpected results. Moreover, the documentation is a bit nebulous. **To Reproduce** A toy example is defined ```python import pymc3 as pm import arviz as az import n...
0.0
0eef3b95eff477541ba599f15687612652074b7e
[ "arviz/tests/test_plots_matplotlib.py::test_plot_trace_invalid_varname_warning[kwargs0]", "arviz/tests/test_plots_matplotlib.py::test_plot_trace_bad_lines_value[bad_kwargs0]" ]
[ "arviz/tests/test_plots_matplotlib.py::test_plot_density_float[kwargs0]", "arviz/tests/test_plots_matplotlib.py::test_plot_density_float[kwargs1]", "arviz/tests/test_plots_matplotlib.py::test_plot_density_float[kwargs2]", "arviz/tests/test_plots_matplotlib.py::test_plot_density_float[kwargs3]", "arviz/tests...
{ "failed_lite_validators": [ "has_hyperlinks", "has_media", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2020-02-17 22:14:31+00:00
apache-2.0
1,099
pyca__bcrypt-86
diff --git a/.travis.yml b/.travis.yml index 456aba7..bbcb336 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,6 +30,7 @@ matrix: env: TOXENV=pypy CC=clang - python: 2.7 env: TOXENV=pep8 + - env: TOXENV=packaging - python: 3.5 env: TOXENV=py3pep8 - language: generic diff --git a/...
pyca/bcrypt
c9c76210fad230995a6155287e8b92c49180eae4
diff --git a/tests/test_bcrypt.py b/tests/test_bcrypt.py index 47f315a..d9bde72 100644 --- a/tests/test_bcrypt.py +++ b/tests/test_bcrypt.py @@ -152,12 +152,12 @@ _2y_test_vectors = [ ( b"\xa3", b"$2y$05$/OK.fbVrR/bpIqNJ5ianF.Sa7shbm4.OzKpvFnX1pQLmQW96oUlCq", - b"$2b$05$/OK.fbVrR/bpIqNJ5ia...
Find a way to not use == in the README I don't think it's actually exploitable as a timing attack (in fact I'm pretty sure it's not), but I think it'd be good hygeine to offer a check_password function or similar and use that, so we dont' have to expose a general purpose constant time comparison function.
0.0
c9c76210fad230995a6155287e8b92c49180eae4
[ "tests/test_bcrypt.py::test_hashpw_2y_prefix[\\xa3-$2y$05$/OK.fbVrR/bpIqNJ5ianF.Sa7shbm4.OzKpvFnX1pQLmQW96oUlCq-$2y$05$/OK.fbVrR/bpIqNJ5ianF.Sa7shbm4.OzKpvFnX1pQLmQW96oUlCq]", "tests/test_bcrypt.py::test_hashpw_2y_prefix[\\xff\\xff\\xa3-$2y$05$/OK.fbVrR/bpIqNJ5ianF.CE5elHaaO4EbggVDjb8P19RukzXSM3e-$2y$05$/OK.fbVrR...
[ "tests/test_bcrypt.py::test_gensalt_basic", "tests/test_bcrypt.py::test_gensalt_rounds_valid[4-$2b$04$KB.uKB.uKB.uKB.uKB.uK.]", "tests/test_bcrypt.py::test_gensalt_rounds_valid[5-$2b$05$KB.uKB.uKB.uKB.uKB.uK.]", "tests/test_bcrypt.py::test_gensalt_rounds_valid[6-$2b$06$KB.uKB.uKB.uKB.uKB.uK.]", "tests/test_...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2016-06-30 16:21:32+00:00
apache-2.0
4,712
adamboche__python-marshmallow-union-33
diff --git a/src/marshmallow_union/__init__.py b/src/marshmallow_union/__init__.py index 22d5ef4..ee47920 100644 --- a/src/marshmallow_union/__init__.py +++ b/src/marshmallow_union/__init__.py @@ -13,6 +13,7 @@ class MarshmallowUnionException(Exception): class ExceptionGroup(MarshmallowUnionException): """Colle...
adamboche/python-marshmallow-union
58bfc9fb069e00478afba87da3e003464cbdaebe
diff --git a/tests/test_union.py b/tests/test_union.py index 6377c06..c93f004 100644 --- a/tests/test_union.py +++ b/tests/test_union.py @@ -52,6 +52,14 @@ class IntStrSchema(marshmallow.Schema): x = marshmallow_union.Union([marshmallow.fields.Int(), marshmallow.fields.String()]) +class ListUnionSchema(marshma...
_serialize ignores the given value The `_serialize` method of `Union` calls the `serialize` method (instead of `_serialize`) on the underlying fields. This means that it ignores the given `value` parameter, and may try to serialize a completely different value. See: https://github.com/adamboche/python-marshmallow-un...
0.0
58bfc9fb069e00478afba87da3e003464cbdaebe
[ "tests/test_union.py::test_round_trip[data4-schema4]" ]
[ "tests/test_union.py::test_round_trip[data0-schema0]", "tests/test_union.py::test_round_trip[data1-schema1]", "tests/test_union.py::test_round_trip[data2-schema2]", "tests/test_union.py::test_round_trip[data3-schema3]", "tests/test_union.py::test_round_trip[data5-schema5]", "tests/test_union.py::test_roun...
{ "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2020-05-23 13:45:41+00:00
mit
882
tylerwince__pydbg-4
diff --git a/.travis.yml b/.travis.yml index e1b9f62..0b6f2c8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ python: - "nightly" # command to install dependencies install: - - pip install pydbg + - pip install -e . # command to run tests script: - pytest -vv diff --git a/pydbg.py b/pydbg.py in...
tylerwince/pydbg
e29ce20677f434dcf302c2c6f7bd872d26d4f13b
diff --git a/tests/test_pydbg.py b/tests/test_pydbg.py index 5b12508..bf91ea4 100644 --- a/tests/test_pydbg.py +++ b/tests/test_pydbg.py @@ -4,9 +4,6 @@ from pydbg import dbg from contextlib import redirect_stdout -def something(): - pass - cwd = os.getcwd() def test_variables(): @@ -23,12 +20,19 @@ def tes...
Parentheses aren't displayed correctly for functions The closing parentheses around the function call is missing. ``` In [19]: def add(x, y): ...: z = x + y ...: return z ...: In [20]: dbg(add(1, 2)) [<ipython-input-20-ac7b28727082>:1] add(1, 2 = 3 ```
0.0
e29ce20677f434dcf302c2c6f7bd872d26d4f13b
[ "tests/test_pydbg.py::test_variables" ]
[]
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2019-01-21 17:37:47+00:00
mit
6,138
serge-sans-paille__gast-50
diff --git a/gast/ast2.py b/gast/ast2.py index 0e0a8ed..8968b5b 100644 --- a/gast/ast2.py +++ b/gast/ast2.py @@ -40,6 +40,17 @@ class Ast2ToGAst(AstToGAst): new_node.end_lineno = new_node.end_col_offset = None return new_node + def visit_Assign(self, node): + new_node = gast.Assign( + ...
serge-sans-paille/gast
365fa06e88f38c14cdff53d1ae437851a411e7a6
diff --git a/tests/test_compat.py b/tests/test_compat.py index e944647..c04c433 100644 --- a/tests/test_compat.py +++ b/tests/test_compat.py @@ -61,7 +61,8 @@ class CompatTestCase(unittest.TestCase): compile(gast.gast_to_ast(tree), '<test>', 'exec') norm = ("Module(body=[Assign(targets...
ast.Assign need type_comment in Python3.8 In python3.8.5,I use gast to modify ast_node then convert back into ast by`gast_to_ast`. But the result is different with original `ast`. It works in Python3.5 and Python2.7 The example code: ```python import ast import gast import textwrap import unittest def c...
0.0
365fa06e88f38c14cdff53d1ae437851a411e7a6
[ "tests/test_compat.py::CompatTestCase::test_FormattedValue", "tests/test_compat.py::CompatTestCase::test_JoinedStr" ]
[ "tests/test_compat.py::CompatTestCase::test_ArgAnnotation", "tests/test_compat.py::CompatTestCase::test_Call", "tests/test_compat.py::CompatTestCase::test_Ellipsis", "tests/test_compat.py::CompatTestCase::test_ExtSlice", "tests/test_compat.py::CompatTestCase::test_ExtSliceEllipsis", "tests/test_compat.py:...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-09-05 20:10:22+00:00
bsd-3-clause
5,480
scottstanie__sentineleof-11
diff --git a/eof/cli.py b/eof/cli.py index e5a2432..948c96c 100644 --- a/eof/cli.py +++ b/eof/cli.py @@ -35,7 +35,13 @@ from eof import log type=click.Choice(["S1A", "S1B"]), help="Optionally specify Sentinel satellite to download (default: gets both S1A and S1B)", ) -def cli(search_path, save_dir, sentinel_...
scottstanie/sentineleof
59aba730a2f07bba25351abe51017bdaa4085c10
diff --git a/eof/tests/test_eof.py b/eof/tests/test_eof.py index e89c9be..6ac9b68 100644 --- a/eof/tests/test_eof.py +++ b/eof/tests/test_eof.py @@ -159,4 +159,5 @@ class TestEOF(unittest.TestCase): orbit_dts=["20200101"], sentinel_file=None, save_dir=",", + use_scihub=...
https://qc.sentinel1.eo.esa.int discontinued The old S1-QC site has been discontinued. The alternative service https://qc.sentinel1.copernicus.eu should have the same API but it seems that currently it does not provided orbit files. The recommended alternative is https://scihub.copernicus.eu/gnss which has a diffe...
0.0
59aba730a2f07bba25351abe51017bdaa4085c10
[ "eof/tests/test_eof.py::TestEOF::test_mission" ]
[ "eof/tests/test_eof.py::TestEOF::test_find_scenes_to_download", "eof/tests/test_eof.py::TestEOF::test_download_eofs_errors", "eof/tests/test_eof.py::TestEOF::test_main_error_args", "eof/tests/test_eof.py::TestEOF::test_main_nothing_found" ]
{ "failed_lite_validators": [ "has_hyperlinks", "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-04-30 19:13:02+00:00
mit
5,387
OnroerendErfgoed__skosprovider_rdf-119
diff --git a/HISTORY.rst b/HISTORY.rst index b0e2a7b..3c5a727 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,3 +1,9 @@ +1.3.0 (??-12-2022) +------------------ + +- Don't export local id as dcterms.identifier when it's equal to the URI (#117) +- Add support for Python 3.10 and Python 3.11 (#120) + 1.2.0 (11-10-2022)...
OnroerendErfgoed/skosprovider_rdf
9a68fb35e971caac8d7df45e6371f3132a85e9f2
diff --git a/tests/test_utils.py b/tests/test_utils.py index 86b9f11..446b318 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -2,6 +2,7 @@ import pytest from rdflib import Graph from rdflib import Namespace from rdflib.namespace import DCTERMS +from rdflib.namespace import DC from rdflib.namespace imp...
Don't export local id as dcterms.identifier when it's the URI When reading a SKOS file, we assign the URI to the id attribute because our skosprovider expects an internal identifier. But, when exporting the provider to SKOS again, we export this id to dcterms:identifier. This creates extra information in the SKOS file ...
0.0
9a68fb35e971caac8d7df45e6371f3132a85e9f2
[ "tests/test_utils.py::TestRDFDumperProducts::test_dump_rdf_no_uri_as_local_identifier" ]
[ "tests/test_utils.py::TestRDFDumperMaterials::test_dump_dictionary_to_rdf", "tests/test_utils.py::TestRDFDumperMaterials::test_dump_collections_roundtrip", "tests/test_utils.py::TestRDFDumperMaterials::test_dump_concept_with_superordinates", "tests/test_utils.py::TestRDFDumperProducts::test_dump_rdf_to_rdf", ...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2022-12-15 10:18:13+00:00
mit
403
scrapinghub__web-poet-142
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index c88ec58..5ab56e4 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,6 +2,15 @@ Changelog ========= +TBR +--- + +* Fix the error when calling :meth:`.to_item() <web_poet.pages.ItemPage.to_item>`, + :func:`item_from_fields_sync() <web_poet.fields.item_from_fields_sy...
scrapinghub/web-poet
a369635f3d4cf1acc22acf967625fe51c8cd57ae
diff --git a/tests/test_pages.py b/tests/test_pages.py index fa3cf8d..d54f094 100644 --- a/tests/test_pages.py +++ b/tests/test_pages.py @@ -3,7 +3,7 @@ from typing import Optional import attrs import pytest -from web_poet import HttpResponse, field +from web_poet import HttpResponse, PageParams, field from web_po...
`skip_nonitem_fields=True` doesn't work when the page object is an attrs class Currently, this works fine: ```python import attrs from web_poet import HttpResponse, Returns, ItemPage, field @attrs.define class BigItem: x: int y: int class BigPage(ItemPage[BigItem]): @field def x(self): ...
0.0
a369635f3d4cf1acc22acf967625fe51c8cd57ae
[ "tests/test_pages.py::test_item_page_change_item_type_remove_fields" ]
[ "tests/test_pages.py::test_page_object", "tests/test_pages.py::test_web_page_object", "tests/test_pages.py::test_item_web_page_deprecated", "tests/test_pages.py::test_is_injectable", "tests/test_pages.py::test_item_page_typed", "tests/test_pages.py::test_web_page_fields", "tests/test_pages.py::test_item...
{ "failed_lite_validators": [ "has_many_modified_files", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2023-02-22 15:11:06+00:00
bsd-3-clause
5,398
chriskuehl__rustenv-12
diff --git a/rustenv.py b/rustenv.py index ac82bb7..4cdbbc2 100644 --- a/rustenv.py +++ b/rustenv.py @@ -47,6 +47,7 @@ deactivate_rustenv() {{ unset _RUSTENV_BIN_PATH unset _RUSTENV_OLD_PS1 unset _RUSTENV_OLD_PATH + unset -f deactivate_rustenv }} '''
chriskuehl/rustenv
b2f3ae3f74bb7407c18e59700112098394eac323
diff --git a/tests/integration_test.py b/tests/integration_test.py index 72088d5..e1b3e5c 100644 --- a/tests/integration_test.py +++ b/tests/integration_test.py @@ -22,6 +22,7 @@ report() {{ echo "[[$1-rustc:$(rustc --version 2>&1)]]" echo "[[$1-cargo:$(cargo --version 2>&1)]]" echo "[[$1-hello:$(hello 2...
`deactivate_rustenv` doesn't remove `deactivate_rustenv` ```console (renv) asottile@babibox:/tmp $ deactivate_rustenv asottile@babibox:/tmp $ which cargo asottile@babibox:/tmp $ deactivate_rustenv ehco hi bash: ehco: No such file or directory echo hi hi ```
0.0
b2f3ae3f74bb7407c18e59700112098394eac323
[ "tests/integration_test.py::test_runenv_shell[bash-{}:" ]
[ "tests/integration_test.py::test_rustenv_looks_sane" ]
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2022-08-13 23:11:19+00:00
apache-2.0
1,580
WPI-MMR__gym_solo-6
diff --git a/gym_solo/core/rewards.py b/gym_solo/core/rewards.py new file mode 100644 index 0000000..d364f98 --- /dev/null +++ b/gym_solo/core/rewards.py @@ -0,0 +1,63 @@ +from abc import ABC, abstractmethod +from dataclasses import dataclass +from typing import List + +from gym_solo import solo_types + + +class Reward...
WPI-MMR/gym_solo
e4bcb11fb1b18da997494d56acf95bdd512a076a
diff --git a/gym_solo/core/test_rewards_factory.py b/gym_solo/core/test_rewards_factory.py new file mode 100644 index 0000000..fd70bea --- /dev/null +++ b/gym_solo/core/test_rewards_factory.py @@ -0,0 +1,35 @@ +import unittest +from gym_solo.core import rewards + +from parameterized import parameterized + + +class Test...
Create Rewards Factory Similar to the observation factory. The reward factory should be able to take in `Reward` objects, similar to an `Observation` object, evaluate the rewards for the state, and combine them. I'm thinking of making the final reward a linear combination of the registered rewards. With that in mind...
0.0
e4bcb11fb1b18da997494d56acf95bdd512a076a
[ "gym_solo/core/test_rewards_factory.py::TestRewardsFactory::test_empty", "gym_solo/core/test_rewards_factory.py::TestRewardsFactory::test_register_and_compute_0_single", "gym_solo/core/test_rewards_factory.py::TestRewardsFactory::test_register_and_compute_1_two_happy", "gym_solo/core/test_rewards_factory.py::...
[]
{ "failed_lite_validators": [ "has_added_files" ], "has_test_patch": true, "is_lite": false }
2020-10-27 21:14:37+00:00
mit
835
praw-dev__praw-1960
diff --git a/CHANGES.rst b/CHANGES.rst index 2d776d7d..b893f83f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,6 +6,10 @@ PRAW follows `semantic versioning <http://semver.org/>`_. Unreleased ---------- +**Fixed** + +- An issue with replying to a modmail conversation results in a error. + 7.7.0 (2023/02/25) ----...
praw-dev/praw
8bf669309a1476fa995f99c87c895fadf5436563
diff --git a/tests/integration/cassettes/TestModmailConversation.test_reply__internal.json b/tests/integration/cassettes/TestModmailConversation.test_reply__internal.json new file mode 100644 index 00000000..5d10d7e1 --- /dev/null +++ b/tests/integration/cassettes/TestModmailConversation.test_reply__internal.json @@ -0...
Modmail Conversations throw a TypeError when issuing a reply ### Describe the Bug A TypeError is thrown for a modmail conversation if leaving an internal reply. The code we've been using to do this has been in place for months; the first observed error was at 2023-07-10 14:16:32 UTC This appears to occur whether th...
0.0
8bf669309a1476fa995f99c87c895fadf5436563
[ "tests/integration/models/reddit/test_modmail.py::TestModmailConversation::test_reply__internal" ]
[ "tests/integration/models/reddit/test_modmail.py::TestModmailConversation::test_archive", "tests/integration/models/reddit/test_modmail.py::TestModmailConversation::test_highlight", "tests/integration/models/reddit/test_modmail.py::TestModmailConversation::test_mute", "tests/integration/models/reddit/test_mod...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2023-07-11 20:39:06+00:00
bsd-2-clause
4,648
chapinb__chickadee-63
diff --git a/CHANGELOG.md b/CHANGELOG.md index 104b977..fc87bab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 20200805.0 + +### Fixed + +* Addressed bug in rate limiting VirusTotal. [Issue-62](https://github.com/chapinb/chickadee/issues/62) + ## 20200802.0 ### Added diff --git a/d...
chapinb/chickadee
fa9862c3ff48e6ad3e07b2ecaad74ff922eaf926
diff --git a/libchickadee/test/test_resolver_virustotal.py b/libchickadee/test/test_resolver_virustotal.py index dfb54a1..c0dd7d4 100644 --- a/libchickadee/test/test_resolver_virustotal.py +++ b/libchickadee/test/test_resolver_virustotal.py @@ -1,5 +1,6 @@ """VirusTotal Resolver Tests.""" import datetime +import time...
VirusTotal rate limiter does not store last request time **Describe the bug** The sleeper function checks the last request time to determine how long to sleep for. This value is only set at initialization and does not update per-request. **Version (please complete the following information):** - OS: Any (macO...
0.0
fa9862c3ff48e6ad3e07b2ecaad74ff922eaf926
[ "libchickadee/test/test_resolver_virustotal.py::IPAPITestCase::test_sleeper" ]
[ "libchickadee/test/test_resolver_virustotal.py::IPAPITestCase::test_parse_vt_resp", "libchickadee/test/test_resolver_virustotal.py::IPAPITestCase::test_parse_vt_resp_2", "libchickadee/test/test_resolver_virustotal.py::IPAPITestCase::test_resolve_batch", "libchickadee/test/test_resolver_virustotal.py::IPAPITes...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-08-05 10:20:06+00:00
mit
1,557
odufrn__odufrn-downloader-95
diff --git a/.gitignore b/.gitignore index 9593d84..ef43f41 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ Pipfile Pipfile.lock +env/ .vscode/* .idea/* venv/* diff --git a/odufrn_downloader/exceptions.py b/odufrn_downloader/exceptions.py new file mode 100644 index 0000000..e69e97b --- /dev/null +++ b/odu...
odufrn/odufrn-downloader
7ab1d9afb9f93ba620ee540d8e691c6ce3558271
diff --git a/tests/test_file.py b/tests/test_file.py index bb21fb0..4bd5fa3 100644 --- a/tests/test_file.py +++ b/tests/test_file.py @@ -1,5 +1,6 @@ from .utils import * import tempfile +from odufrn_downloader.modules.File import odufrIOError class Group(unittest.TestCase): @@ -25,8 +26,6 @@ class Group(unittest...
Criar classes de exception # Feature Hoje tratamos as exceptions de forma bem geral, porém poderíamos criar classes de exceção para nos auxiliarmos a lidar com os erros. Isso ajuda bastante nos testes, tornando-os mais assertivos, visto que o unittest tem a função ` assertRaises() ` > #### Participe do Hacktoberf...
0.0
7ab1d9afb9f93ba620ee540d8e691c6ce3558271
[ "tests/test_file.py::Group::test_can_download_packages_from_file", "tests/test_file.py::Group::test_can_print_exception_download_packages_from_file" ]
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_added_files", "has_many_modified_files", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2019-10-05 22:30:32+00:00
mit
4,331
paris-saclay-cds__specio-44
diff --git a/specio/core/functions.py b/specio/core/functions.py index c47f79d..8185e05 100644 --- a/specio/core/functions.py +++ b/specio/core/functions.py @@ -144,7 +144,7 @@ def _validate_filenames(uri): return sorted(glob.glob(os.path.expanduser(uri))) -def _zip_spectrum(spectrum): +def _zip_spectrum(s...
paris-saclay-cds/specio
e966bc2b7f0955631517780272b8ebd62f6c6a1b
diff --git a/specio/core/tests/test_functions.py b/specio/core/tests/test_functions.py index 0cfd489..049cdbb 100644 --- a/specio/core/tests/test_functions.py +++ b/specio/core/tests/test_functions.py @@ -87,14 +87,25 @@ def _generate_list_spectrum(*args): for _ in range(n_spectrum)] +def _generate_lis...
Add an argument to read_csv to merge wavelength
0.0
e966bc2b7f0955631517780272b8ebd62f6c6a1b
[ "specio/core/tests/test_functions.py::test_specread_consitent_wavelength[_generate_spectrum_identical_wavelength-1e-05-Spectrum-spectra_shape0]", "specio/core/tests/test_functions.py::test_specread_consitent_wavelength[_generate_spectrum_different_wavelength_size-1e-05-list-10]", "specio/core/tests/test_functio...
[ "specio/core/tests/test_functions.py::test_help", "specio/core/tests/test_functions.py::test_get_reader", "specio/core/tests/test_functions.py::test_specread_single_file" ]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2018-02-01 18:25:43+00:00
bsd-3-clause
4,458
bryanyang0528__ksql-python-73
diff --git a/ksql/api.py b/ksql/api.py index f4a6bbb..b5f1f8f 100644 --- a/ksql/api.py +++ b/ksql/api.py @@ -101,7 +101,7 @@ class BaseAPI(object): headers = {"Accept": "application/json", "Content-Type": "application/json"} if self.api_key and self.secret: - base64string = base64.b64enco...
bryanyang0528/ksql-python
dbd864e2f424805a7c3170dbdfe3723fe7aea403
diff --git a/tests/test_client.py b/tests/test_client.py index 42a89db..6e9075f 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -53,6 +53,13 @@ class TestKSQLAPI(unittest.TestCase): property = [i for i in properties if i["name"] == "ksql.schema.registry.url"][0] self.assertEqual(proper...
client.ksql('show tables') returns error 'not all arguments converted during string formatting' `from ksql import KSQLAPI api_key = 'ZD74E3GRK4QXWO6W' api_secret = 'RByQinKf4ZYodiBLuCKybx92SSPrQwEwnA8DOaVfJEhAVf3LQ096yFteZkep4XKx' ksql_endpoint = 'https://pksqlc-42o7q.us-east-1.aws.confluent.cloud:443' client = KSQ...
0.0
dbd864e2f424805a7c3170dbdfe3723fe7aea403
[ "tests/test_client.py::TestKSQLAPI::test_ksql_show_tables_with_api_key" ]
[ "tests/test_client.py::TestKSQLAPI::test_bad_requests", "tests/test_client.py::TestKSQLAPI::test_create_stream_as_with_conditions_with_startwith", "tests/test_client.py::TestKSQLAPI::test_create_stream_as_with_conditions_with_startwith_with_and", "tests/test_client.py::TestKSQLAPI::test_create_stream_as_with_...
{ "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2020-08-18 17:34:25+00:00
mit
1,440
online-judge-tools__template-generator-56
diff --git a/onlinejudge_template/generator/python.py b/onlinejudge_template/generator/python.py index 88075ef..5fd6303 100644 --- a/onlinejudge_template/generator/python.py +++ b/onlinejudge_template/generator/python.py @@ -114,11 +114,11 @@ def _generate_input_dfs(node: FormatNode, *, declared: Set[VarName], initiali...
online-judge-tools/template-generator
f0230727fb9e67eb20d3f5c537d1747bb9fb90b3
diff --git a/tests/command_template.py b/tests/command_template.py index 28de86f..facea02 100644 --- a/tests/command_template.py +++ b/tests/command_template.py @@ -13,6 +13,7 @@ from onlinejudge_template.main import main class TestOJTemplateCommand(unittest.TestCase): """TestOJTemplateCommand is a class for en...
The default template `generate.py` has syntax error when string variables exsit in input ```shell oj-template -t generate.py https://atcoder.jp/contests/abc166/tasks/abc166_a ``` の生成コードが syntax error となっているようです。文字列が入力に与えられる他の問題でも同様でした。僕が python に不慣れなため、具体的な間違いの内容は分かりませんでした。。
0.0
f0230727fb9e67eb20d3f5c537d1747bb9fb90b3
[ "tests/command_template.py::TestOJTemplateCommandGenerator::test_generate_py_arc088_b" ]
[ "tests/command_template.py::TestOJTemplateCommand::test_main_py_abc152_b", "tests/command_template.py::TestOJTemplateCommandGenerator::test_generate_py_arc089_b" ]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2020-09-19 04:45:29+00:00
mit
4,397
pavdmyt__yaspin-35
diff --git a/HISTORY.rst b/HISTORY.rst index e42a4e8..f811286 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,6 +1,12 @@ Release History =============== +0.14.3 / 2019-05-12 +------------------- + +* fix(#29): race condition between spinner thread and ``write()`` + + 0.14.2 / 2019-04-27 ------------------- dif...
pavdmyt/yaspin
dd2fd2187fbdef81aede3ea6d2053c1ccd2d8034
diff --git a/tests/test_in_out.py b/tests/test_in_out.py index 180b642..0fe6e49 100644 --- a/tests/test_in_out.py +++ b/tests/test_in_out.py @@ -8,7 +8,9 @@ Checks that all input data is converted to unicode. And all output data is converted to builtin str type. """ +import re import sys +import time import pyt...
Race condition between spinner thread and write() When I use `write()` a lot on a spinner it often happens to me that the written text is displayed after the spinner message, like this: ``` [...] noot noot ⠋ spinning...noot noot noot noot [...] ``` I used the script below to recreate the problem. It takes som...
0.0
dd2fd2187fbdef81aede3ea6d2053c1ccd2d8034
[ "tests/test_in_out.py::test_spinner_write_race_condition" ]
[ "tests/test_in_out.py::test_input_converted_to_unicode['empty'-'empty", "tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'empty", "tests/test_in_out.py::test_input_converted_to_unicode['empty'-'ascii", "tests/test_in_out.py::test_out_converted_to_builtin_str['empty'-'ascii", "tests/test_in_o...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2019-04-18 15:28:04+00:00
mit
4,465
jaraco__path-216
diff --git a/newsfragments/216.feature.rst b/newsfragments/216.feature.rst new file mode 100644 index 0000000..ffa5f9d --- /dev/null +++ b/newsfragments/216.feature.rst @@ -0,0 +1,1 @@ +Use '.' as the default path. \ No newline at end of file diff --git a/path/__init__.py b/path/__init__.py index 7d46d1d..2283175 10064...
jaraco/path
54215092dd970c667c7234c6da5bfa0e3ad7ab89
diff --git a/test_path.py b/test_path.py index d105369..0bc0440 100644 --- a/test_path.py +++ b/test_path.py @@ -78,6 +78,12 @@ class TestBasics: d = Path('D:\\') assert d.relpathto(boz) == boz + def test_construction_without_args(self): + """ + Path class will construct a p...
`path.Path().files()` fails with `FileNotFoundError` ```python >>> import path, pathlib >>> pathlib.Path() WindowsPath('.') >>> path.Path() Path('') >>> list(pathlib.Path().iterdir()) [WindowsPath('.git'), WindowsPath('.idea'), WindowsPath('LICENSE'), WindowsPath('pyproject.toml'), WindowsPath('README.rs...
0.0
54215092dd970c667c7234c6da5bfa0e3ad7ab89
[ "test_path.py::TestBasics::test_construction_without_args" ]
[ "test_path.py::TestBasics::test_fspath", "test_path.py::TestBasics::test_joinpath_returns_same_type", "test_path.py::TestBasics::test_construction_from_none", "test_path.py::TestBasics::test_joinpath_to_nothing", "test_path.py::TestBasics::test_construction_from_int", "test_path.py::TestBasics::test_prope...
{ "failed_lite_validators": [ "has_added_files" ], "has_test_patch": true, "is_lite": false }
2023-07-07 02:09:58+00:00
mit
3,218
dgilland__pydash-164
diff --git a/AUTHORS.rst b/AUTHORS.rst index a1843ad..d167ec9 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -24,3 +24,4 @@ Contributors - Gonzalo Naveira, `gonzalonaveira@github <https://github.com/gonzalonaveira>`_ - Wenbo Zhao, zhaowb@gmail.com, `zhaowb@github <https://github.com/zhaowb>`_ - Mervyn Lee, `mervynlee...
dgilland/pydash
fa61732c01b39cec0de66f958cef27e7f31bcac2
diff --git a/tests/test_objects.py b/tests/test_objects.py index 2217438..b218043 100644 --- a/tests/test_objects.py +++ b/tests/test_objects.py @@ -573,11 +573,11 @@ def test_merge_no_link_list(): [ ( ( - {"fruits": ["apple"], "vegetables": ["beet"]}, - {"fruits...
merge_with: iteratee is lost when _merge_with is recursing. ```python def merge_array(obj_val, src_val): if isinstance(obj_val, list) and isinstance(src_val, list): return difference(obj_val + src_val) merge_with({ 'd': { 'x': [2] } }, { 'd': { 'x': [5] } }, merge_array) ``` ### expect ``` { 'd': { 'x...
0.0
fa61732c01b39cec0de66f958cef27e7f31bcac2
[ "tests/test_objects.py::test_merge_with[case0-expected0]" ]
[ "tests/test_objects.py::test_assign[case0-expected0]", "tests/test_objects.py::test_assign[case1-expected1]", "tests/test_objects.py::test_assign_with[case0-expected0]", "tests/test_objects.py::test_callables[case0-expected0]", "tests/test_objects.py::test_callables[case1-expected1]", "tests/test_objects....
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2021-06-26 09:07:43+00:00
mit
1,911
guykisel__inline-plz-228
diff --git a/inlineplz/linters/__init__.py b/inlineplz/linters/__init__.py index 7fede16..a0fd9a4 100644 --- a/inlineplz/linters/__init__.py +++ b/inlineplz/linters/__init__.py @@ -100,9 +100,9 @@ LINTERS = { 'install': [['npm', 'install', 'eslint']], 'help': [os.path.normpath('./node_modules/.bin/esl...
guykisel/inline-plz
dc293c43edd1609683294660fb7c6a0840fb24ea
diff --git a/tests/parsers/test_eslint.py b/tests/parsers/test_eslint.py index 8255168..780af9f 100644 --- a/tests/parsers/test_eslint.py +++ b/tests/parsers/test_eslint.py @@ -18,6 +18,6 @@ eslint_path = os.path.join( def test_eslint(): with codecs.open(eslint_path, encoding='utf-8', errors='replace') as inputfi...
switch eslint to a different formatter the json formatter breaks on long text: https://github.com/eslint/eslint/issues/5380 ``` b'Invalid string length\nRangeError: Invalid string length\n at JSON.stringify (<anonymous>)\n at module.exports (/home/travis/build/guykisel/inline-plz/node_modules/eslint/lib/forma...
0.0
dc293c43edd1609683294660fb7c6a0840fb24ea
[ "tests/parsers/test_eslint.py::test_eslint" ]
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2018-05-01 23:55:15+00:00
isc
2,683
intake__intake-439
diff --git a/intake/source/base.py b/intake/source/base.py index f3abbbb..79fc62e 100644 --- a/intake/source/base.py +++ b/intake/source/base.py @@ -259,13 +259,26 @@ class DataSource(DictSerialiseMixin): return self.plot def persist(self, ttl=None, **kwargs): - """Save data from this source to l...
intake/intake
aa83ccd41ed32f90f6bef5dbbe0e8a9e67c6d781
diff --git a/intake/container/tests/test_persist.py b/intake/container/tests/test_persist.py index d914d25..96a831f 100644 --- a/intake/container/tests/test_persist.py +++ b/intake/container/tests/test_persist.py @@ -44,6 +44,12 @@ def test_backtrack(temp_cache): assert s3 == s +def test_persist_with_nonnumeri...
persist ttl argument should check that it's an int. I just tried to use persist for the first time and passed a file name to the `ttl` argument (don't ask me why but I kind of thought `ttl` might be a terrible abbreviation of title). Passing a string to ttl did not through an error, but when I try to call `is_persisted...
0.0
aa83ccd41ed32f90f6bef5dbbe0e8a9e67c6d781
[ "intake/container/tests/test_persist.py::test_persist_with_nonnumeric_ttl_raises_error" ]
[ "intake/container/tests/test_persist.py::test_store", "intake/container/tests/test_persist.py::test_backtrack" ]
{ "failed_lite_validators": [ "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2019-11-08 17:48:15+00:00
bsd-2-clause
2,839
faucetsdn__chewie-39
diff --git a/chewie/chewie.py b/chewie/chewie.py index a046688..cfbb661 100644 --- a/chewie/chewie.py +++ b/chewie/chewie.py @@ -99,19 +99,19 @@ class Chewie: def auth_failure(self, src_mac, port_id): """failure shim between faucet and chewie - Args: - src_mac (MacAddre...
faucetsdn/chewie
79e0c35e0089af91349fcd233d6419a25b28c25a
diff --git a/test/test_chewie.py b/test/test_chewie.py new file mode 100644 index 0000000..931cdda --- /dev/null +++ b/test/test_chewie.py @@ -0,0 +1,76 @@ +"""Unittests for chewie/chewie.py""" + +import logging +import unittest + +from chewie.chewie import Chewie + + +def auth_handler(chewie, client_mac, port_id_mac):...
Could verify that all EAP packets in a sequence come from the same port. If we have 2 hosts with same MAC (e.g. 1 good, 1 Malicious) and they try to authenticate, it could be possible to authenticate on the malicious port when good is successful if malicious sends eap packet before the radius access-accept has been rec...
0.0
79e0c35e0089af91349fcd233d6419a25b28c25a
[ "test/test_chewie.py::ChewieTestCase::test_get_sm", "test/test_chewie.py::ChewieTestCase::test_get_sm_by_packet_id" ]
[ "test/test_chewie.py::ChewieTestCase::test_get_next_radius_packet_id", "test/test_full_state_machine.py::FullStateMachineStartTestCase::test_disabled_state", "test/test_full_state_machine.py::FullStateMachineStartTestCase::test_discard", "test/test_full_state_machine.py::FullStateMachineStartTestCase::test_di...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2018-09-18 03:31:11+00:00
apache-2.0
2,317
Stewori__pytypes-98
diff --git a/pytypes/typechecker.py b/pytypes/typechecker.py index a0cd92b..b6b4342 100644 --- a/pytypes/typechecker.py +++ b/pytypes/typechecker.py @@ -964,15 +964,19 @@ def typechecked_module(md, force_recursive = False): """ if not pytypes.checking_enabled: return md + # Save input to return or...
Stewori/pytypes
befcedde8cea9b189c643f905c2b7ad180f27f8e
diff --git a/tests/test_typechecker.py b/tests/test_typechecker.py index fc4483d..60546b5 100644 --- a/tests/test_typechecker.py +++ b/tests/test_typechecker.py @@ -2651,8 +2651,14 @@ class TestTypecheck_module(unittest.TestCase): def test_function_py2(self): from testhelpers import modulewide_typecheck_t...
typechecked(string) should have more consistent return type Currently if you call `typechecked` on a string module name, it has case-by-case behavior to sometimes return the original string and sometimes return the resolved module: ```python typechecked('requests') → <module 'requests'> typechecked('requests') → 're...
0.0
befcedde8cea9b189c643f905c2b7ad180f27f8e
[ "tests/test_typechecker.py::TestTypecheck_module::test_function_py2" ]
[ "tests/test_typechecker.py::testClass2_defTimeCheck", "tests/test_typechecker.py::testClass2_defTimeCheck2", "tests/test_typechecker.py::testClass2_defTimeCheck3", "tests/test_typechecker.py::testClass2_defTimeCheck4", "tests/test_typechecker.py::testClass3_defTimeCheck", "tests/test_typechecker.py::testC...
{ "failed_lite_validators": [ "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2020-08-06 06:08:27+00:00
apache-2.0
721
fepegar__torchio-267
diff --git a/torchio/data/subject.py b/torchio/data/subject.py index 0430423..76445e9 100644 --- a/torchio/data/subject.py +++ b/torchio/data/subject.py @@ -45,18 +45,15 @@ class Subject(dict): 'Only one dictionary as positional argument is allowed') raise ValueError(message) ...
fepegar/torchio
10f454b12581f8ea9ce03204dccab368e273086f
diff --git a/tests/data/test_subject.py b/tests/data/test_subject.py index 164036b..72adad4 100644 --- a/tests/data/test_subject.py +++ b/tests/data/test_subject.py @@ -3,6 +3,7 @@ """Tests for Subject.""" import tempfile +import torch from torchio import Subject, ScalarImage, RandomFlip from ..utils import Torch...
ValueError in Subject.spatial_shape **🐛Bug** <!-- A clear and concise description of what the bug is --> An error is raised if images have different number of channels, even if the spatial shape of all images are the same. This happens because it is computed using Subject.shape. It used to work until we added supp...
0.0
10f454b12581f8ea9ce03204dccab368e273086f
[ "tests/data/test_subject.py::TestSubject::test_inconsistent_shape", "tests/data/test_subject.py::TestSubject::test_inconsistent_spatial_shape" ]
[ "tests/data/test_subject.py::TestSubject::test_history", "tests/data/test_subject.py::TestSubject::test_input_dict", "tests/data/test_subject.py::TestSubject::test_no_sample", "tests/data/test_subject.py::TestSubject::test_positional_args", "tests/test_utils.py::TestUtils::test_apply_transform_to_file", "...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2020-08-12 17:30:18+00:00
mit
2,333
huggingface__transformers-30192
diff --git a/docs/source/en/perf_infer_gpu_one.md b/docs/source/en/perf_infer_gpu_one.md index 64583e4ba..de49d4427 100644 --- a/docs/source/en/perf_infer_gpu_one.md +++ b/docs/source/en/perf_infer_gpu_one.md @@ -194,6 +194,7 @@ For now, Transformers supports SDPA inference and training for the following arc * [Bert](...
huggingface/transformers
aafa7ce72b65c730788c122a72a974e464409e9a
diff --git a/tests/utils/test_image_utils.py b/tests/utils/test_image_utils.py index d6bc9a375..f360c4bb8 100644 --- a/tests/utils/test_image_utils.py +++ b/tests/utils/test_image_utils.py @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +impor...
Image classification pipeline fails with base64.encodebytes() input ### System Info transformers - 4.39.1 python 3.10.11 platform - ubuntu 22.04 ### Who can help? _No response_ ### Information - [ ] The official example scripts - [X] My own modified scripts ### Tasks - [ ] An officially supported task in the `...
0.0
aafa7ce72b65c730788c122a72a974e464409e9a
[ "tests/utils/test_image_utils.py::LoadImageTester::test_load_img_base64_encoded_bytes" ]
[ "tests/utils/test_image_utils.py::ImageFeatureExtractionTester::test_center_crop_array", "tests/utils/test_image_utils.py::ImageFeatureExtractionTester::test_center_crop_image", "tests/utils/test_image_utils.py::ImageFeatureExtractionTester::test_center_crop_tensor", "tests/utils/test_image_utils.py::ImageFea...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2024-04-11 16:30:34+00:00
apache-2.0
2,754
zooniverse__panoptes-python-client-207
diff --git a/panoptes_client/panoptes.py b/panoptes_client/panoptes.py index 3f59a9b..463751c 100644 --- a/panoptes_client/panoptes.py +++ b/panoptes_client/panoptes.py @@ -935,7 +935,7 @@ class LinkResolver(object): def __setattr__(self, name, value): reserved_names = ('raw', 'parent') - if name...
zooniverse/panoptes-python-client
a6f91519326e3be7e974b88ce4f8805c5db9a0e4
diff --git a/panoptes_client/tests/test_linkresolver.py b/panoptes_client/tests/test_linkresolver.py new file mode 100644 index 0000000..72555c6 --- /dev/null +++ b/panoptes_client/tests/test_linkresolver.py @@ -0,0 +1,23 @@ +from __future__ import absolute_import, division, print_function + +import unittest +import sy...
Cannot create and save new subject set since 1.1 This [script](https://github.com/miclaraia/muon_analysis/blob/master/muon/scripts/test_panoptes_connection.py) illustrates the problem. The script fails on `subject_set.save()`. Mimics the instructions in the tutorial detailed in the [docs](https://panoptes-python-client...
0.0
a6f91519326e3be7e974b88ce4f8805c5db9a0e4
[ "panoptes_client/tests/test_linkresolver.py::TestLinkResolver::test_set_new_link", "panoptes_client/tests/test_subject_set.py::TestSubjectSet::test_create" ]
[]
{ "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2019-02-22 16:58:26+00:00
apache-2.0
6,355
ethereum__py_ecc-6
diff --git a/py_ecc/secp256k1/secp256k1.py b/py_ecc/secp256k1/secp256k1.py index 68f1ca1..db93ee5 100644 --- a/py_ecc/secp256k1/secp256k1.py +++ b/py_ecc/secp256k1/secp256k1.py @@ -6,8 +6,11 @@ import sys if sys.version_info.major == 2: safe_ord = ord else: - def safe_ord(x): - return x + def safe_o...
ethereum/py_ecc
812722660d87c5c7366b1b4927dbf49a8ecbf3f9
diff --git a/tests/test_secp256k1.py b/tests/test_secp256k1.py index c7fbe23..a56bba1 100644 --- a/tests/test_secp256k1.py +++ b/tests/test_secp256k1.py @@ -12,3 +12,11 @@ def test_privtopub(): def test_ecdsa_raw_sign(): v, r, s = ecdsa_raw_sign(b'\x35' * 32, priv) assert ecdsa_raw_recover(b'\x35' * 32, (v, ...
secp256k1.py fails on Python 3.4 Error test: ```python import binascii import rlp # sha3 from module `pysha3` not `ssh3` import sha3 from py_ecc.secp256k1 import ecdsa_raw_recover n = 0 p = 20000000000 g = 100000 v = 1000 Tn = '' Tp = p.to_bytes((p.bit_length()//8) + 1,byteorder='big') Tg = g.to_bytes(...
0.0
812722660d87c5c7366b1b4927dbf49a8ecbf3f9
[ "tests/test_secp256k1.py::test_issue_4_bug" ]
[ "tests/test_secp256k1.py::test_privtopub", "tests/test_secp256k1.py::test_ecdsa_raw_sign" ]
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2017-11-15 03:22:45+00:00
mit
2,198
googleapis__synthtool-1951
diff --git a/synthtool/gcp/templates/python_library/.github/blunderbuss.yml b/synthtool/gcp/templates/python_library/.github/blunderbuss.yml index 18a3ed8..22ab79e 100644 --- a/synthtool/gcp/templates/python_library/.github/blunderbuss.yml +++ b/synthtool/gcp/templates/python_library/.github/blunderbuss.yml @@ -5,17 +5...
googleapis/synthtool
223f39e29577145d4238a522633c2f3e5e6dc8dc
diff --git a/tests/test_python_library.py b/tests/test_python_library.py index 0019ba7..b4d5019 100644 --- a/tests/test_python_library.py +++ b/tests/test_python_library.py @@ -178,7 +178,7 @@ def assert_valid_yaml(file): pytest.fail(f"unable to parse YAML: {file}") -def test_library_blunderbuss(): +de...
Support multiple `codeowner_team`s in `.repo-metadata.json` Today you can add a `codeowner_team` to `.repo-metadata.json`, and it will add that team as a CODEOWNER along side the language specific team. There are cases where we want multiple teams, often both a DPE team and a product engineering team that need CODEOWE...
0.0
223f39e29577145d4238a522633c2f3e5e6dc8dc
[ "tests/test_python_library.py::test_library_blunderbuss_multiple_codeowner" ]
[ "tests/test_python_library.py::test_library_noxfile[template_kwargs0-expected_text0]", "tests/test_python_library.py::test_library_noxfile[template_kwargs1-expected_text1]", "tests/test_python_library.py::test_library_noxfile[template_kwargs2-expected_text2]", "tests/test_python_library.py::test_library_noxfi...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2024-04-10 11:39:56+00:00
apache-2.0
2,633
Stranger6667__pyanyapi-42
diff --git a/.travis.yml b/.travis.yml index 1975b26..b7b5b14 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,30 @@ language: python python: - 3.5 -env: - - TOX_ENV=py26 - - TOX_ENV=py27 - - TOX_ENV=py32 - - TOX_ENV=py33 - - TOX_ENV=py34 - - TOX_ENV=py35 - - TOX_ENV=pypy - - TOX_ENV=pypy3 - - JYTHO...
Stranger6667/pyanyapi
aebee636ad26f387850a6c8ab820ce4aac3f9adb
diff --git a/tests/test_parsers.py b/tests/test_parsers.py index 38223e2..4958b21 100644 --- a/tests/test_parsers.py +++ b/tests/test_parsers.py @@ -63,6 +63,15 @@ def test_yaml_parser_error(): parsed.test +def test_yaml_parser_vulnerability(): + """ + In case of usage of yaml.load `test` value will ...
YAMLParser method is vulnerable from pyanyapi import YAMLParser YAMLParser({'test': 'container > test'}).parse('!!python/object/apply:os.system ["calc.exe"]').test Hi, there is a vulnerability in YAMLParser method in Interfaces.py, please see PoC above. It can execute arbitrary python commands resulting in command...
0.0
aebee636ad26f387850a6c8ab820ce4aac3f9adb
[ "tests/test_parsers.py::test_yaml_parser_error", "tests/test_parsers.py::test_yaml_parser_vulnerability", "tests/test_parsers.py::test_yaml_parse" ]
[ "tests/test_parsers.py::test_xml_objectify_parser", "tests/test_parsers.py::test_xml_objectify_parser_error", "tests/test_parsers.py::test_xml_parser_error", "tests/test_parsers.py::test_xml_parsed[settings0]", "tests/test_parsers.py::test_xml_parsed[settings1]", "tests/test_parsers.py::test_xml_simple_se...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2017-11-07 09:56:44+00:00
mit
724
SathyaBhat__spotify-dl-368
diff --git a/spotify_dl/spotify.py b/spotify_dl/spotify.py index f777a59..448d5e4 100644 --- a/spotify_dl/spotify.py +++ b/spotify_dl/spotify.py @@ -42,8 +42,14 @@ def fetch_tracks(sp, item_type, item_id): continue track_album_info = track_info.get("album") ...
SathyaBhat/spotify-dl
b56afb2b459b93245dede75b7c27fd46753707ff
diff --git a/tests/test_spotify_fetch_tracks.py b/tests/test_spotify_fetch_tracks.py index 89b2ed6..7addca4 100644 --- a/tests/test_spotify_fetch_tracks.py +++ b/tests/test_spotify_fetch_tracks.py @@ -32,6 +32,7 @@ def test_spotify_playlist_fetch_one(): "track_url": None, "playlist_num": 1, "...
Add BPM to metadata of MP3 songs. Since adding BPM to the metadata of the MP3 is an option provided with the Spotify API and mutagen supports it as well. This feature could help with many who are in the field of DJ Mixing.
0.0
b56afb2b459b93245dede75b7c27fd46753707ff
[ "tests/test_spotify_fetch_tracks.py::test_spotify_playlist_fetch_one", "tests/test_spotify_fetch_tracks.py::test_spotify_playlist_fetch_more", "tests/test_spotify_fetch_tracks.py::test_spotify_track_fetch_one", "tests/test_spotify_fetch_tracks.py::test_spotify_album_fetch_one", "tests/test_spotify_fetch_tra...
[ "tests/test_youtube.py::test_download_one_true_skip" ]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2023-12-30 12:03:54+00:00
mit
674
BelgianBiodiversityPlatform__python-dwca-reader-101
diff --git a/dwca/files.py b/dwca/files.py index a1bcd9a..bada8fa 100644 --- a/dwca/files.py +++ b/dwca/files.py @@ -6,7 +6,7 @@ from array import array from typing import List, Union, IO, Dict, Optional from dwca.descriptors import DataFileDescriptor -from dwca.rows import CoreRow, ExtensionRow +from dwca.rows imp...
BelgianBiodiversityPlatform/python-dwca-reader
b5b2bea333527353c5fe05b22e01c347a890ac61
diff --git a/dwca/test/test_datafile.py b/dwca/test/test_datafile.py index d5d7841..3fc461b 100644 --- a/dwca/test/test_datafile.py +++ b/dwca/test/test_datafile.py @@ -31,9 +31,13 @@ class TestCSVDataFile(unittest.TestCase): with DwCAReader(sample_data_path("dwca-2extensions.zip")) as dwca: exten...
Extend CSVDataFile to support hash index on Core file ### Description It would be useful to be able to generalize iterators over the type of record. AFAIK, there's nothing particularly special about the Core Record data-format-wise, so it should be possible to create iterator methods that apply arbitrarily to Core ...
0.0
b5b2bea333527353c5fe05b22e01c347a890ac61
[ "dwca/test/test_datafile.py::TestCSVDataFile::test_close", "dwca/test/test_datafile.py::TestCSVDataFile::test_coreid_index", "dwca/test/test_datafile.py::TestCSVDataFile::test_file_descriptor_attribute", "dwca/test/test_datafile.py::TestCSVDataFile::test_get_line_at_position_raises_indexerror", "dwca/test/t...
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_added_files" ], "has_test_patch": true, "is_lite": false }
2023-11-08 16:12:20+00:00
bsd-3-clause
105
minio__minio-py-1054
diff --git a/minio/commonconfig.py b/minio/commonconfig.py index 735dd42..9d43851 100644 --- a/minio/commonconfig.py +++ b/minio/commonconfig.py @@ -179,8 +179,6 @@ class Filter: ) if not valid: raise ValueError("only one of and, prefix or tag must be provided") - if prefix is not ...
minio/minio-py
bac587a450e0b1e63ea643d86f25006da2fcaba2
diff --git a/tests/unit/lifecycleconfig_test.py b/tests/unit/lifecycleconfig_test.py index d9ecde8..577ad01 100644 --- a/tests/unit/lifecycleconfig_test.py +++ b/tests/unit/lifecycleconfig_test.py @@ -41,6 +41,18 @@ class LifecycleConfigTest(TestCase): ) xml.marshal(config) + config = Lifecyc...
Issue setting bucket (and potentially object) tags I am using minio-py 7.0.0 and receive a MalformedXML S3Error any time I try to set the tags of my bucket. This issue probably occurs with object tags as well, but I have not tested that yet. The simplified code below follows your API example code but seems to fail. ...
0.0
bac587a450e0b1e63ea643d86f25006da2fcaba2
[ "tests/unit/lifecycleconfig_test.py::LifecycleConfigTest::test_config" ]
[]
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2021-01-05 06:07:00+00:00
apache-2.0
3,942
PostHog__posthog-python-30
diff --git a/posthog/client.py b/posthog/client.py index 0588082..22157cf 100644 --- a/posthog/client.py +++ b/posthog/client.py @@ -330,8 +330,8 @@ class Client(object): except IndexError: return default - if feature_flag.get("is_simple_flag") and feature_flag.get("rollout_pe...
PostHog/posthog-python
372fb74637bbcdc0c1de70f9f11b2b5d754553f0
diff --git a/posthog/test/test_client.py b/posthog/test/test_client.py index e4971db..9c867a0 100644 --- a/posthog/test/test_client.py +++ b/posthog/test/test_client.py @@ -325,14 +325,28 @@ class TestClient(unittest.TestCase): self.assertTrue(client.feature_enabled("beta-feature", "distinct_id")) @mock...
Library does not properly handle feature flags with no % rollout See sentry issue https://sentry.io/organizations/posthog/issues/2220836956/?project=1899813. If a feature flag is enabled for everyone without a % rollout, the client crashes. Notice that this is different from a 100% rollout which works fine. ``` u...
0.0
372fb74637bbcdc0c1de70f9f11b2b5d754553f0
[ "posthog/test/test_client.py::TestClient::test_feature_enabled_simple_with_none_rollout_percentage", "posthog/test/test_client.py::TestClient::test_feature_enabled_simple_without_rollout_percentage" ]
[ "posthog/test/test_client.py::TestClient::test_advanced_capture", "posthog/test/test_client.py::TestClient::test_advanced_identify", "posthog/test/test_client.py::TestClient::test_advanced_page", "posthog/test/test_client.py::TestClient::test_advanced_set", "posthog/test/test_client.py::TestClient::test_adv...
{ "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2021-05-14 11:50:01+00:00
mit
465
gtsystem__python-remotezip-14
diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index cd0191b..c56f2c7 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -12,7 +12,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 strategy: ...
gtsystem/python-remotezip
8d6634cc51e127afb7a9704c364f4fa136b5fd8d
diff --git a/test_remotezip.py b/test_remotezip.py index 317a57c..c45f41c 100644 --- a/test_remotezip.py +++ b/test_remotezip.py @@ -238,6 +238,32 @@ class TestRemoteZip(unittest.TestCase): self.assertIsNone(zfile.testzip()) + @staticmethod + def make_unordered_zip_file(fname): + with ...
Get 416 Client Error on some zip files remotezip raising `remotezip.RemoteIOError` on some files. For example, http://0x0.st/o5Pa.apk (it's unavailable for now, so I re-uploaded it to https://transfer.sh/get/rndzvr/test.apk) Also uploaded it to GitHub as zip archive: [test.zip](https://github.com/gtsystem/python-remot...
0.0
8d6634cc51e127afb7a9704c364f4fa136b5fd8d
[ "test_remotezip.py::TestRemoteZip::test_unordered_fileinfo" ]
[ "test_remotezip.py::TestRemoteIO::test_simple", "test_remotezip.py::TestRemoteIO::test_file_access", "test_remotezip.py::TestPartialBuffer::test_static_seek", "test_remotezip.py::TestPartialBuffer::test_static", "test_remotezip.py::TestPartialBuffer::test_static_out_of_bound", "test_remotezip.py::TestPart...
{ "failed_lite_validators": [ "has_hyperlinks", "has_git_commit_hash", "has_media", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-12-21 22:01:59+00:00
mit
2,681
m3dev__gokart-147
diff --git a/gokart/redis_lock.py b/gokart/redis_lock.py index d371b67..a287fd0 100644 --- a/gokart/redis_lock.py +++ b/gokart/redis_lock.py @@ -11,11 +11,11 @@ logger = getLogger(__name__) class RedisParams(NamedTuple): - redis_host: str = None - redis_port: str = None - redis_timeout: int = None - re...
m3dev/gokart
5a10506e5ef762d384fec1651e9cb56daa276336
diff --git a/test/test_task_on_kart.py b/test/test_task_on_kart.py index 6b5a118..b1f4d10 100644 --- a/test/test_task_on_kart.py +++ b/test/test_task_on_kart.py @@ -153,6 +153,12 @@ class TaskTest(unittest.TestCase): self.assertIsInstance(default_target, SingleFileTarget) self.assertEqual(f'./resource...
Default path for make_large_data_frame_target In the same manner as `output()`、it might be great if `make_large_data_frame_target()` can produce default path. ``` file_path = self.__module__.replace('.', '/') return self.make_large_data_frame_target(os.path.join(file_path, f'{type(self).__name__}.z...
0.0
5a10506e5ef762d384fec1651e9cb56daa276336
[ "test/test_task_on_kart.py::TaskTest::test_default_large_dataframe_target" ]
[ "test/test_task_on_kart.py::TaskTest::test_add_cofigureation_evaluation_order", "test/test_task_on_kart.py::TaskTest::test_add_configuration", "test/test_task_on_kart.py::TaskTest::test_compare_targets_of_different_tasks", "test/test_task_on_kart.py::TaskTest::test_complete_when_input_and_output_equal", "te...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-11-29 01:30:47+00:00
mit
3,663
tern-tools__tern-764
diff --git a/tern/analyze/common.py b/tern/analyze/common.py index df4889a..a9de792 100644 --- a/tern/analyze/common.py +++ b/tern/analyze/common.py @@ -31,9 +31,11 @@ logger = logging.getLogger(constants.logger_name) def get_shell_commands(shell_command_line): - '''Given a shell command line, get a list of Com...
tern-tools/tern
044dc470ec5be8aacbc085a5ae307c608ff13255
diff --git a/tests/test_analyze_common.py b/tests/test_analyze_common.py index e40445c..82aba50 100644 --- a/tests/test_analyze_common.py +++ b/tests/test_analyze_common.py @@ -32,10 +32,18 @@ class TestAnalyzeCommon(unittest.TestCase): del self.test_dockerfile def testGetShellCommands(self): - c...
Report RUN command statements that are non-deterministic like if and case statements **Describe the Feature** Currently, the report notices just says that if, case and for statements are unrecognizable. It would be nice to add notices for non-deterministic branching statements like if and case statements as you could ...
0.0
044dc470ec5be8aacbc085a5ae307c608ff13255
[ "tests/test_analyze_common.py::TestAnalyzeCommon::testGetShellCommands" ]
[ "tests/test_analyze_common.py::TestAnalyzeCommon::testConsolidateCommandsWithDifferentCommands", "tests/test_analyze_common.py::TestAnalyzeCommon::testConsolidateCommandsWithSameCommands", "tests/test_analyze_common.py::TestAnalyzeCommon::testFilterInstallCommands", "tests/test_analyze_common.py::TestAnalyzeC...
{ "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-07-11 01:09:53+00:00
bsd-2-clause
5,854
tox-dev__tox-docker-19
diff --git a/README.md b/README.md index c99702c..efd4f4f 100644 --- a/README.md +++ b/README.md @@ -31,17 +31,24 @@ your test suite as it runs, as ordinary environment variables: POSTGRES_USER=username POSTGRES_DB=dbname -## Port Mapping +## Host and Port Mapping tox-docker runs docker with the ...
tox-dev/tox-docker
c571732e0c606a1cde123bf6899a7c246ba2e44e
diff --git a/test_integration.py b/test_integration.py index 2c672fe..4a0be70 100644 --- a/test_integration.py +++ b/test_integration.py @@ -1,6 +1,10 @@ import os import unittest -import urllib2 + +try: + from urllib.request import urlopen +except ImportError: + from urllib2 import urlopen class ToxDocker...
support for remote docker hosts Docker itself could run on a remote machine and docker would use DOCKER_HOST variable to connect to it. Still, based on the fact that no IP address is returned in enviornment variables I suppose that tox-docker would not be able to work in this case. This is a serious isse as now dock...
0.0
c571732e0c606a1cde123bf6899a7c246ba2e44e
[ "test_registry.py::ToxDockerRegistryTest::test_escape_env_var" ]
[]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2019-05-14 13:57:01+00:00
bsd-3-clause
6,091
GSTT-CSC__hazen-363
diff --git a/hazenlib/__init__.py b/hazenlib/__init__.py index dafcf1a..309c585 100644 --- a/hazenlib/__init__.py +++ b/hazenlib/__init__.py @@ -112,7 +112,7 @@ import importlib import inspect import logging import sys -import pprint +import json import os from docopt import docopt @@ -156,7 +156,6 @@ def init_t...
GSTT-CSC/hazen
5d9e4d747ccd1c908ac5cc0bfbbdb60c470e9bfb
diff --git a/tests/test_uniformity.py b/tests/test_uniformity.py index 8fe2611..2fa43ec 100644 --- a/tests/test_uniformity.py +++ b/tests/test_uniformity.py @@ -18,8 +18,8 @@ class TestUniformity(unittest.TestCase): def test_uniformity(self): results = self.uniformity_task.run() key = self.unifor...
Improve displaying results on terminal PrettyPrinter could be replaced with `json.dumps()` that can format and display the result dictionary in a simple structured way with less configuration needed. currently with PrettyPrint: (more compact) <img width="759" alt="Screenshot 2023-07-15 at 18 27 16" src="https://git...
0.0
5d9e4d747ccd1c908ac5cc0bfbbdb60c470e9bfb
[ "tests/test_uniformity.py::TestUniformity::test_uniformity", "tests/test_uniformity.py::TestSagUniformity::test_uniformity", "tests/test_uniformity.py::TestCorUniformity::test_uniformity" ]
[]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2023-07-28 18:22:43+00:00
apache-2.0
261
fullflu__pydtr-9
diff --git a/README.md b/README.md index 0210681..76d80b4 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Pydtr enables you to implement DTR methods easily by using sklearn-based interfa | Method | Single binary treatment | Multiple treatments | Multinomial treatment ...
fullflu/pydtr
13d59092b7e3d289945611b27951e3011a9d3beb
diff --git a/tests/test_iqlearn_sklearn_predict.py b/tests/test_iqlearn_sklearn_predict.py index faec86e..e8b822c 100644 --- a/tests/test_iqlearn_sklearn_predict.py +++ b/tests/test_iqlearn_sklearn_predict.py @@ -114,11 +114,11 @@ def test_iqlearn_regwrapper_rule(): assert len(dtr_model.models[0]) == 2 -def te...
fix get_params # WHY There is a bug in the `get_params` method (`self.models` cannot be sliced) : ``` for t, m in enumerate(self.models[:-1]): <- ``` # TODO - [ ] fix the function - [ ] add tests of the function
0.0
13d59092b7e3d289945611b27951e3011a9d3beb
[ "tests/test_iqlearn_sm_predict.py::test_iqlearn_sm_get_params" ]
[ "tests/test_iqlearn_sklearn_predict.py::test_iqlearn_regwrapper_rule", "tests/test_iqlearn_sklearn_predict.py::test_iqlearn_rf", "tests/test_iqlearn_sklearn_predict.py::test_iqlearn_regwrapper_rf_multiple_actions", "tests/test_iqlearn_sklearn_predict.py::test_iqlearn_regwrapper_rf_ordinalencoder", "tests/te...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-10-24 10:42:12+00:00
bsd-3-clause
2,431
jupyter-server__jupyter_server-574
diff --git a/jupyter_server/services/contents/filemanager.py b/jupyter_server/services/contents/filemanager.py index 376a8db62..54e2dca38 100644 --- a/jupyter_server/services/contents/filemanager.py +++ b/jupyter_server/services/contents/filemanager.py @@ -119,6 +119,16 @@ class FileContentsManager(FileManagerMixin, Co...
jupyter-server/jupyter_server
90f619cf11eec842a27eec25692f9d65adccf169
diff --git a/jupyter_server/tests/services/contents/test_manager.py b/jupyter_server/tests/services/contents/test_manager.py index 9063d2249..386d3ed60 100644 --- a/jupyter_server/tests/services/contents/test_manager.py +++ b/jupyter_server/tests/services/contents/test_manager.py @@ -513,6 +513,47 @@ async def test_del...
Allow non-empty directory deletion for windows through settings Hey would it be ok to allow non-empty directory deletion for windows through settings? https://github.com/jupyter-server/jupyter_server/blob/f914126d173dde7d2b2f6a6d474648060c823419/jupyter_server/services/contents/filemanager.py#L492
0.0
90f619cf11eec842a27eec25692f9d65adccf169
[ "jupyter_server/tests/services/contents/test_manager.py::test_delete_non_empty_folder[jp_contents_manager0-False-True-False]", "jupyter_server/tests/services/contents/test_manager.py::test_delete_non_empty_folder[jp_contents_manager1-False-True-False]", "jupyter_server/tests/services/contents/test_manager.py::t...
[ "jupyter_server/tests/services/contents/test_manager.py::test_root_dir[FileContentsManager]", "jupyter_server/tests/services/contents/test_manager.py::test_root_dir[AsyncFileContentsManager]", "jupyter_server/tests/services/contents/test_manager.py::test_missing_root_dir[FileContentsManager]", "jupyter_server...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2021-08-20 09:57:24+00:00
bsd-3-clause
3,360
simonw__sqlite-utils-142
diff --git a/docs/python-api.rst b/docs/python-api.rst index 9697fd3..5860397 100644 --- a/docs/python-api.rst +++ b/docs/python-api.rst @@ -410,7 +410,7 @@ Use it like this: "is_good_dog": True, }], pk="id", column_order=("id", "twitter", "name")) -The column types used in the ``CREATE TABLE`` statemen...
simonw/sqlite-utils
ea87c2b943fdd162c42a900ac0aea5ecc2f4b9d9
diff --git a/tests/test_create.py b/tests/test_create.py index a84eb8d..fc8edc0 100644 --- a/tests/test_create.py +++ b/tests/test_create.py @@ -707,13 +707,24 @@ def test_insert_thousands_using_generator(fresh_db): assert 10000 == fresh_db["test"].count -def test_insert_thousands_ignores_extra_columns_after_f...
insert_all(..., alter=True) should work for new columns introduced after the first 100 records Is there a way to make `.insert_all()` work properly when new columns are introduced outside the first 100 records (with or without the `alter=True` argument)? I'm using `.insert_all()` to bulk insert ~3-4k records at a ti...
0.0
ea87c2b943fdd162c42a900ac0aea5ecc2f4b9d9
[ "tests/test_create.py::test_insert_thousands_raises_exception_wtih_extra_columns_after_first_100", "tests/test_create.py::test_insert_thousands_adds_extra_columns_after_first_100_with_alter" ]
[ "tests/test_create.py::test_create_table", "tests/test_create.py::test_create_table_compound_primary_key", "tests/test_create.py::test_create_table_with_bad_defaults", "tests/test_create.py::test_create_table_with_invalid_column_characters", "tests/test_create.py::test_create_table_with_defaults", "tests/...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2020-08-28 22:22:57+00:00
apache-2.0
5,501
kedro-org__kedro-3272
diff --git a/RELEASE.md b/RELEASE.md index 90b8adf1..33dc1c28 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -6,6 +6,7 @@ * The new spaceflights starters, `spaceflights-pandas`, `spaceflights-pandas-viz`, `spaceflights-pyspark`, and `spaceflights-pyspark-viz` can be used with the `kedro new` command with the `--starter` ...
kedro-org/kedro
6f4119f8912a4ba7b9f14980ff18a89a0dda9abd
diff --git a/tests/io/test_core.py b/tests/io/test_core.py index dcf2f30a..1cbea798 100644 --- a/tests/io/test_core.py +++ b/tests/io/test_core.py @@ -19,6 +19,7 @@ from kedro.io.core import ( generate_timestamp, get_filepath_str, get_protocol_and_path, + parse_dataset_definition, validate_on_for...
Make import failures in `kedro-datasets` clearer ## Description Disambiguate the "module does not exist" error from the `ImportError` in messages like: ``` DatasetError: An exception occurred when parsing config for dataset 'companies': Class 'polars.CSVDataSet' not found or one of its dependencies has not been i...
0.0
6f4119f8912a4ba7b9f14980ff18a89a0dda9abd
[ "tests/io/test_core.py::TestCoreFunctions::test_dataset_name_typo", "tests/io/test_core.py::TestCoreFunctions::test_dataset_missing_dependencies" ]
[ "tests/io/test_core.py::TestCoreFunctions::test_str_representation[1]", "tests/io/test_core.py::TestCoreFunctions::test_str_representation[True]", "tests/io/test_core.py::TestCoreFunctions::test_str_representation[False]", "tests/io/test_core.py::TestCoreFunctions::test_str_representation[0]", "tests/io/tes...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2023-11-06 05:14:09+00:00
apache-2.0
3,411
piotrmaslanka__satella-11
diff --git a/satella/coding/recast_exceptions.py b/satella/coding/recast_exceptions.py index bf164db4..32e4e1c8 100644 --- a/satella/coding/recast_exceptions.py +++ b/satella/coding/recast_exceptions.py @@ -45,7 +45,8 @@ class rethrow_as(object): """ # You can also provide just two exceptions - ...
piotrmaslanka/satella
5fa0a67e4d35431f2f54740ba8fcfbd7f6d8bc59
diff --git a/tests/test_coding/test_rethrow.py b/tests/test_coding/test_rethrow.py index ce17f722..80dd8ec6 100644 --- a/tests/test_coding/test_rethrow.py +++ b/tests/test_coding/test_rethrow.py @@ -39,4 +39,17 @@ class TestStuff(unittest.TestCase): def lol(): raise ValueError() - self.as...
Bad rethrow_as ```python @rethrow_as((UnicodeDecodeError, ConfigurationMalformed), (json.JSONDecodeError, ConfigurationMalformed)) @rethrow_as(ValueError, ConfigurationMalformed) @rethrow_as(binascii.Error, ConfigurationMalformed) @rethrow_as(TypeError, ConfigurationError) def ...
0.0
5fa0a67e4d35431f2f54740ba8fcfbd7f6d8bc59
[ "tests/test_coding/test_rethrow.py::TestStuff::test_issue_10" ]
[ "tests/test_coding/test_rethrow.py::TestStuff::test_rethrow", "tests/test_coding/test_rethrow.py::TestStuff::test_rethrow_2", "tests/test_coding/test_rethrow.py::TestStuff::test_rethrow_3", "tests/test_coding/test_rethrow.py::TestStuff::test_silencer", "tests/test_coding/test_rethrow.py::TestStuff::test_sil...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2018-02-16 16:59:11+00:00
bsd-3-clause
4,571
PlasmaControl__DESC-613
diff --git a/desc/random.py b/desc/random.py new file mode 100644 index 000000000..e40213d43 --- /dev/null +++ b/desc/random.py @@ -0,0 +1,198 @@ +"""Utilities for creating random surfaces and profiles.""" + +import numpy as np +import scipy.optimize +import scipy.stats +from numpy.random import default_rng + +from des...
PlasmaControl/DESC
61797b69e6991b0284e76e0e493d9240edc779e0
diff --git a/tests/test_random.py b/tests/test_random.py new file mode 100644 index 000000000..c2390a275 --- /dev/null +++ b/tests/test_random.py @@ -0,0 +1,81 @@ +"""Tests for random surfaces, profiles etc.""" +import numpy as np +import pytest + +from desc.equilibrium import Equilibrium +from desc.grid import LinearG...
Add utilites to create "random" equilibria For database studies, testing, examples etc, it would be nice to be able to generate some "random" equilibria that satisfy certain basic criteria, such as major/minor radius, field strength, beta, etc. - [ ] Random surface with approximate shape that ideally doesn't self in...
0.0
61797b69e6991b0284e76e0e493d9240edc779e0
[ "tests/test_random.py::test_random_pressure", "tests/test_random.py::test_random_surface" ]
[]
{ "failed_lite_validators": [ "has_added_files" ], "has_test_patch": true, "is_lite": false }
2023-08-07 18:21:19+00:00
mit
460
ministryofjustice__mt940-writer-12
diff --git a/mt940_writer.py b/mt940_writer.py index b6a3ad9..f3577ac 100644 --- a/mt940_writer.py +++ b/mt940_writer.py @@ -58,11 +58,12 @@ class Balance: class Transaction: - def __init__(self, date, amount, transaction_type, narrative): + def __init__(self, date, amount, transaction_type, narrative, addit...
ministryofjustice/mt940-writer
899a25186b9fe12e60f169789de72ade5aa5fbf5
diff --git a/tests/test_mt940_writer.py b/tests/test_mt940_writer.py index cf4e232..aa7afd7 100644 --- a/tests/test_mt940_writer.py +++ b/tests/test_mt940_writer.py @@ -5,19 +5,6 @@ from unittest import TestCase import mt940_writer as mt940 -EXPECTED_OUTPUT = ( - ':20:59716\n' - ':25:80008000 102030\n' - ...
add support for Tag 86 <img width="651" alt="image" src="https://github.com/ministryofjustice/mt940-writer/assets/20453622/fb184e68-7eaf-4b13-89c4-f6075d2f28b8"> <img width="474" alt="image" src="https://github.com/ministryofjustice/mt940-writer/assets/20453622/6e08494e-b5f5-41f5-8c97-50de4b552165">
0.0
899a25186b9fe12e60f169789de72ade5aa5fbf5
[ "tests/test_mt940_writer.py::MT940WriterTestCase::test_write_statement_with_additional_transaction_info" ]
[ "tests/test_mt940_writer.py::MT940WriterTestCase::test_write_statement" ]
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2023-11-15 14:20:55+00:00
mit
3,943
dfm__tess-atlas-108
diff --git a/setup.py b/setup.py index 0a7c68b..dabe2f7 100644 --- a/setup.py +++ b/setup.py @@ -31,15 +31,17 @@ INSTALL_REQUIRES = [ "lightkurve>=2.0.11", "plotly>=4.9.0", "arviz>=0.10.0", - "corner", + "corner>=2.2.1", "pandas", "jupyter", "ipykernel", - "jupytext", + "jupyte...
dfm/tess-atlas
6274de545082661de3677fb609fa7274f26afb47
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d45d0c3..ca420da 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -26,7 +26,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install --use...
Cluster jobs failing to pre-process notebooks: TypeError: 'coroutine' object is not subscriptable
0.0
6274de545082661de3677fb609fa7274f26afb47
[ "tests/test_slurm_job_generator.py::JobgenTest::test_slurmfile" ]
[]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_added_files", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2021-10-06 02:54:35+00:00
mit
1,902
tobi-wan-kenobi__bumblebee-status-714
diff --git a/bumblebee_status/modules/contrib/arch_update.py b/bumblebee_status/modules/contrib/arch_update.py new file mode 120000 index 0000000..57fd99f --- /dev/null +++ b/bumblebee_status/modules/contrib/arch_update.py @@ -0,0 +1,1 @@ +arch-update.py \ No newline at end of file diff --git a/bumblebee_status/modules...
tobi-wan-kenobi/bumblebee-status
96f8e92822f8b72287ef97bbdd9a0c9bf1a063da
diff --git a/tests/modules/contrib/test_arch-update.py b/tests/modules/contrib/test_arch-update.py index 6a1c172..b11187b 100644 --- a/tests/modules/contrib/test_arch-update.py +++ b/tests/modules/contrib/test_arch-update.py @@ -3,3 +3,5 @@ import pytest def test_load_module(): __import__("modules.contrib.arch-up...
Modules names with hyphens (-) Hey, ya. Should we rename the modules below to match the [Python Naming Conventions](https://www.python.org/dev/peps/pep-0008/#package-and-module-names)? ```sh modules/core/layout-xkb.py modules/contrib/layout-xkbswitch.py modules/contrib/arch-update.py modules/contrib/battery-u...
0.0
96f8e92822f8b72287ef97bbdd9a0c9bf1a063da
[ "tests/modules/contrib/test_arch-update.py::test_load_symbolic_link_module", "tests/modules/contrib/test_layout-xkbswitch.py::test_load_symbolic_link_module" ]
[ "tests/modules/contrib/test_arch-update.py::test_load_module", "tests/modules/contrib/test_layout-xkbswitch.py::test_load_module" ]
{ "failed_lite_validators": [ "has_hyperlinks", "has_added_files" ], "has_test_patch": true, "is_lite": false }
2020-10-01 22:19:14+00:00
mit
5,932
Azure__iotedgedev-173
diff --git a/iotedgedev/azurecli.py b/iotedgedev/azurecli.py index c5bce70..6bce331 100644 --- a/iotedgedev/azurecli.py +++ b/iotedgedev/azurecli.py @@ -226,10 +226,10 @@ class AzureCli: return result - def apply_configuration(self, deviceId, connection_string, config): - self.output.status(f("De...
Azure/iotedgedev
ce59bad1286bf650d442b2b7fbe16a3db676a497
diff --git a/tests/test_connectionstring.py b/tests/test_connectionstring.py new file mode 100644 index 0000000..21d0dc9 --- /dev/null +++ b/tests/test_connectionstring.py @@ -0,0 +1,78 @@ +import os +import pytest +from dotenv import load_dotenv +from iotedgedev.connectionstring import ConnectionString, IoTHubConnecti...
AZ IOT HUB apply-configuration needs hubname. If user has old version of az cli iot extension installed they get this: `az iot hub apply-configuration: error: argument --hub-name/-n is required ` - add the -n parameter to the apply-configuration call. you can get it in IOTHUB_CONNECTION_INFO.HostName apply-...
0.0
ce59bad1286bf650d442b2b7fbe16a3db676a497
[ "tests/test_connectionstring.py::test_valid_connectionstring", "tests/test_connectionstring.py::test_valid_iothub_connectionstring", "tests/test_connectionstring.py::test_valid_devicehub_connectionstring", "tests/test_connectionstring.py::test_invalid_connectionstring", "tests/test_connectionstring.py::test...
[ "tests/test_connectionstring.py::test_empty_connectionstring", "tests/test_connectionstring.py::test_empty_iothub_connectionstring", "tests/test_connectionstring.py::test_empty_device_connectionstring", "tests/test_connectionstring.py::test_invalid_iothub_connectionstring" ]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2018-05-16 17:52:55+00:00
mit
59
podhmo__swagger-marshmallow-codegen-74
diff --git a/swagger_marshmallow_codegen/codegen/config.py b/swagger_marshmallow_codegen/codegen/config.py index 429da80..56f8b2f 100644 --- a/swagger_marshmallow_codegen/codegen/config.py +++ b/swagger_marshmallow_codegen/codegen/config.py @@ -2,10 +2,11 @@ from __future__ import annotations import typing_extensions ...
podhmo/swagger-marshmallow-codegen
6d5dcfa88e8882a293434e3c3fcbf4837fd21c7d
diff --git a/swagger_marshmallow_codegen/tests/legacy_dst/00default.py b/swagger_marshmallow_codegen/tests/legacy_dst/00default.py index fc76808..090bfa1 100644 --- a/swagger_marshmallow_codegen/tests/legacy_dst/00default.py +++ b/swagger_marshmallow_codegen/tests/legacy_dst/00default.py @@ -10,7 +10,8 @@ class X(Schem...
CI is broken, DateTime field handling is changed refs https://github.com/marshmallow-code/marshmallow/issues/1234
0.0
6d5dcfa88e8882a293434e3c3fcbf4837fd21c7d
[ "swagger_marshmallow_codegen/tests/test_codegen_legacy.py::test[./legacy_src/00person.yaml-./legacy_dst/00person.py-]", "swagger_marshmallow_codegen/tests/test_codegen_legacy.py::test[./legacy_src/01person.yaml-./legacy_dst/01person.py-]", "swagger_marshmallow_codegen/tests/test_codegen_legacy.py::test[./legacy...
[]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-11-03 10:22:46+00:00
mit
4,619
meejah__txtorcon-390
diff --git a/docs/releases.rst b/docs/releases.rst index ea32618..517a41c 100644 --- a/docs/releases.rst +++ b/docs/releases.rst @@ -18,6 +18,7 @@ See also :ref:`api_stability`. `git main <https://github.com/meejah/txtorcon>`_ *will likely become v23.6.0* * Fix test-failures on Python 3.12 + * Particular GETINFO h...
meejah/txtorcon
c0c98ff4bb888b9e1e2b5b53e6a0ce5a8be3ba69
diff --git a/test/test_torcontrolprotocol.py b/test/test_torcontrolprotocol.py index 23ddeec..e15bdf0 100644 --- a/test/test_torcontrolprotocol.py +++ b/test/test_torcontrolprotocol.py @@ -226,7 +226,7 @@ class DisconnectionTests(unittest.TestCase): it_was_called.yes = False d = self.protocol.when_d...
When tor process exits unexpectedly tor.protocol.get_info hangs Here is a minimal reproduction for this issue: ```python from twisted.internet.task import react from twisted.internet.defer import ensureDeferred import txtorcon EXIT_RELAY_FP = [ '130CFCF38BA3327E3001A1DB2A4B5ACBDAE248D9', # this triggers the...
0.0
c0c98ff4bb888b9e1e2b5b53e6a0ce5a8be3ba69
[ "test/test_torcontrolprotocol.py::DisconnectionTests::test_disconnect_subsequent_commands" ]
[ "test/test_torcontrolprotocol.py::InterfaceTests::test_implements", "test/test_torcontrolprotocol.py::InterfaceTests::test_object_implements", "test/test_torcontrolprotocol.py::LogicTests::test_set_conf_wrong_args", "test/test_torcontrolprotocol.py::FactoryTests::test_create", "test/test_torcontrolprotocol....
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2023-08-29 22:24:50+00:00
mit
3,852
alephdata__servicelayer-60
diff --git a/servicelayer/worker.py b/servicelayer/worker.py index 939a3a3..f2a45b3 100644 --- a/servicelayer/worker.py +++ b/servicelayer/worker.py @@ -1,5 +1,6 @@ import signal import logging +import sys from threading import Thread from banal import ensure_list from abc import ABC, abstractmethod @@ -10,7 +11,1...
alephdata/servicelayer
ebde2a96658c9ecda9a7f9048cd106ef580dda5b
diff --git a/tests/test_worker.py b/tests/test_worker.py index 60e14a9..f4af193 100644 --- a/tests/test_worker.py +++ b/tests/test_worker.py @@ -1,4 +1,5 @@ from unittest import TestCase +import pytest from servicelayer.cache import get_fakeredis from servicelayer.jobs import Job @@ -34,8 +35,6 @@ class WorkerTest...
Worker doesn't exit on KeyboardInterrupt when running in multi-threaded mode
0.0
ebde2a96658c9ecda9a7f9048cd106ef580dda5b
[ "tests/test_worker.py::WorkerTest::test_run" ]
[]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-02-17 11:13:08+00:00
mit
1,018
spyder-ide__spyder-kernels-86
diff --git a/spyder_kernels/customize/spydercustomize.py b/spyder_kernels/customize/spydercustomize.py index 09247ed..64aa18f 100644 --- a/spyder_kernels/customize/spydercustomize.py +++ b/spyder_kernels/customize/spydercustomize.py @@ -534,8 +534,13 @@ class UserModuleReloader(object): def __init__(self, namelist...
spyder-ide/spyder-kernels
855acc7006fa1a61c03ffda0e379a532a174b540
diff --git a/spyder_kernels/customize/tests/test_spydercustomize.py b/spyder_kernels/customize/tests/test_spydercustomize.py index e478889..771d089 100644 --- a/spyder_kernels/customize/tests/test_spydercustomize.py +++ b/spyder_kernels/customize/tests/test_spydercustomize.py @@ -19,29 +19,61 @@ from spyder_kernels.cus...
NameError: name 'modpath' is not defined Commit 31694ab74d9c5494a2c6054d2aaeee05cfc9ec15 introduced a bug when running a file a second time. I'm using the latest `spyder-kernels` on master with the latest `spyder` also on master. Windows 10, Python 3.7.1 64-bit ```python Traceback (most recent call last): ...
0.0
855acc7006fa1a61c03ffda0e379a532a174b540
[ "spyder_kernels/customize/tests/test_spydercustomize.py::test_umr_run", "spyder_kernels/customize/tests/test_spydercustomize.py::test_umr_previous_modules", "spyder_kernels/customize/tests/test_spydercustomize.py::test_umr_namelist" ]
[]
{ "failed_lite_validators": [ "has_git_commit_hash", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2019-02-06 17:05:39+00:00
mit
5,694
barrust__pyprobables-115
diff --git a/probables/blooms/bloom.py b/probables/blooms/bloom.py index 912cc92..1da0311 100644 --- a/probables/blooms/bloom.py +++ b/probables/blooms/bloom.py @@ -315,21 +315,9 @@ class BloomFilter: with open(filename, "w", encoding="utf-8") as file: print(f"/* BloomFilter Export of a {bloom_typ...
barrust/pyprobables
84dbffc9a5a27d5daeed37137efc0b2efc0e8ecc
diff --git a/tests/quotientfilter_test.py b/tests/quotientfilter_test.py index 1f0f1a1..292c5ba 100644 --- a/tests/quotientfilter_test.py +++ b/tests/quotientfilter_test.py @@ -38,14 +38,16 @@ class TestQuotientFilter(unittest.TestCase): self.assertEqual(qf.remainder, 24) self.assertEqual(qf.elements_...
quotient filter: additional functionality Additional functionality to add to the quotient filter: - Resize / Merge - Delete element - Import / Export Something to consider would be to use a form of bit packing to make it more compact, perhaps as a second class
0.0
84dbffc9a5a27d5daeed37137efc0b2efc0e8ecc
[ "tests/quotientfilter_test.py::TestQuotientFilter::test_auto_resize", "tests/quotientfilter_test.py::TestQuotientFilter::test_auto_resize_changed_max_load_factor", "tests/quotientfilter_test.py::TestQuotientFilter::test_qf_add_check", "tests/quotientfilter_test.py::TestQuotientFilter::test_qf_init", "tests/...
[ "tests/quotientfilter_test.py::TestQuotientFilter::test_qf_add_check_in", "tests/quotientfilter_test.py::TestQuotientFilter::test_qf_init_errors" ]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2024-01-13 15:59:00+00:00
mit
1,294
asottile__tokenize-rt-3
diff --git a/README.md b/README.md index 3e9e23c..6fdf84d 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,9 @@ tokenize-rt =========== The stdlib `tokenize` module does not properly roundtrip. This wrapper -around the stdlib provides an additional token `UNIMPORTANT_WS`, and a `Token` -data type. Use `src_to_to...
asottile/tokenize-rt
8054f9c9edcc217c5224772b1df87beffdbafd53
diff --git a/tests/tokenize_rt_test.py b/tests/tokenize_rt_test.py index d01f0fb..6977e5f 100644 --- a/tests/tokenize_rt_test.py +++ b/tests/tokenize_rt_test.py @@ -5,6 +5,7 @@ import io import pytest +from tokenize_rt import ESCAPED_NL from tokenize_rt import main from tokenize_rt import src_to_tokens from tok...
Consider emitting an `ESCAPED_NL` token For example: ```python x = y.\ foo( bar, ) ``` The current tokenization is: ``` 1:0 NAME 'x' ?:? UNIMPORTANT_WS ' ' 1:2 OP '=' ?:? UNIMPORTANT_WS ' ' 1:4 NAME 'y' 1:5 OP '.' ?:? UNIMPORTANT_WS '\\\n ' 2:4 NAME 'foo' 2:7 OP '(' 2:8 NL '\n...
0.0
8054f9c9edcc217c5224772b1df87beffdbafd53
[ "tests/tokenize_rt_test.py::test_src_to_tokens_simple", "tests/tokenize_rt_test.py::test_roundtrip_tokenize[testing/resources/empty.py]", "tests/tokenize_rt_test.py::test_roundtrip_tokenize[testing/resources/unicode_snowman.py]", "tests/tokenize_rt_test.py::test_roundtrip_tokenize[testing/resources/backslash_...
[]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2017-07-14 15:18:45+00:00
mit
1,202
m0nhawk__grafana_api-39
diff --git a/Pipfile b/Pipfile index f534687..2bc2f58 100644 --- a/Pipfile +++ b/Pipfile @@ -8,7 +8,7 @@ name = "grafana_api" [dev-packages] codecov = "~=2.0" coverage = "~=4.5" -mock = {version = "*", markers = "python_version <= '2.7'"} +mock = {version = "*",markers = "python_version <= '2.7'"} pylint = ">=1.9" ...
m0nhawk/grafana_api
bfbe1dd6a4e90e271b036444942faf1ad6b70784
diff --git a/test/api/test_annotations.py b/test/api/test_annotations.py index 3299748..3f278f7 100644 --- a/test/api/test_annotations.py +++ b/test/api/test_annotations.py @@ -99,29 +99,29 @@ class AnnotationsTestCase(unittest.TestCase): @requests_mock.Mocker() def test_delete_annotations_by_id_could_not_fin...
grafana_api does not pass errors to caller anymore **Describe the bug** ``` in grafana_api.py, line 114: except Exception as error: print('Caught this error: ' + repr(error)) ``` you are catching all exceptions you were throwing before - with the result, that all issues are hidden to t...
0.0
bfbe1dd6a4e90e271b036444942faf1ad6b70784
[ "test/api/test_search.py::AnnotationsTestCase::test_search_dashboards_with_out_filter", "test/api/test_folder.py::FolderTestCase::test_create_folder_empty_uid", "test/api/test_annotations.py::AnnotationsTestCase::test_delete_annotations_by_id_forbidden", "test/api/test_annotations.py::AnnotationsTestCase::tes...
[ "test/api/test_search.py::AnnotationsTestCase::test_search_dashboards", "test/api/test_folder.py::FolderTestCase::test_get_folder_by_id", "test/api/test_folder.py::FolderTestCase::test_update_folder", "test/api/test_folder.py::FolderTestCase::test_get_folder_permissions", "test/api/test_folder.py::FolderTes...
{ "failed_lite_validators": [ "has_many_modified_files", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2019-08-19 17:18:02+00:00
mit
3,661
hCaptcha__hmt-basemodels-47
diff --git a/basemodels/manifest/data/preprocess.py b/basemodels/manifest/data/preprocess.py new file mode 100644 index 0000000..8ba5827 --- /dev/null +++ b/basemodels/manifest/data/preprocess.py @@ -0,0 +1,12 @@ +from schematics.models import Model +from schematics.types import StringType, DictType, UnionType, IntType...
hCaptcha/hmt-basemodels
86c71b032a082fc86b14ff885989592aab015666
diff --git a/tests/test_preprocess.py b/tests/test_preprocess.py new file mode 100644 index 0000000..3f3776b --- /dev/null +++ b/tests/test_preprocess.py @@ -0,0 +1,41 @@ +import unittest + +from schematics.exceptions import DataError +from basemodels.manifest import Preprocess + +class PipelineTest(unittest.TestCase):...
add preprocessing schema add basic preprocessing schema for labeling request image preprocessing configuration
0.0
86c71b032a082fc86b14ff885989592aab015666
[ "tests/test_preprocess.py::PipelineTest::test_preprocess", "tests/test_preprocess.py::PipelineTest::test_preprocess_raise", "tests/test_preprocess.py::PipelineTest::test_preprocess_to_dict", "tests/test_pydantic_preprocess.py::PipelineTest::test_preprocess", "tests/test_pydantic_preprocess.py::PipelineTest:...
[]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_added_files", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2021-03-29 16:27:22+00:00
mit
2,689
duosecurity__duo_client_python-86
diff --git a/duo_client/admin.py b/duo_client/admin.py index 48bb1d6..c482019 100644 --- a/duo_client/admin.py +++ b/duo_client/admin.py @@ -2001,7 +2001,7 @@ class Admin(client.Client): return self.json_api_call('GET', url + group_id, {}) - def get_group_users(self, group_id, limit=100, offset=0): + ...
duosecurity/duo_client_python
c69c3da2e13f8a7680c06d94f80fadb23eb49ec9
diff --git a/tests/admin/test_groups.py b/tests/admin/test_groups.py index 6bbed7f..7e516e1 100644 --- a/tests/admin/test_groups.py +++ b/tests/admin/test_groups.py @@ -119,7 +119,7 @@ class TestGroups(TestAdmin): def test_get_group_users(self): """ Test for getting list of users associated with a group ...
group pagination not part of the code Hi, In `duo_client/admin.py`, there are `get_user_groups` and `get_user_groups_iterator` which (via `json_paging_api_call` in `duo_client/client.py`) seem to be doing the pagination for us (kinda already touched on in #63). Minor note: per https://duo.com/docs/adminapi#retrie...
0.0
c69c3da2e13f8a7680c06d94f80fadb23eb49ec9
[ "tests/admin/test_groups.py::TestGroups::test_get_group_users_iterator", "tests/admin/test_groups.py::TestGroups::test_get_group_users_with_offset" ]
[ "tests/admin/test_groups.py::TestGroups::test_delete_group", "tests/admin/test_groups.py::TestGroups::test_get_group_users", "tests/admin/test_groups.py::TestGroups::test_get_group_users_with_limit", "tests/admin/test_groups.py::TestGroups::test_get_group_users_with_limit_and_offset", "tests/admin/test_grou...
{ "failed_lite_validators": [ "has_hyperlinks", "has_issue_reference" ], "has_test_patch": true, "is_lite": false }
2019-02-25 18:34:20+00:00
bsd-3-clause
2,029
Kinto__kinto-1943
diff --git a/docs/commandline.rst b/docs/commandline.rst index e56d2080..7c1addef 100644 --- a/docs/commandline.rst +++ b/docs/commandline.rst @@ -139,3 +139,19 @@ For example: :: kinto rebuild-quotas --ini=config/postgresql.ini + +Flush Cache +----------- + +Clears the Backend Cache.This can be useful for +deb...
Kinto/kinto
173d8eabe81a19c709e22341f64a6f65d6fcff2c
diff --git a/tests/core/test_scripts.py b/tests/core/test_scripts.py index 4a00c8d2..6aa241c5 100644 --- a/tests/core/test_scripts.py +++ b/tests/core/test_scripts.py @@ -40,3 +40,8 @@ class InitSchemaTest(unittest.TestCase): reg.storage.initialize_schema.assert_called_with(dry_run=True) reg.cache.ini...
Add a clear cache command to kinto For debugging purposes mainly we want to be able to clear the cache on time to time
0.0
173d8eabe81a19c709e22341f64a6f65d6fcff2c
[ "tests/core/test_scripts.py::InitSchemaTest::test_flush_cache_clear_the_cache_backend", "tests/test_main.py::TestMain::test_cli_flush_cache_command_runs_flush_cache_script" ]
[ "tests/core/test_scripts.py::InitSchemaTest::test_migrate_calls_initialize_schema_on_backends", "tests/core/test_scripts.py::InitSchemaTest::test_migrate_in_dry_run_mode", "tests/core/test_scripts.py::InitSchemaTest::test_migrate_in_read_only_display_an_error", "tests/core/test_scripts.py::InitSchemaTest::tes...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2018-12-20 11:11:50+00:00
apache-2.0
311
mixkorshun__django-antispam-6
diff --git a/antispam/akismet/entities.py b/antispam/akismet/entities.py index 91d766a..a620516 100644 --- a/antispam/akismet/entities.py +++ b/antispam/akismet/entities.py @@ -1,6 +1,6 @@ from datetime import datetime -from .utils import get_client_ip, get_timestamp +from .utils import get_client_ip class Requ...
mixkorshun/django-antispam
af42b24ee4dd5d9607e5f8ac0cffb434f9a63e0a
diff --git a/tests/akismet/test_entities.py b/tests/akismet/test_entities.py index 2f92116..c1e536d 100644 --- a/tests/akismet/test_entities.py +++ b/tests/akismet/test_entities.py @@ -70,7 +70,7 @@ class CommentTests(TestCase): self.assertEqual({ 'comment_content': '<my comment>', - ...
Akismet: AssertionError on comment_date type python-akismet expects comment_date to be `datetime`, not a timestamp: https://github.com/Nekmo/python-akismet/blob/322cf3e9a9a1986434a20e01cabb6767e91a226b/akismet/__init__.py#L49 django-antispam provides a timestamp: https://github.com/mixkorshun/django-antispam/b...
0.0
af42b24ee4dd5d9607e5f8ac0cffb434f9a63e0a
[ "tests/akismet/test_entities.py::CommentTests::test_to_params" ]
[ "tests/akismet/test_entities.py::AuthorTests::test_to_params", "tests/akismet/test_entities.py::AuthorTests::test_from_django_user", "tests/akismet/test_entities.py::SiteTests::test_to_params", "tests/akismet/test_entities.py::RequestTests::test_to_params", "tests/akismet/test_entities.py::RequestTests::tes...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2018-03-22 13:02:25+00:00
mit
3,986
albertyw__git-reviewers-30
diff --git a/git_reviewers/reviewers.py b/git_reviewers/reviewers.py index e4eee15..77ec78e 100755 --- a/git_reviewers/reviewers.py +++ b/git_reviewers/reviewers.py @@ -101,6 +101,18 @@ class FindLogReviewers(FindFileLogReviewers): """ Find the changed files between current status and master """ git_d...
albertyw/git-reviewers
c3a916e554a058e3e3e3527f5692d0efed97ed83
diff --git a/git_reviewers/tests/test.py b/git_reviewers/tests/test.py index 87e2df4..933ebd6 100644 --- a/git_reviewers/tests/test.py +++ b/git_reviewers/tests/test.py @@ -110,6 +110,27 @@ class TestLogReviewers(unittest.TestCase): files = self.finder.get_changed_files() self.assertEqual(files, ['REA...
Make git-reviewers work with commits that only add new files Read reviewers from entire repository history
0.0
c3a916e554a058e3e3e3527f5692d0efed97ed83
[ "git_reviewers/tests/test.py::TestLogReviewers::test_no_diffs", "git_reviewers/tests/test.py::TestHistoricalReviewers::test_get_changed_files" ]
[ "git_reviewers/tests/test.py::TestFindReviewers::test_check_phabricator_activated", "git_reviewers/tests/test.py::TestFindReviewers::test_check_phabricator_activated_none", "git_reviewers/tests/test.py::TestFindReviewers::test_extract_uber_username_from_email", "git_reviewers/tests/test.py::TestFindReviewers:...
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2018-10-15 03:42:39+00:00
mit
1,007
tehmaze__ansi-34
diff --git a/ansi/colour/rgb.py b/ansi/colour/rgb.py index 13fbc02..6eb1e29 100644 --- a/ansi/colour/rgb.py +++ b/ansi/colour/rgb.py @@ -56,7 +56,7 @@ def rgb16(r: int, g: int, b: int) -> str: return rgb_reduce(r, g, b, 16) -def rgb256(r: int, g: int, b: int) -> str: +def rgb256(r: int, g: int, b: int, bg: boo...
tehmaze/ansi
f80c14bcee8a9c4b4aecbd88c24ba4818c64db77
diff --git a/test_ansi.py b/test_ansi.py index a12d704..a15a75e 100644 --- a/test_ansi.py +++ b/test_ansi.py @@ -40,6 +40,11 @@ def test_rgb() -> None: msg = (rgb256(0xff, 0x80, 0x00), 'hello world', reset) assert ''.join(map(str, msg)) == '\x1b[38;5;214mhello world\x1b[0m' +def test_rgb_bg() -> None: + ...
RGB background color support hi! Adding a switch to `rgb256(r,g,b, bg=True)` you could return ``` if bg: return sequence('m', fields=3)(48, 5, colour) else: return sequence('m', fields=3)(38, 5, colour) ```
0.0
f80c14bcee8a9c4b4aecbd88c24ba4818c64db77
[ "test_ansi.py::test_rgb_bg" ]
[ "test_ansi.py::test_import", "test_ansi.py::test_import_color", "test_ansi.py::test_fg_bg", "test_ansi.py::test_sugar", "test_ansi.py::test_rgb", "test_ansi.py::test_osc", "test_ansi.py::test_iterm", "test_ansi.py::test_add", "test_ansi.py::test_add_to_string", "test_ansi.py::test_add_other", "t...
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2024-01-22 00:42:39+00:00
mit
5,843
pcubillos__bibmanager-90
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 44ed2ef..a3ea45c 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -2372,3 +2372,26 @@ Propagated typo corrections into the docs. ***** Updated link of license badge to point to RTD docs. + + +***** Sat Jun 12 19:01:21 CEST 2021 ***** + +In bm.remove_dubplicates()...
pcubillos/bibmanager
0b465d2b83a889c09e1a668744f551ec01156882
diff --git a/tests/conftest.py b/tests/conftest.py index 501e67a..e6c810b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -233,20 +233,58 @@ archivePrefix = "arXiv", publisher={AIP Publishing} }""" + isbn_doi1 = """ +@INBOOK{2018haex.bookE.116P, + author = {{Parmentier}, Vivien and {Crossfield}...
ISBN duplicates problem An edited book has many contributions. Each contribution has its own DOI number, but also shares its parent book's ISBN. Contributions and parent reference are now regarded as duplicates in bibmanager and merge always triggers asking. I have tried to disable exporting ISBN of contributions to bi...
0.0
0b465d2b83a889c09e1a668744f551ec01156882
[ "tests/test_bib_manager.py::test_duplicate_isbn_different_doi", "tests/test_bib_manager.py::test_duplicate_isbn_doi_vs_no_doi" ]
[ "tests/test_bib_manager.py::test_Bib_minimal", "tests/test_bib_manager.py::test_Bib_ads_entry", "tests/test_bib_manager.py::test_Bib_update_content", "tests/test_bib_manager.py::test_Bib_mismatched_braces_raise", "tests/test_bib_manager.py::test_Bib_update_key", "tests/test_bib_manager.py::test_Bib_contai...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-06-12 17:21:31+00:00
mit
4,482
netsiphd__netrd-264
diff --git a/netrd/utilities/entropy.py b/netrd/utilities/entropy.py index dff68e2..9d6f3d7 100644 --- a/netrd/utilities/entropy.py +++ b/netrd/utilities/entropy.py @@ -15,7 +15,7 @@ from scipy.stats import entropy as sp_entropy def js_divergence(P, Q): - """Jenson-Shannon divergence between `P` and `Q`. + "...
netsiphd/netrd
fa2c163376a88ed72ba15649190b1a2b23b1cb9a
diff --git a/tests/test_utilities.py b/tests/test_utilities.py index 8837207..5b2ab79 100644 --- a/tests/test_utilities.py +++ b/tests/test_utilities.py @@ -8,7 +8,7 @@ Test utility functions. import numpy as np from netrd.utilities.entropy import categorized_data -from netrd.utilities.entropy import entropy, joint...
Clarify usage of utilities.entropy.entropy? When I was refactoring the Dmeasure code, I looked at using our version of entropy instead of scipy's, but one is not a drop-in replacement for the other because they take different inputs - one takes a histogram and the other takes a sequence of values. It would touch a lot ...
0.0
fa2c163376a88ed72ba15649190b1a2b23b1cb9a
[ "tests/test_utilities.py::test_thresholds", "tests/test_utilities.py::test_categorized_data", "tests/test_utilities.py::test_entropies" ]
[]
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2019-10-14 15:14:50+00:00
mit
4,130
M3t0r__tpl-12
diff --git a/tpl/__init__.py b/tpl/__init__.py index 96b6c41..32297a0 100644 --- a/tpl/__init__.py +++ b/tpl/__init__.py @@ -61,15 +61,19 @@ def main(*args): for data in loaded_data: collated_data = merge_data(collated_data, data) + # set up Jinja2 environment + j_env = jinja2.Environment( + ...
M3t0r/tpl
b534fa59fb808b10031869fe51f5e6382a1055dd
diff --git a/tests/cli/test_faulty_invocations.py b/tests/cli/test_faulty_invocations.py index d81fbd8..d538ec6 100644 --- a/tests/cli/test_faulty_invocations.py +++ b/tests/cli/test_faulty_invocations.py @@ -9,7 +9,7 @@ def test_key_does_not_exist(cli): cli.path_for_content("{{FOO}}"), env={} ) ...
Fix trailing newline issue In https://github.com/M3t0r/tpl/blob/feceeed182f1c2553b827d8f431f6be800204250/tpl/__init__.py#L72 `tpl` always adds a trailing newline instead of respecting what the template has. I added this to have nicer output on the command line, but it turns out Jinja has a setting if it should keep the...
0.0
b534fa59fb808b10031869fe51f5e6382a1055dd
[ "tests/cli/test_faulty_invocations.py::test_key_does_not_exist", "tests/cli/test_standard_usecases.py::test_source_environment", "tests/cli/test_standard_usecases.py::test_unicode_var", "tests/cli/test_standard_usecases.py::test_shadowing_json_env", "tests/cli/test_standard_usecases.py::test_shadowing_yaml_...
[ "tests/cli/test_faulty_invocations.py::test_corrupt_yaml", "tests/cli/test_faulty_invocations.py::test_corrupt_json", "tests/cli/test_standard_usecases.py::test_keep_one_newline_at_end", "tests/cli/test_standard_usecases.py::test_keep_two_newlines_at_end" ]
{ "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2018-10-12 19:00:06+00:00
mit
330
datafolklabs__cement-559
diff --git a/cement/ext/ext_configparser.py b/cement/ext/ext_configparser.py index 587e89e..0aa8f0d 100644 --- a/cement/ext/ext_configparser.py +++ b/cement/ext/ext_configparser.py @@ -152,12 +152,12 @@ class ConfigParserConfigHandler(config.ConfigHandler, RawConfigParser): env_var = re.sub('[^0-9a-zA-Z]+', '_...
datafolklabs/cement
775fc4d933a4674f131418671c87f79944778e13
diff --git a/tests/ext/test_ext_configparser.py b/tests/ext/test_ext_configparser.py index b0ed755..e5bf5fa 100644 --- a/tests/ext/test_ext_configparser.py +++ b/tests/ext/test_ext_configparser.py @@ -54,3 +54,15 @@ def test_env_var_override(): assert app.config.get('dummy', 'foo') == 'dummy-not-bar' ...
Configparser 'getboolean' exception **System Information** - Cement Version: 3.0.0 - Python Version: 3.6.8 - Operating System and Version: Linux Mint 19.1 **Steps to Reproduce (Bugs Only)** - Create a boolean setting: configparser only supports string values so this has to be a string representation of a boo...
0.0
775fc4d933a4674f131418671c87f79944778e13
[ "tests/ext/test_ext_configparser.py::test_get_boolean" ]
[ "tests/ext/test_ext_configparser.py::TestConfigParserConfigHandler::test_subclassing", "tests/ext/test_ext_configparser.py::test_get_dict", "tests/ext/test_ext_configparser.py::test_env_var_override" ]
{ "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2019-05-07 15:16:20+00:00
bsd-3-clause
1,810
python-control__python-control-892
diff --git a/control/iosys.py b/control/iosys.py index 78444f7..dca00d3 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -1862,7 +1862,7 @@ def input_output_response( return TimeResponseData( t_eval, y, None, u, issiso=sys.issiso(), - output_labels=sys.output_index, input_label...
python-control/python-control
9c26e2214f82e592b5b64cf8f581ac14c198a46f
diff --git a/control/tests/trdata_test.py b/control/tests/trdata_test.py index 734d355..028e535 100644 --- a/control/tests/trdata_test.py +++ b/control/tests/trdata_test.py @@ -196,15 +196,20 @@ def test_response_copy(): with pytest.raises(ValueError, match="not enough"): t, y, x = response_mimo - # ...
Missing labels from forced_response output Hi, I wrote a state-space system representation with labels, like: ``` Python sys = ct.ss( A, B, C, D, name="motor", states=("Ia", "Wm"), inputs=("Va", "Tl"), outputs=("Ia", "Wm", "Va", "Tl"), ) ``` But after simulating it, the result (a `TimeRespons...
0.0
9c26e2214f82e592b5b64cf8f581ac14c198a46f
[ "control/tests/trdata_test.py::test_response_copy", "control/tests/trdata_test.py::test_trdata_labels" ]
[ "control/tests/trdata_test.py::test_trdata_shapes[1-1-None]", "control/tests/trdata_test.py::test_trdata_shapes[1-1-True]", "control/tests/trdata_test.py::test_trdata_shapes[1-1-False]", "control/tests/trdata_test.py::test_trdata_shapes[1-2-None]", "control/tests/trdata_test.py::test_trdata_shapes[1-2-True]...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2023-05-20 16:48:37+00:00
bsd-3-clause
5,071
OCA__oca-github-bot-59
diff --git a/HISTORY.rst b/HISTORY.rst index 0f9ae33..08d2ad2 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,6 +1,10 @@ next ~~~~ +**Features** + +- Improved command parser (#53) + **Bug fixes** - Do not attempt to build wheels for uninstallable addons. diff --git a/src/oca_github_bot/commands.py b/src/oca_gi...
OCA/oca-github-bot
0ab1c02e2ef25e2b3231a326e04c31b40710ce6f
diff --git a/tests/test_commands.py b/tests/test_commands.py index 1195b53..2091988 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -22,11 +22,38 @@ def test_parse_command_multi(): /ocabot merge major /ocabot merge patch /ocabot merge patch + ...
merge bot: parse command inside a greater message For now, the merge bot only reacts to the merge command putting that comment in an isolated message (example of greater message: https://github.com/OCA/account-invoicing/pull/552#issuecomment-507203903).
0.0
0ab1c02e2ef25e2b3231a326e04c31b40710ce6f
[ "tests/test_commands.py::test_parse_command_multi", "tests/test_commands.py::test_parse_command_2" ]
[ "tests/test_commands.py::test_parse_command_not_a_command", "tests/test_commands.py::test_parse_command_merge" ]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2019-07-31 11:18:29+00:00
mit
401
michaelbukachi__flask-vuesfc-4
diff --git a/README.rst b/README.rst index 9f1ab59..5cd44a6 100644 --- a/README.rst +++ b/README.rst @@ -122,6 +122,13 @@ escape it. So be sure to always use the ``safe`` filter when rendering the compo Feel free to checkout the examples folder for other examples. +Escaping +-------- +Occasionally, you might need ...
michaelbukachi/flask-vuesfc
6871322cb72f44bc45c8b88a358935289139e7f7
diff --git a/tests/test_utils.py b/tests/test_utils.py index c4ba0d6..7044407 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -1,4 +1,4 @@ -from flask_vue_sfc.utils import VueComponent, VueChildComponent, SFC +from flask_vue_sfc.utils import VueComponent, VueChildComponent, SFC, _change_delimiters de...
Add support for escaping variable placeholders Currently, the extension automatically converts `{{ }}` to `[[ ]]` so that it doesn't get parsed by flask's template engine. This is convenient most of the time, however, there are times when we the placeholder to parsed by flask instead of Vue, This issue proposes the int...
0.0
6871322cb72f44bc45c8b88a358935289139e7f7
[ "tests/test_utils.py::test_render_html", "tests/test_utils.py::test_render_child_html", "tests/test_utils.py::test_render_css", "tests/test_utils.py::test_render_sfc__no_child", "tests/test_utils.py::test_render_sfc__with_child", "tests/test_utils.py::test_change_delimiters__escape_syntax" ]
[]
{ "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-01-11 12:37:41+00:00
mit
3,892
genericclient__genericclient-requests-14
diff --git a/genericclient/__init__.py b/genericclient/__init__.py index fc0d66a..89af323 100644 --- a/genericclient/__init__.py +++ b/genericclient/__init__.py @@ -24,7 +24,7 @@ class Endpoint(BaseEndpoint): data=self.api.hydrate_data(resp), ) - if response.status_code == 403: + i...
genericclient/genericclient-requests
8fba5f6101b7226a8a6a3e7fe8a02e22c6314cf9
diff --git a/tests/test_auth.py b/tests/test_auth.py index c7a99cb..79c4ce9 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -8,6 +8,15 @@ MOCK_API_URL = 'http://dummy.org' class AuthClientTestCase(TestCase): + def test_401(self): + generic_client = GenericClient( + url=MOCK_API_URL...
Does not handle response status code 401 When a user sends a GET request to a DRF server using invalid base authentication email/password values, a response status code of 401 is returned. The client does not raise an exception when this happens, which results in a None resource being returned. The client should raise ...
0.0
8fba5f6101b7226a8a6a3e7fe8a02e22c6314cf9
[ "tests/test_auth.py::AuthClientTestCase::test_401", "tests/test_endpoint.py::EndpointTestCase::test_unauthenticated" ]
[ "tests/test_auth.py::AuthClientTestCase::test_403", "tests/test_auth.py::AuthClientTestCase::test_403_auth", "tests/test_endpoint.py::EndpointTestCase::test_endpoint_create", "tests/test_endpoint.py::EndpointTestCase::test_endpoint_all", "tests/test_endpoint.py::EndpointTestCase::test_endpoint_delete", "t...
{ "failed_lite_validators": [ "has_hyperlinks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2020-10-16 15:07:49+00:00
mit
2,440
peterbe__premailer-218
diff --git a/premailer/premailer.py b/premailer/premailer.py index 344a6ad..37fd743 100644 --- a/premailer/premailer.py +++ b/premailer/premailer.py @@ -311,18 +311,18 @@ class Premailer(object): return rules, leftover def transform(self, html=None, pretty_print=True, **kwargs): - """change the s...
peterbe/premailer
350af2440ccc9598d01841d1a22a8e5236da85a1
diff --git a/premailer/tests/test_premailer.py b/premailer/tests/test_premailer.py index f0ef4ac..0ff7a37 100644 --- a/premailer/tests/test_premailer.py +++ b/premailer/tests/test_premailer.py @@ -215,6 +215,68 @@ class Tests(unittest.TestCase): p = Premailer() assert_raises(TypeError, p.transform) ...
Reusing premailer instances does not work The README contains a [nice section](https://github.com/peterbe/premailer#if-execution-speed-is-on-your-mind) on speeding up premailer by reusing premailer instances. This, however, [throws an exception](https://github.com/peterbe/premailer/blob/master/premailer/premailer.py#L3...
0.0
350af2440ccc9598d01841d1a22a8e5236da85a1
[ "premailer/tests/test_premailer.py::Tests::test_instance_reuse" ]
[ "premailer/tests/test_premailer.py::Tests::test_3_digit_color_expand", "premailer/tests/test_premailer.py::Tests::test_align_float_images", "premailer/tests/test_premailer.py::Tests::test_apple_newsletter_example", "premailer/tests/test_premailer.py::Tests::test_base_url_fixer", "premailer/tests/test_premai...
{ "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2019-02-22 16:57:59+00:00
bsd-3-clause
4,522
jonathanj__cacofonix-12
diff --git a/src/cacofonix/_app.py b/src/cacofonix/_app.py index 6b1e7cd..5f867dc 100644 --- a/src/cacofonix/_app.py +++ b/src/cacofonix/_app.py @@ -37,7 +37,9 @@ class Application(object): """ Parse and validate a fragment from a stream. """ - return self.validate_fragment(_yaml.load(...
jonathanj/cacofonix
984d93c51f954266a82a4447a1a6b3cd5644d0f6
diff --git a/src/cacofonix/test/data/config.yaml b/src/cacofonix/test/data/config.yaml new file mode 100644 index 0000000..3570806 --- /dev/null +++ b/src/cacofonix/test/data/config.yaml @@ -0,0 +1,10 @@ +# Path in which to find fragments. +change_fragments_path: fragments +# Path to the changelog to merge into. +chang...
Coerce issue keys to strings Towncrier expects issues to be strings and throws an exception if this isn't the case: ``` Traceback (most recent call last): │ts after you do a transaction. It ta...
0.0
984d93c51f954266a82a4447a1a6b3cd5644d0f6
[ "src/cacofonix/test/test_app.py::TestCompileFragmentFiles::test_numeric_issue_key" ]
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_media", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-05-28 11:37:25+00:00
mit
3,328
mikeckennedy__markdown-subtemplate-8
diff --git a/markdown_subtemplate/__init__.py b/markdown_subtemplate/__init__.py index 82b3d4f..e1fe900 100644 --- a/markdown_subtemplate/__init__.py +++ b/markdown_subtemplate/__init__.py @@ -3,7 +3,7 @@ markdown_subtemplate - A template engine to render Markdown with external template imports and variable replacemen...
mikeckennedy/markdown-subtemplate
29737dbad109ee3d943872751bdb11f64df51431
diff --git a/tests/page_tests.py b/tests/page_tests.py index 419223e..403be3b 100644 --- a/tests/page_tests.py +++ b/tests/page_tests.py @@ -2,10 +2,10 @@ import os import pytest -from markdown_subtemplate import exceptions from markdown_subtemplate import engine -from markdown_subtemplate.storage.file_storage im...
Allow defining a variable to be subsequently passed to import sections Here's what I have in mind. We have a landing page and want to specify which campaign this is about all the while reusing most of the content: ```markdown # The landing page title Welcome people from this campaign [VARIABLE name=value] ...
0.0
29737dbad109ee3d943872751bdb11f64df51431
[ "tests/page_tests.py::test_variable_definition_markdown" ]
[ "tests/page_tests.py::test_missing_template_by_file", "tests/page_tests.py::test_missing_template_by_folder", "tests/page_tests.py::test_empty_template", "tests/page_tests.py::test_basic_markdown_template", "tests/page_tests.py::test_basic_markdown_html", "tests/page_tests.py::test_import_markdown", "te...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-09-06 22:22:15+00:00
mit
3,940
ronaldoussoren__macholib-38
diff --git a/macholib/MachO.py b/macholib/MachO.py index 3db9520..d4d85f1 100644 --- a/macholib/MachO.py +++ b/macholib/MachO.py @@ -92,7 +92,10 @@ def lc_str_value(offset, cmd_info): class MachO(object): """ - Provides reading/writing the Mach-O header of a specific existing file + Provides reading/writi...
ronaldoussoren/macholib
53d9c7a4056af795990a8db2af71e17f05f59460
diff --git a/macholib_tests/test_MachO.py b/macholib_tests/test_MachO.py index c32ea70..ed3d808 100644 --- a/macholib_tests/test_MachO.py +++ b/macholib_tests/test_MachO.py @@ -1,17 +1,92 @@ +import contextlib +import os +import struct import sys +import tempfile +import uuid -from macholib import MachO +from machol...
Feature: Option for ignoring unknown load commands **[Original report](https://bitbucket.org/ronaldoussoren/macholib/issue/26) by Mikkel Kamstrup Erlandsen (Bitbucket: [kamikkel](https://bitbucket.org/kamikkel), GitHub: [kamikkel](https://github.com/kamikkel)).** ---------------------------------------- First of all ...
0.0
53d9c7a4056af795990a8db2af71e17f05f59460
[ "macholib_tests/test_MachO.py::TestMachO::test_known_load_command_should_succeed", "macholib_tests/test_MachO.py::TestMachO::test_mix_of_known_and_unknown_load_commands_should_allow_unknown_with_flag", "macholib_tests/test_MachO.py::TestMachO::test_unknown_load_command_should_succeed_with_flag" ]
[ "macholib_tests/test_MachO.py::TestMachO::test_unknown_load_command_should_fail" ]
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2022-03-03 20:45:23+00:00
mit
5,284
aws-cloudformation__cloudformation-cli-python-plugin-236
diff --git a/README.md b/README.md index cd5ec66..6854fe5 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,14 @@ This plugin library helps to provide runtime bindings for the execution of your [![Build Status](https://travis-ci.com/aws-cloudformation/cloudformation-cli-python-plugin.svg?branch=master)](https://tr...
aws-cloudformation/cloudformation-cli-python-plugin
1866ad7cd1b3c000cf9ce07ee90421a8788dc766
diff --git a/tests/plugin/codegen_test.py b/tests/plugin/codegen_test.py index a36d04b..aa64261 100644 --- a/tests/plugin/codegen_test.py +++ b/tests/plugin/codegen_test.py @@ -416,6 +416,43 @@ def test__build_pip(plugin): mock_pip.assert_called_once_with(sentinel.base_path) +def test__build_pip_posix(plugin):...
It looks like the upgrade to 2.1.6 has broken dependency installation in `cfn submit --dry-run` The pip installation in `cfn submit` appears to log pip usage instructions to stdout instead of actually installing the depenencies. If we downgrade to 2.1.5 then the dependencies are included in the build dir. If we r...
0.0
1866ad7cd1b3c000cf9ce07ee90421a8788dc766
[ "tests/plugin/codegen_test.py::test__build_pip_posix" ]
[ "tests/plugin/codegen_test.py::test_validate_no[y-True]", "tests/plugin/codegen_test.py::test_validate_no[Y-True]", "tests/plugin/codegen_test.py::test_validate_no[yes-True]", "tests/plugin/codegen_test.py::test_validate_no[Yes-True]", "tests/plugin/codegen_test.py::test_validate_no[YES-True]", "tests/plu...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2022-12-19 18:37:41+00:00
apache-2.0
1,278
zopefoundation__persistent-161
diff --git a/CHANGES.rst b/CHANGES.rst index 542e403..81a77a8 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -12,6 +12,10 @@ when setting its ``__class__`` and ``__dict__``. This matches the behaviour of the C implementation. See `issue 155 <https://github.com/zopefoundation/persistent/issues/155>`_. +- Fix the...
zopefoundation/persistent
6b500fc3f517fb566e8d0b85b756ddf49758c8d8
diff --git a/persistent/tests/test_picklecache.py b/persistent/tests/test_picklecache.py index 32811f1..9d6ec25 100644 --- a/persistent/tests/test_picklecache.py +++ b/persistent/tests/test_picklecache.py @@ -1102,6 +1102,44 @@ class PythonPickleCacheTests(PickleCacheTestMixin, unittest.TestCase): self.assertE...
AttributeError: '_WeakValueDictionary' object has no attribute '_addr_to_oid' Seen during test teardown of a large app using CPython in PURE_PYTHON=1 mode ``` From callback for ffi.gc <cdata 'struct CPersistentRingCFFI_struct *' owning 24 bytes>: Traceback (most recent call last): File "//persistent/persistent/...
0.0
6b500fc3f517fb566e8d0b85b756ddf49758c8d8
[ "persistent/tests/test_picklecache.py::TestWeakValueDictionary::test_cleanup_hook_gc" ]
[ "persistent/tests/test_picklecache.py::PythonPickleCacheTests::test___delitem___non_string_oid_raises_TypeError", "persistent/tests/test_picklecache.py::PythonPickleCacheTests::test___delitem___nonesuch_raises_KeyError", "persistent/tests/test_picklecache.py::PythonPickleCacheTests::test___delitem___w_ghost", ...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2021-03-10 14:52:25+00:00
zpl-2.1
6,392
ofek__pypinfo-109
diff --git a/pypinfo/core.py b/pypinfo/core.py index 1075ea9..41bbd8c 100644 --- a/pypinfo/core.py +++ b/pypinfo/core.py @@ -10,7 +10,7 @@ from google.cloud.bigquery.job import QueryJobConfig from pypinfo.fields import AGGREGATES, Downloads FROM = 'FROM `the-psf.pypi.file_downloads`' -DATE_ADD = 'DATE_ADD(CURRENT_T...
ofek/pypinfo
0007c10256804650b4787a14a32e38e8f9347bbc
diff --git a/tests/test_core.py b/tests/test_core.py index 6965e5d..e873e91 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -88,7 +88,7 @@ def test_format_date_negative_number(): date = core.format_date("-1", dummy_format) # Assert - assert date == 'DATE_ADD(CURRENT_TIMESTAMP(), INTERVAL -1 D...
No matching signature for function DATE_ADD for argument types: TIMESTAMP, INTERVAL INT64 DATE_TIME_PART Hi, After installation following instructions given in the `README.md`, I tried a simplest call: ```bash pypinfo requests ``` Unfortunately getting following exception: ``` ... File "/Users/christianr/.v...
0.0
0007c10256804650b4787a14a32e38e8f9347bbc
[ "tests/test_core.py::test_format_date_negative_number" ]
[ "tests/test_core.py::test_tabulate_markdown", "tests/test_core.py::test_normalize[Pillow-pillow]", "tests/test_core.py::test_normalize[setuptools_scm-setuptools-scm]", "tests/test_core.py::test_validate_date_valid[2018-05-15]", "tests/test_core.py::test_build_query", "tests/test_core.py::test_normalize_da...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2021-01-25 19:16:06+00:00
mit
4,342
eWaterCycle__grpc4bmi-129
diff --git a/grpc4bmi/bmi_client_apptainer.py b/grpc4bmi/bmi_client_apptainer.py index 100a85b..a4169e2 100644 --- a/grpc4bmi/bmi_client_apptainer.py +++ b/grpc4bmi/bmi_client_apptainer.py @@ -8,7 +8,7 @@ from typing import Iterable from packaging.specifiers import SpecifierSet from packaging.version import Version...
eWaterCycle/grpc4bmi
3798bbc460494783e47c53a8e58be07e89d3f855
diff --git a/test/test_apptainer.py b/test/test_apptainer.py index 8dd570b..cd5ea5e 100644 --- a/test/test_apptainer.py +++ b/test/test_apptainer.py @@ -1,7 +1,8 @@ import os -from typing import Type, Union +from typing import Type import pytest +from typeguard import TypeCheckError from grpc4bmi.bmi_client_appt...
Incompatibility with typeguard 3 Seems typeguard 3 was released which deprecates functions used in this repo. We should use the new way or pin typeguard to <3. For example in ewatercycle test we got: ```` ________________ ERROR collecting tests/forcing/test_default.py ________________ 16 ImportError while impo...
0.0
3798bbc460494783e47c53a8e58be07e89d3f855
[ "test/test_apptainer.py::Test_check_apptainer_version_string::test_ok[apptainer", "test/test_apptainer.py::Test_check_apptainer_version_string::test_too_old[apptainer", "test/test_apptainer.py::TestBmiClientApptainerBadDays::test_workdir_as_number", "test/test_apptainer.py::TestBmiClientApptainerBadDays::test...
[]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2023-03-16 07:04:55+00:00
apache-2.0
2,063
swaroopch__edn_format-43
diff --git a/edn_format/edn_lex.py b/edn_format/edn_lex.py index ac0a3af..fc2026e 100644 --- a/edn_format/edn_lex.py +++ b/edn_format/edn_lex.py @@ -102,7 +102,8 @@ tokens = ('WHITESPACE', 'MAP_START', 'SET_START', 'MAP_OR_SET_END', - 'TAG') + 'TAG', + 'DISCAR...
swaroopch/edn_format
7a3865c6d7ddc1a8d2d8ecb4114f11ed8b96fda8
diff --git a/tests.py b/tests.py index 8f7fcc1..29562d5 100644 --- a/tests.py +++ b/tests.py @@ -133,6 +133,12 @@ class EdnTest(unittest.TestCase): def check_roundtrip(self, data_input, **kw): self.assertEqual(data_input, loads(dumps(data_input, **kw))) + def check_eof(self, data_input, **kw): + ...
not handling discard as expected `[x #_ y z]` should yield `[Symbol(x), Symbol(z)]` but instead it is failing saying: "Don't know how to handle tag _"
0.0
7a3865c6d7ddc1a8d2d8ecb4114f11ed8b96fda8
[ "tests.py::EdnTest::test_chained_discards", "tests.py::EdnTest::test_discard", "tests.py::EdnTest::test_discard_all", "tests.py::EdnTest::test_discard_syntax_errors" ]
[ "tests.py::ConsoleTest::test_dumping", "tests.py::EdnTest::test_chars", "tests.py::EdnTest::test_dump", "tests.py::EdnTest::test_exceptions", "tests.py::EdnTest::test_keyword_keys", "tests.py::EdnTest::test_lexer", "tests.py::EdnTest::test_parser", "tests.py::EdnTest::test_proper_unicode_escape", "t...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2018-08-04 10:41:01+00:00
apache-2.0
5,813
BlueBrain__atlas-densities-61
diff --git a/README.rst b/README.rst index 8b8cc3b..8479266 100644 --- a/README.rst +++ b/README.rst @@ -10,8 +10,8 @@ The outcome of this project is a list of volumetric files that provides cell typ for each voxel of the mouse brain volume. The BBP Cell Atlas is the first model required to reconstruct BBP circuits o...
BlueBrain/atlas-densities
67d273c11bcb85dd7a5132dbaf879f88effba112
diff --git a/tests/app/test_cell_densities.py b/tests/app/test_cell_densities.py index ddc894d..df2d5dc 100644 --- a/tests/app/test_cell_densities.py +++ b/tests/app/test_cell_densities.py @@ -271,6 +271,8 @@ def _get_measurements_to_average_densities_result(runner, hierarchy_path, measur hierarchy_path, ...
Exception in fitting due to regions in json hierarchy but not in the annotations volume On master branch, when running the cell atlas pipeline with the CCFv3 annotation atlas, the following command: ``` atlas-densities cell-densities fit-average-densities \ --hierarchy-...
0.0
67d273c11bcb85dd7a5132dbaf879f88effba112
[ "tests/app/test_cell_densities.py::test_measurements_to_average_densities", "tests/densities/test_measurement_to_density.py::test_remove_unknown_regions" ]
[ "tests/app/test_cell_densities.py::test_cell_density", "tests/app/test_cell_densities.py::test_glia_cell_densities", "tests/app/test_cell_densities.py::test_inhibitory_and_excitatory_neuron_densities", "tests/app/test_cell_densities.py::test_compile_measurements", "tests/app/test_cell_densities.py::test_fit...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2024-02-06 18:19:39+00:00
apache-2.0
115
executablebooks__mdit-py-plugins-46
diff --git a/mdit_py_plugins/dollarmath/index.py b/mdit_py_plugins/dollarmath/index.py index 2663617..e2a4fed 100644 --- a/mdit_py_plugins/dollarmath/index.py +++ b/mdit_py_plugins/dollarmath/index.py @@ -13,6 +13,7 @@ def dollarmath_plugin( allow_labels: bool = True, allow_space: bool = True, allow_digi...
executablebooks/mdit-py-plugins
be145875645970545ccbd409e0221f85a0b4d329
diff --git a/tests/fixtures/dollar_math.md b/tests/fixtures/dollar_math.md index a1c2d43..c6554ec 100644 --- a/tests/fixtures/dollar_math.md +++ b/tests/fixtures/dollar_math.md @@ -226,6 +226,18 @@ b = 2 </div> . +display equation with blank lines. (valid=False) +. +$$ +1+1=2 + +$$ +. +<p>$$ +1+1=2</p> +<p>$$</p> +...
Do not allow blank lines within $$ See https://github.com/executablebooks/markdown-it-dollarmath/pull/8
0.0
be145875645970545ccbd409e0221f85a0b4d329
[ "tests/test_dollarmath.py::test_dollarmath_fixtures[1-single", "tests/test_dollarmath.py::test_dollarmath_fixtures[8-double-dollar-$$\\n-<p>$$</p>\\n]", "tests/test_dollarmath.py::test_dollarmath_fixtures[15-single", "tests/test_dollarmath.py::test_dollarmath_fixtures[22-inline", "tests/test_dollarmath.py::...
[ "tests/test_dollarmath.py::test_inline_func", "tests/test_dollarmath.py::test_block_func", "tests/test_dollarmath.py::test_plugin_parse", "tests/test_dollarmath.py::test_custom_renderer" ]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-06-29 14:35:35+00:00
mit
2,210
leonardt__ast_tools-80
diff --git a/ast_tools/passes/ssa.py b/ast_tools/passes/ssa.py index 01d90fa..b37a642 100644 --- a/ast_tools/passes/ssa.py +++ b/ast_tools/passes/ssa.py @@ -394,9 +394,7 @@ class SSATransformer(NodeTrackingTransformer): # Need to visit params to get them to be rebuilt and therfore # tracked ...
leonardt/ast_tools
cfa081e3f24bf23dbe84cd50ecea8a320027de75
diff --git a/tests/test_ssa.py b/tests/test_ssa.py index 4c35f7e..56786c4 100644 --- a/tests/test_ssa.py +++ b/tests/test_ssa.py @@ -36,6 +36,7 @@ def _do_ssa(func, strict, **kwargs): func = dec(func) return func + @pytest.mark.parametrize('strict', [True, False]) @pytest.mark.parametrize('a', templat...
Regression in fault test suite I'm not sure how important this is, but with the latest release the following example taken from fault doesn't work anymore with the SSA pass ```python import magma as m import fault class MWrapperMeta(m.MagmaProtocolMeta): def __getitem__(cls, T): assert cls is ...
0.0
cfa081e3f24bf23dbe84cd50ecea8a320027de75
[ "tests/test_ssa.py::test_issue_79[True]", "tests/test_ssa.py::test_issue_79[False]" ]
[ "tests/test_ssa.py::test_basic_if[r", "tests/test_ssa.py::test_basic_if[return-r", "tests/test_ssa.py::test_basic_if[return-return-True]", "tests/test_ssa.py::test_basic_if[return-return-False]", "tests/test_ssa.py::test_nested[r", "tests/test_ssa.py::test_nested[return-r", "tests/test_ssa.py::test_nest...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2021-06-22 01:07:05+00:00
apache-2.0
3,545
smartcar__python-sdk-82
diff --git a/.releaserc.js b/.releaserc.js new file mode 100644 index 0000000..5c86c28 --- /dev/null +++ b/.releaserc.js @@ -0,0 +1,31 @@ +'use strict'; + +module.exports = { + branches: 'master', + plugins: [ + '@semantic-release/commit-analyzer', + [ + '@google/semantic-release-replace-plugin', + { ...
smartcar/python-sdk
c4ff88a82df60f198742d8e06069ec33d4fc7900
diff --git a/tests/test_requester.py b/tests/test_requester.py index fe629f4..81bea65 100644 --- a/tests/test_requester.py +++ b/tests/test_requester.py @@ -28,7 +28,7 @@ class TestRequester(unittest.TestCase): smartcar.requester.call('GET', self.URL) self.assertRegexpMatches( responses.c...
Changelog Please keep a changelog summarizing user-facing issues so upgrades are easy to understand: https://keepachangelog.com/en/1.0.0/ Thanks :)
0.0
c4ff88a82df60f198742d8e06069ec33d4fc7900
[ "tests/test_requester.py::TestRequester::test_user_agent" ]
[ "tests/test_requester.py::TestRequester::test_400", "tests/test_requester.py::TestRequester::test_401", "tests/test_requester.py::TestRequester::test_403", "tests/test_requester.py::TestRequester::test_404", "tests/test_requester.py::TestRequester::test_409", "tests/test_requester.py::TestRequester::test_...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_added_files", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2020-10-02 00:57:05+00:00
mit
5,564
maxfischer2781__cms_perf-6
diff --git a/cms_perf/cli.py b/cms_perf/cli.py index 5f504eb..3dc73e6 100644 --- a/cms_perf/cli.py +++ b/cms_perf/cli.py @@ -1,6 +1,7 @@ import argparse from . import xrd_load +from . import net_load from . import __version__ as lib_version @@ -68,6 +69,27 @@ CLI_PAG = CLI.add_subparsers( title="pag plugi...
maxfischer2781/cms_perf
f1ee7a28ea9d6af3a96965763c656fc4b8aa46ce
diff --git a/tests/test_cli.py b/tests/test_cli.py index a9e4617..ace0296 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -37,7 +37,7 @@ def test_run_sched(executable: List[str]): assert total == readings[0] -PAG_PLUGINS = ["xrootd.io_wait", "xrootd.num_fds", "xrootd.num_threads"] +PAG_PLUGINS = ...
Feature: Provide connection load sensor Add a sensor for number of open connections. This is an indication for the number of requests the system must handle, and possibly if connections are stalling. See [``psutil.net_connections``](https://psutil.readthedocs.io/en/latest/#psutil.net_connections) for a potential bac...
0.0
f1ee7a28ea9d6af3a96965763c656fc4b8aa46ce
[ "tests/test_cli.py::test_run_pag_plugin[num_sockets-executable0]", "tests/test_cli.py::test_run_pag_plugin[num_sockets-executable1]" ]
[ "tests/test_cli.py::test_run_normal[executable0]", "tests/test_cli.py::test_run_normal[executable1]", "tests/test_cli.py::test_run_sched[executable0]", "tests/test_cli.py::test_run_sched[executable1]", "tests/test_cli.py::test_run_pag_plugin[xrootd.io_wait-executable0]", "tests/test_cli.py::test_run_pag_p...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_added_files", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2020-07-22 12:01:56+00:00
mit
3,833
mfuentesg__SyncSettings-151
diff --git a/.gitignore b/.gitignore index 8babfb9..2c1bd69 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,5 @@ tests/options.json .idea cover .coverage + +pyproject.toml diff --git a/sync_settings/commands/download.py b/sync_settings/commands/download.py index d0f2985..5a00a8e 100644 --- a/sync_settings/comm...
mfuentesg/SyncSettings
5c7fd2595b3c4fe8672d33bc9c6043f4b192613d
diff --git a/tests/mocks/sublime_mock.py b/tests/mocks/sublime_mock.py index c7d5c25..d22a014 100644 --- a/tests/mocks/sublime_mock.py +++ b/tests/mocks/sublime_mock.py @@ -1,3 +1,6 @@ +import json +import re + DIALOG_YES = 1 @@ -29,3 +32,12 @@ def load_settings(*args): 'included_files': [], 'exc...
No JSON object could be decoded Hey! Faced a problem. Maybe it correlates with the new version of sublime text 4070 alpha ![image](https://user-images.githubusercontent.com/5683877/78499493-ad35cb80-7759-11ea-8b4e-a6d301f32009.png) ``` WARNING:Sync Settings.sync_settings.libs.logger:{'message': 'Not Found', 'do...
0.0
5c7fd2595b3c4fe8672d33bc9c6043f4b192613d
[ "tests/test_sync_version.py::TestSyncVersion::test_get_local_version_with_commented_content" ]
[ "tests/test_sync_version.py::TestSyncVersion::test_get_local_version_empty_json", "tests/test_sync_version.py::TestSyncVersion::test_get_local_version_invalid_content", "tests/test_sync_version.py::TestSyncVersion::test_get_local_version_no_file", "tests/test_sync_version.py::TestSyncVersion::test_get_local_v...
{ "failed_lite_validators": [ "has_hyperlinks", "has_media", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-05-10 20:39:47+00:00
mit
3,873
jaraco__inflect-125
diff --git a/CHANGES.rst b/CHANGES.rst index 5902ef4..a1c8450 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,8 @@ +v5.3.0 +====== + +* #108: Add support for pluralizing open compound nouns. + v5.2.0 ====== diff --git a/inflect.py b/inflect.py index 23fece2..3bb946b 100644 --- a/inflect.py +++ b/inflect.py @@...
jaraco/inflect
532444a0dd9db7ee7c40ebe384f8412b28b835fd
diff --git a/tests/test_compounds.py b/tests/test_compounds.py index 52030e8..d968f97 100644 --- a/tests/test_compounds.py +++ b/tests/test_compounds.py @@ -61,3 +61,30 @@ def test_unit_handling_combined(): } for singular, plural in test_cases.items(): assert p.plural(singular) == plural + + +def tes...
list index out of range in engine.postprocess Inflect pip installed into virtual environment running python3.7 on ubuntu 18.04 After getting an error I wrote some debug statements into inflect.py starting on line 2215: def postprocess(self, orig, inflected): inflected = str(inflected) ...
0.0
532444a0dd9db7ee7c40ebe384f8412b28b835fd
[ "tests/test_compounds.py::test_unit_open_compound_nouns_classical" ]
[ "tests/test_compounds.py::test_compound_1", "tests/test_compounds.py::test_unit_handling_fractional", "tests/test_compounds.py::test_compound_3", "tests/test_compounds.py::test_unit_handling_combined", "tests/test_compounds.py::test_unit_handling_degree", "tests/test_compounds.py::test_unit_open_compound_...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2021-02-28 22:14:55+00:00
mit
3,217
torrua__keyboa-15
diff --git a/keyboa/button.py b/keyboa/button.py index 6280ba8..9b70703 100644 --- a/keyboa/button.py +++ b/keyboa/button.py @@ -46,6 +46,9 @@ class Button(ButtonCheck): back_marker: CallbackDataMarker = str() copy_text_to_callback: Optional[bool] = None + def __call__(self, *args, **kwargs): + re...
torrua/keyboa
f70ec7162e4352726922d60088f2bce9e88fc96f
diff --git a/tests/test_base.py b/tests/test_base.py index 78dc2cb..1c77e28 100644 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -17,7 +17,7 @@ def test_items_is_none_or_empty(): :return: """ with pytest.raises(ValueError) as _: - Keyboa(items=list()) + Keyboa(items=[]) with pyt...
(PTC-W0019) Consider using literal syntax to create the data structure ## Description Using the literal syntax can give minor performance bumps compared to using function calls to create `dict`, `list` and `tuple`. ## Occurrences There are 2 occurrences of this issue in the repository. See all occurrences on De...
0.0
f70ec7162e4352726922d60088f2bce9e88fc96f
[ "tests/test_button.py::test_button_call_method" ]
[ "tests/test_base.py::test_items_is_none_or_empty", "tests/test_base.py::test_copy_text_to_callback_is_not_bool", "tests/test_base.py::test_number_of_items_out_of_limits", "tests/test_base.py::test_number_of_items_in_row_out_of_limits", "tests/test_button.py::test_acceptable_button_source_types[2_0]", "tes...
{ "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2021-10-01 04:11:39+00:00
mit
6,064
unt-libraries__pyuntl-43
diff --git a/pyuntl/untl_structure.py b/pyuntl/untl_structure.py index b47c3fc..25b2487 100644 --- a/pyuntl/untl_structure.py +++ b/pyuntl/untl_structure.py @@ -1,5 +1,6 @@ import socket import json +import sys import urllib.request from lxml.etree import Element, SubElement, tostring from pyuntl import UNTL_XML_O...
unt-libraries/pyuntl
a02066a0d2607c16de1591c23b71f4d36abc7591
diff --git a/tests/untl_structure_test.py b/tests/untl_structure_test.py index 3e82016..8f08cb6 100644 --- a/tests/untl_structure_test.py +++ b/tests/untl_structure_test.py @@ -587,3 +587,67 @@ def test_generate_form_data(_): assert isinstance(fg, us.FormGenerator) # Check missing children were added. as...
Add hidden/unhidden helpers to pyuntl I was thinking that it might be useful to add a few common methods and properties to the python version of a UNTL record. I was thinking we could add two properties. `record.is_hidden` and `record.is_unhidden` that would return a `True` or `False` depending on the record. ...
0.0
a02066a0d2607c16de1591c23b71f4d36abc7591
[ "tests/untl_structure_test.py::test_Metadata_is_hidden[test_input_content0-True]", "tests/untl_structure_test.py::test_Metadata_is_hidden[test_input_content1-False]", "tests/untl_structure_test.py::test_Metadata_is_hidden_with_no_meta_hidden_element", "tests/untl_structure_test.py::test_Metadata_make_hidden[t...
[ "tests/untl_structure_test.py::test_UNTLStructureException", "tests/untl_structure_test.py::test_create_untl_xml_subelement_no_children", "tests/untl_structure_test.py::test_create_untl_xml_subelement_children", "tests/untl_structure_test.py::test_add_missing_children", "tests/untl_structure_test.py::test_U...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2020-04-13 23:12:10+00:00
bsd-3-clause
6,176
oasis-open__cti-taxii-server-44
diff --git a/medallion/backends/memory_backend.py b/medallion/backends/memory_backend.py index 8da67b0..b07ae14 100644 --- a/medallion/backends/memory_backend.py +++ b/medallion/backends/memory_backend.py @@ -163,22 +163,23 @@ class MemoryBackend(Backend): try: for new_obj ...
oasis-open/cti-taxii-server
c99f8dcd93ad5f06174fc2767771acd491bedaaa
diff --git a/medallion/test/test_memory_backend.py b/medallion/test/test_memory_backend.py index a23b9f1..7c9f982 100644 --- a/medallion/test/test_memory_backend.py +++ b/medallion/test/test_memory_backend.py @@ -207,6 +207,54 @@ class TestTAXIIServerWithMemoryBackend(unittest.TestCase): assert manifests["obje...
BUG: checking new object IDs as existing already always fail https://github.com/oasis-open/cti-taxii-server/blob/f6398926d866989201e754dca0fec1e1a041acdf/medallion/backends/memory_backend.py#L166 This line will always fail, you're checking that the ID of the object belongs in the array of objects instead of checking...
0.0
c99f8dcd93ad5f06174fc2767771acd491bedaaa
[ "medallion/test/test_memory_backend.py::TestTAXIIServerWithMemoryBackend::test_add_existing_objects" ]
[]
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2018-10-04 01:26:04+00:00
bsd-3-clause
4,323
google__cyanobyte-128
diff --git a/cloudbuild-deploy.yaml b/cloudbuild-deploy.yaml index 83f0570..dbb30dd 100644 --- a/cloudbuild-deploy.yaml +++ b/cloudbuild-deploy.yaml @@ -16,6 +16,28 @@ steps: args: ['-c', 'wget -O- https://github.com/gohugoio/hugo/releases/download/v${_HUGO}/hugo_extended_${_HUGO}_Linux-64bit.tar.gz | tar zx'] id...
google/cyanobyte
429e255bc41341c9993ca4d9bd7d46a283f05202
diff --git a/test/sampleData/markdown/ADS1015.md b/test/sampleData/markdown/ADS1015.md index b188fd7..eb84995 100644 --- a/test/sampleData/markdown/ADS1015.md +++ b/test/sampleData/markdown/ADS1015.md @@ -1,5 +1,10 @@ -# ADS1015 -Texas Instruments Analog-Digital Converter +--- +title: "ADS1015" +linkTitle: "ADS1015" +w...
Add doc generation from markdown template
0.0
429e255bc41341c9993ca4d9bd7d46a283f05202
[ "test/test_codegen.py::TestCodegen::test_Markdown" ]
[ "test/test_codegen.py::TestCodegen::test_Arduino", "test/test_codegen.py::TestCodegen::test_Kubos", "test/test_codegen.py::TestCodegen::test_RaspberryPi" ]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_added_files", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2020-03-04 21:42:32+00:00
apache-2.0
2,565
python__mypy_extensions-47
diff --git a/mypy_extensions.py b/mypy_extensions.py index 6600b21..aff5145 100644 --- a/mypy_extensions.py +++ b/mypy_extensions.py @@ -42,17 +42,32 @@ def _typeddict_new(cls, _typename, _fields=None, **kwargs): except (AttributeError, ValueError): pass - return _TypedDictMeta(_typename, (), ns) + ...
python/mypy_extensions
a1b59f718e28c5dc897272211e0d00e0f58cc908
diff --git a/tests/testextensions.py b/tests/testextensions.py index 991c4e5..a41f5f6 100644 --- a/tests/testextensions.py +++ b/tests/testextensions.py @@ -1,6 +1,8 @@ import sys import pickle import typing +from contextlib import contextmanager +from textwrap import dedent from unittest import TestCase, main, ski...
Deprecate `mypy_extensions.TypedDict`? `mypy_extensions.TypedDict` is problematic for several reasons: - `mypy_extensions.TypedDict` is missing quite a few features that have been added to `typing.TypedDict` at runtime (and have been backported to `typing_extensions.TypedDict`). - I think the existence of both `myp...
0.0
a1b59f718e28c5dc897272211e0d00e0f58cc908
[ "tests/testextensions.py::TypedDictTests::test_basics_iterable_syntax", "tests/testextensions.py::TypedDictTests::test_basics_keywords_syntax", "tests/testextensions.py::TypedDictTests::test_optional", "tests/testextensions.py::TypedDictTests::test_pickle", "tests/testextensions.py::TypedDictTests::test_py3...
[ "tests/testextensions.py::TypedDictTests::test_py36_class_syntax_usage", "tests/testextensions.py::MypycNativeIntTests::test_construction", "tests/testextensions.py::MypycNativeIntTests::test_docstring", "tests/testextensions.py::MypycNativeIntTests::test_isinstance" ]
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2023-08-17 18:03:28+00:00
mit
5,118
ateliedocodigo__py-healthcheck-35
diff --git a/healthcheck/healthcheck.py b/healthcheck/healthcheck.py index 25c8701..c8ae8d8 100644 --- a/healthcheck/healthcheck.py +++ b/healthcheck/healthcheck.py @@ -135,7 +135,10 @@ class HealthCheck(object): # Reduce to 6 decimal points to have consistency with timestamp elapsed_time = float('{:....
ateliedocodigo/py-healthcheck
e5b9643b1f6b5cc5ddf96e4c7d6f66920145cf69
diff --git a/tests/unit/test_healthcheck.py b/tests/unit/test_healthcheck.py index bf0c7d1..7192434 100644 --- a/tests/unit/test_healthcheck.py +++ b/tests/unit/test_healthcheck.py @@ -31,7 +31,9 @@ class BasicHealthCheckTest(unittest.TestCase): def test_success_check(self): hc = HealthCheck(checkers=[s...
Add logger.debug if all health checks passed As of now only [failures](https://github.com/ateliedocodigo/py-healthcheck/blob/e6205bdcc32099d12cda6eba172b4a801104448f/healthcheck/healthcheck.py#L140) and [exceptions](https://github.com/ateliedocodigo/py-healthcheck/blob/e6205bdcc32099d12cda6eba172b4a801104448f/healthche...
0.0
e5b9643b1f6b5cc5ddf96e4c7d6f66920145cf69
[ "tests/unit/test_healthcheck.py::BasicHealthCheckTest::test_success_check" ]
[ "tests/unit/test_healthcheck.py::BasicHealthCheckTest::test_basic_check", "tests/unit/test_healthcheck.py::BasicHealthCheckTest::test_custom_section_function_failing_check", "tests/unit/test_healthcheck.py::BasicHealthCheckTest::test_custom_section_function_success_check", "tests/unit/test_healthcheck.py::Bas...
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2021-07-05 11:07:05+00:00
mit
1,251
prefab-cloud__prefab-cloud-python-61
diff --git a/prefab_cloud_python/config_client.py b/prefab_cloud_python/config_client.py index 7b25208..2d56c6e 100644 --- a/prefab_cloud_python/config_client.py +++ b/prefab_cloud_python/config_client.py @@ -55,6 +55,7 @@ class ConfigClient: self.checkpoint_freq_secs = 60 self.config_loader = ConfigL...
prefab-cloud/prefab-cloud-python
746b284749ee40ac8be9a85581f10eb9a913683d
diff --git a/tests/test_config_client.py b/tests/test_config_client.py index b0e5842..3028724 100644 --- a/tests/test_config_client.py +++ b/tests/test_config_client.py @@ -1,5 +1,5 @@ from prefab_cloud_python import Options, Client -from prefab_cloud_python.config_client import MissingDefaultException +from prefab_cl...
Does not work great in AWS lambda (or any HOME-less environment) currently Hey there, we are trying to use prefab-cloud-python in a AWS lambda, and since those usually don't have a HOME directory defined, the following lines throw errors: https://github.com/prefab-cloud/prefab-cloud-python/blob/746b284749ee40ac8b...
0.0
746b284749ee40ac8be9a85581f10eb9a913683d
[ "tests/test_config_client.py::TestConfigClient::test_get", "tests/test_config_client.py::TestConfigClient::test_get_with_default", "tests/test_config_client.py::TestConfigClient::test_get_without_default_raises", "tests/test_config_client.py::TestConfigClient::test_get_without_default_returns_none_if_configur...
[]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2024-02-12 21:25:08+00:00
mit
4,678
mrf345__flask_minify-80
diff --git a/Makefile b/Makefile index 608c314..1227923 100644 --- a/Makefile +++ b/Makefile @@ -6,9 +6,9 @@ c ?= 1 test: install test -f .venv/bin/activate && source .venv/bin/activate && python -m bandit -c bandit.yml -r . && python -m pytest --count=$(c) lint: install - source .venv/bin/activate && python -m iso...
mrf345/flask_minify
4b48318cb3a6eac55b76f59d197dc8c895b00392
diff --git a/tests/units.py b/tests/units.py index ddd1aa5..97606da 100644 --- a/tests/units.py +++ b/tests/units.py @@ -1,8 +1,10 @@ -from random import randint from unittest import mock +import pytest + from flask_minify import minify, parsers from flask_minify.cache import MemoryCache +from flask_minify.excepti...
DeprecationWarning: `_app_ctx_stack` is deprecated and will be removed in Flask `2.3`. Use `g` to store data, or `app_ctx` to access the current context. Please address this deprecation warning in next release. ``` /venv/lib/python3.9/site-packages/flask_minify/main.py:122: DeprecationWarning: '_app_ctx_stack' is d...
0.0
4b48318cb3a6eac55b76f59d197dc8c895b00392
[ "tests/units.py::TestUtils::test_is_empty", "tests/units.py::TestUtils::test_is_html", "tests/units.py::TestUtils::test_is_js", "tests/units.py::TestUtils::test_is_cssless", "tests/units.py::TestParsers::test_css_edge_cases_with_rcssmin", "tests/units.py::TestParsers::test_overriding_parser_options" ]
[]
{ "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2022-10-02 20:04:41+00:00
mit
4,063
m0nhawk__grafana_api-43
diff --git a/grafana_api/grafana_api.py b/grafana_api/grafana_api.py index e965768..bb7cc5e 100644 --- a/grafana_api/grafana_api.py +++ b/grafana_api/grafana_api.py @@ -56,9 +56,11 @@ class GrafanaAPI: url_path_prefix="", protocol="http", verify=True, + timeout=5.0, ): se...
m0nhawk/grafana_api
b5f1266273fb836580b03224456843b043089814
diff --git a/test/test_grafana.py b/test/test_grafana.py index d4affad..1c8ede3 100644 --- a/test/test_grafana.py +++ b/test/test_grafana.py @@ -67,8 +67,22 @@ class TestGrafanaAPI(unittest.TestCase): headers=None, json=None, verify=False, + timeout=5.0, ) + ...
Missing timeouts **Describe the bug** The requests never timeout, this is not a good idea in general **Expected behavior** The user should be able to set one and there should be a default (maybe 10s)
0.0
b5f1266273fb836580b03224456843b043089814
[ "test/test_grafana.py::TestGrafanaAPI::test_grafana_api_no_verify", "test/test_grafana.py::TestGrafanaAPI::test_grafana_api_timeout" ]
[ "test/test_grafana.py::TestGrafanaAPI::test_grafana_api", "test/test_grafana.py::TestGrafanaAPI::test_grafana_api_basic_auth", "test/test_grafana.py::TestGrafanaAPI::test_grafana_api_token_auth" ]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2019-09-09 02:16:17+00:00
mit
3,662
web2py__pydal-349
diff --git a/pydal/dialects/base.py b/pydal/dialects/base.py index 89e261f9..fb058fe2 100644 --- a/pydal/dialects/base.py +++ b/pydal/dialects/base.py @@ -399,7 +399,8 @@ class SQLDialect(CommonDialect): return '' def coalesce(self, first, second): - expressions = [self.expand(first)]+[self.expan...
web2py/pydal
d59b588900f26e6e204fb119115efa91fe7db692
diff --git a/tests/sql.py b/tests/sql.py index 2573f3a3..c118e372 100644 --- a/tests/sql.py +++ b/tests/sql.py @@ -149,6 +149,74 @@ class TestFields(unittest.TestCase): else: isinstance(f.formatter(datetime.datetime.now()), str) + def testUploadField(self): + import tempfile + ...
coalesce() incorrectly expands constant values When you pass string constant into coalesce, it will be expanded as identifier instead of string constant: `db().select(db.table.str_field.coalesce('foo'))` would expand into this: `SELECT COALESCE(table.str_field,foo) FROM table` but the expected behavior is this: `S...
0.0
d59b588900f26e6e204fb119115efa91fe7db692
[ "tests/sql.py::TestFields::testUploadField" ]
[ "tests/sql.py::TestFields::testFieldFormatters", "tests/sql.py::TestFields::testFieldLabels", "tests/sql.py::TestFields::testFieldName", "tests/sql.py::TestFields::testFieldTypes", "tests/sql.py::TestFields::testRun", "tests/sql.py::TestTables::testTableNames", "tests/sql.py::TestAll::testSQLALL", "te...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2016-04-21 22:23:30+00:00
bsd-3-clause
6,237
lapix-ufsc__lapixdl-43
diff --git a/lapixdl/formats/annotation.py b/lapixdl/formats/annotation.py index 919f70a..a0e2eb1 100644 --- a/lapixdl/formats/annotation.py +++ b/lapixdl/formats/annotation.py @@ -26,6 +26,16 @@ class BBox: cls: int score: float | None = None + def __post_init__(self): + if self.upper_left_x < 0 ...
lapix-ufsc/lapixdl
354ad05a93680744e0c0d3a9345fc05d23ca6f79
diff --git a/tests/formats/annotation_test.py b/tests/formats/annotation_test.py index aa25429..202ba3a 100644 --- a/tests/formats/annotation_test.py +++ b/tests/formats/annotation_test.py @@ -28,6 +28,20 @@ def test_bbox(): assert bbox.slice_y == slice(0, 14) +def test_invalid_bbox(): + with pytest.raises(...
Division by zero at calculate_bbox_iou I can't reproduce the error with tests, but, some moments at https://github.com/lapix-ufsc/lapixdl/blob/ee3faf20b2beab7bbb794328f724b7b8044ac1b1/lapixdl/evaluation/evaluate.py#L211 The union it's equals zero and raise the error. To solve just need: ```python if union_area == ...
0.0
354ad05a93680744e0c0d3a9345fc05d23ca6f79
[ "tests/formats/annotation_test.py::test_invalid_bbox" ]
[ "tests/formats/annotation_test.py::test_bbox", "tests/formats/annotation_test.py::test_bbox_intersection_and_union_area_with", "tests/formats/annotation_test.py::test_bbox_to_polygon", "tests/formats/annotation_test.py::test_bounds_to_bbox", "tests/formats/annotation_test.py::test_annotation_bbox", "tests...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2022-10-26 13:21:23+00:00
mit
3,502
Clinical-Genomics__scout-656
diff --git a/scout/build/panel.py b/scout/build/panel.py index 1a4dfa0fd..85b02bfef 100644 --- a/scout/build/panel.py +++ b/scout/build/panel.py @@ -44,7 +44,7 @@ def build_gene(gene_info, adapter): hgnc_gene = adapter.hgnc_gene(hgnc_id) if hgnc_gene is None: - raise IntegrityError + raise...
Clinical-Genomics/scout
e41d7b94106581fa28da793e2ab19c466e2f2f5a
diff --git a/tests/parse/test_parse_coordinates.py b/tests/parse/test_parse_coordinates.py new file mode 100644 index 000000000..791148fb3 --- /dev/null +++ b/tests/parse/test_parse_coordinates.py @@ -0,0 +1,253 @@ +from scout.parse.variant.coordinates import (get_cytoband_coordinates, get_sub_category, + ...
CSV - length -1 for a deletion of 80 genes https://scout.scilifelab.se/cust003/17159/sv/variants?variant_type=clinical&gene_panels=EP&hgnc_symbols=&size=&chrom=&thousand_genomes_frequency= please have a look. Something doesn't fit here. A deletion of 1 bp can not contain 80 genes. thanks, Michela
0.0
e41d7b94106581fa28da793e2ab19c466e2f2f5a
[ "tests/parse/test_parse_coordinates.py::test_get_end_deletion", "tests/parse/test_parse_coordinates.py::test_parse_coordinates_snv", "tests/parse/test_parse_coordinates.py::test_get_sv_length_translocation", "tests/parse/test_parse_coordinates.py::test_get_sv_length_del_no_length", "tests/parse/test_parse_c...
[ "tests/parse/test_parse_coordinates.py::test_get_subcategory_indel", "tests/parse/test_parse_coordinates.py::test_get_length_snv", "tests/parse/test_parse_coordinates.py::test_get_length_indel", "tests/parse/test_parse_coordinates.py::test_get_subcategory_snv" ]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2017-11-10 12:04:32+00:00
bsd-3-clause
143
learningequality__ricecooker-394
diff --git a/Makefile b/Makefile index aabbbbd..4a0a854 100644 --- a/Makefile +++ b/Makefile @@ -59,6 +59,14 @@ test: clean-test ## run tests quickly with the default Python test-all: clean-test ## run tests on every Python version with tox tox +integration-test: + echo "Testing against hotfixes" + CONTENTWORKSHOP...
learningequality/ricecooker
ecea76069def01bae2aff9a3656d5715d85144e2
diff --git a/tests/conftest.py b/tests/conftest.py index aa15b77..a0c5f30 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -171,6 +171,12 @@ def base_data(channel_domain_namespace, title): "license_description": None, "aggregator": "", # New in ricecooker 0.6.20 "provider": "", # N...
TreeNode to_dict is incompatible with Studio unstable branch * ricecooker version: v0.7.0-beta6 * Python version: 3.7 * Operating System: Fedora Silverblue 36 ### Description I am creating a ricecooker script which makes use of the new structured metadata fields in the `develop` branch. This script creates a tr...
0.0
ecea76069def01bae2aff9a3656d5715d85144e2
[ "tests/test_data.py::test_init", "tests/test_data.py::test_validate", "tests/test_data.py::test_topic_to_dict", "tests/test_data.py::test_video_to_dict", "tests/test_data.py::test_audio_to_dict", "tests/test_data.py::test_document_to_dict", "tests/test_data.py::test_html_to_dict", "tests/test_data.py:...
[ "tests/test_data.py::test_alternative_domain_namespace", "tests/test_data.py::test_channel_to_dict" ]
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-09-22 19:13:03+00:00
mit
3,530
xarray-contrib__xskillscore-339
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 4a955fd..40f2270 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,11 @@ Changelog History xskillscore v0.0.23 (2021-xx-xx) -------------------------------- +Internal Changes +~~~~~~~~~~~~~~~~ +- :py:func:`~xskillscore.resampling.resample_iterations_idx` do n...
xarray-contrib/xskillscore
ef0c0fd34add126eb88a0334b3da348b9eef971b
diff --git a/xskillscore/tests/test_resampling.py b/xskillscore/tests/test_resampling.py index 6d09fe3..572a55c 100644 --- a/xskillscore/tests/test_resampling.py +++ b/xskillscore/tests/test_resampling.py @@ -154,3 +154,14 @@ def test_resample_inputs(a_1d, func, input, chunk, replace): assert is_dask_collection(ac...
raise error if forecast doesn't contain coords in resample_iterations_idx `a = xr.DataArray(np.random.rand(1000, 3, 3), dims=['time', 'x', 'y'])` doesn't work in `xs.resample_iterations_idx(a, 500, 'time')` ``` xr.DataArray( np.random.rand(1000, 3, 3), coords=[("time", np.arange(1000)), ("x", np.arange...
0.0
ef0c0fd34add126eb88a0334b3da348b9eef971b
[ "xskillscore/tests/test_resampling.py::test_resample_dim_no_coord[resample_iterations]", "xskillscore/tests/test_resampling.py::test_resample_dim_no_coord[resample_iterations_idx]" ]
[ "xskillscore/tests/test_resampling.py::test_resampling_roughly_identical_mean", "xskillscore/tests/test_resampling.py::test_gen_idx_replace[True]", "xskillscore/tests/test_resampling.py::test_gen_idx_replace[False]", "xskillscore/tests/test_resampling.py::test_resample_replace_False_once_same_mean[resample_it...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-07-24 22:26:25+00:00
apache-2.0
6,279
ej2__python-quickbooks-322
diff --git a/quickbooks/mixins.py b/quickbooks/mixins.py index 9b51a42..2083139 100644 --- a/quickbooks/mixins.py +++ b/quickbooks/mixins.py @@ -119,6 +119,53 @@ class SendMixin(object): class VoidMixin(object): + + def get_void_params(self): + qb_object_params_map = { + "Payment": { + ...
ej2/python-quickbooks
a02ca1ba6bac7ced8e1af07e6a04d7a46818df22
diff --git a/tests/integration/test_billpayment.py b/tests/integration/test_billpayment.py index fab990c..c7ce650 100644 --- a/tests/integration/test_billpayment.py +++ b/tests/integration/test_billpayment.py @@ -1,5 +1,6 @@ from datetime import datetime +from quickbooks.objects import AccountBasedExpenseLine, Ref, ...
Add the ability to void all voidable QB types Currently, the [VoidMixin](https://github.com/ej2/python-quickbooks/blob/master/quickbooks/mixins.py#L127) is built to be able to void Invoices and uses the `operation=void` param. When it comes to voidable types in QB, we have * Payment * SalesReceipt * BillPayment *...
0.0
a02ca1ba6bac7ced8e1af07e6a04d7a46818df22
[ "tests/unit/test_mixins.py::VoidMixinTest::test_void_bill_payment", "tests/unit/test_mixins.py::VoidMixinTest::test_void_sales_receipt" ]
[ "tests/unit/test_mixins.py::ToJsonMixinTest::test_to_json", "tests/unit/test_mixins.py::FromJsonMixinTest::test_from_json", "tests/unit/test_mixins.py::FromJsonMixinTest::test_from_json_missing_detail_object", "tests/unit/test_mixins.py::ToDictMixinTest::test_to_dict", "tests/unit/test_mixins.py::ListMixinT...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2023-09-20 12:48:04+00:00
mit
2,085