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
alexmojaki__pure_eval-12
diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index fb89d46..0000000 --- a/.travis.yml +++ /dev/null @@ -1,32 +0,0 @@ -dist: xenial -language: python -sudo: false - -python: - - 3.5 - - 3.6 - - 3.7 - - 3.8-dev - - 3.9-dev - -env: - global: - - PURE_EVAL_SLOW_TESTS=1 - - COVERALLS_PARALLEL=...
alexmojaki/pure_eval
b5e1617805fbb1e77101de1ad372d2a0d58053ce
diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml new file mode 100644 index 0000000..7f68be5 --- /dev/null +++ b/.github/workflows/pytest.yml @@ -0,0 +1,36 @@ +name: Tests +on: [push, pull_request] +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version...
TypeError for malformed metaclass example In https://github.com/ipython/ipython/issues/13481, the following example used to show a fatal error in IPython: ```python class X(type): def __prepare__(cls, *args, **kwargs): return [] class Y(metaclass=X): pass ``` If I try the same example with fri...
0.0
b5e1617805fbb1e77101de1ad372d2a0d58053ce
[ "tests/test_utils.py::test_sys_modules", "tests/test_utils.py::test_repr_cannot_eval", "tests/test_utils.py::test_safe_name_types", "tests/test_utils.py::test_safe_name_samples", "tests/test_utils.py::test_safe_name_direct", "tests/test_utils.py::test_is_standard_types", "tests/test_utils.py::test_ensur...
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_removed_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-01-22 15:31:07+00:00
mit
1,034
executablebooks__MyST-Parser-734
diff --git a/myst_parser/sphinx_ext/myst_refs.py b/myst_parser/sphinx_ext/myst_refs.py index 8a4dc20..74edcb3 100644 --- a/myst_parser/sphinx_ext/myst_refs.py +++ b/myst_parser/sphinx_ext/myst_refs.py @@ -178,9 +178,12 @@ class MystReferenceResolver(ReferencesResolver): ) assert self.app.builder...
executablebooks/MyST-Parser
585ce9acfb282c555e86b436fa5cdc449b80f27d
diff --git a/tests/test_sphinx/sourcedirs/texi_table/index.md b/tests/test_sphinx/sourcedirs/texi_table/index.md deleted file mode 100644 index 9face4b..0000000 --- a/tests/test_sphinx/sourcedirs/texi_table/index.md +++ /dev/null @@ -1,3 +0,0 @@ -| foo | bar | -| --- | --- | -| baz | bim | diff --git a/tests/test_sphin...
sphinx.errors.NoUri ### Describe the bug **context** I don't know whether this error relates to MyST-Parser, but I began getting this error after MyST-Parser 0.19.0 was released. **expectation** I expected no errors like my previous builds with myst v0.18.1. https://readthedocs.org/projects/deepmd/builds/1963413...
0.0
585ce9acfb282c555e86b436fa5cdc449b80f27d
[ "tests/test_sphinx/test_sphinx_builds.py::test_texinfo" ]
[ "tests/test_sphinx/test_sphinx_builds.py::test_references", "tests/test_sphinx/test_sphinx_builds.py::test_references_singlehtml", "tests/test_sphinx/test_sphinx_builds.py::test_heading_slug_func", "tests/test_sphinx/test_sphinx_builds.py::test_includes", "tests/test_sphinx/test_sphinx_builds.py::test_inclu...
{ "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2023-03-02 05:26:24+00:00
mit
2,208
tefra__pytuber-20
diff --git a/pytuber/cli.py b/pytuber/cli.py index f432978..2c7d6e6 100644 --- a/pytuber/cli.py +++ b/pytuber/cli.py @@ -68,6 +68,8 @@ def add(): """Add playlist.""" +add.add_command(core.add_from_editor) +add.add_command(core.add_from_file) add.add_command(lastfm.add) diff --git a/pytuber/core/commands/_...
tefra/pytuber
ae19a31c38462821ec22cd7376914ddce6a15a4f
diff --git a/tests/core/commands/test_cmd_add.py b/tests/core/commands/test_cmd_add.py new file mode 100644 index 0000000..c1fdd90 --- /dev/null +++ b/tests/core/commands/test_cmd_add.py @@ -0,0 +1,104 @@ +from unittest import mock + +from pytuber import cli +from pytuber.core.commands.cmd_add import create_playlist, p...
Support raw string format A file containing tracks one per line and a direct copy/paste in the terminal
0.0
ae19a31c38462821ec22cd7376914ddce6a15a4f
[ "tests/core/commands/test_cmd_add.py::CommandAddTests::test_add_from_editor", "tests/core/commands/test_cmd_add.py::CommandAddTests::test_add_from_file", "tests/core/commands/test_cmd_add.py::CommandAddUtilsTests::test_create_playlist", "tests/core/commands/test_cmd_add.py::CommandAddUtilsTests::test_create_p...
[]
{ "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 }
2019-02-10 17:39:49+00:00
mit
5,839
joscha0__daily-wiki-13
diff --git a/getwiki.py b/getwiki.py index 395aac1..0c1db59 100644 --- a/getwiki.py +++ b/getwiki.py @@ -33,4 +33,4 @@ def get_wiki(language): img = imgs[0] img['src'] = 'http:'+img['src'] - return img, text + return str(img), str(text) diff --git a/sendmail.py b/sendmail.py index 41288e4..1538d0e 100...
joscha0/daily-wiki
1630910248178e4d9d865f66e7d8b186b39d1315
diff --git a/tests/test_getwiki.py b/tests/test_getwiki.py new file mode 100644 index 0000000..ac45dae --- /dev/null +++ b/tests/test_getwiki.py @@ -0,0 +1,28 @@ +import unittest +from getwiki import get_wiki + + +class TestFirestore(unittest.TestCase): + + def test_get_wiki(self): + languages = ["en", "de", ...
fix email invalid if one email is invalid throws error `Traceback (most recent call last): File "sendmail.py", line 50, in <module> send_email(img, text, email) File "sendmail.py", line 21, in send_email s.sendmail(msg['From'], msg['To'], msg.as_string()) File "/app/.heroku/python/lib/python3.6/sm...
0.0
1630910248178e4d9d865f66e7d8b186b39d1315
[ "tests/test_getwiki.py::TestFirestore::test_get_wiki" ]
[]
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2020-10-21 12:46:56+00:00
mit
3,337
Turbo87__utm-31
diff --git a/utm/conversion.py b/utm/conversion.py old mode 100755 new mode 100644 index d21742a..449f3d1 --- a/utm/conversion.py +++ b/utm/conversion.py @@ -216,13 +216,13 @@ def latlon_to_zone_number(latitude, longitude): return 32 if 72 <= latitude <= 84 and longitude >= 0: - if longitude <= 9...
Turbo87/utm
4c7c13f2b2b9c01a8581392641aeb8bbda6aba6f
diff --git a/test/test_utm.py b/test/test_utm.py index 55686d7..c820cea 100755 --- a/test/test_utm.py +++ b/test/test_utm.py @@ -231,5 +231,22 @@ class Zone32V(unittest.TestCase): self.assert_zone_equal(UTM.from_latlon(64, 12), 33, 'W') +class TestRightBoundaries(unittest.TestCase): + + def assert_zone_...
UTM zone exceptions error By definition zones are left-closed, right-open intervals, e.g. zone 31: 0 <= latitude < 6. In function latlon_to_zone_number: ``` if 72 <= latitude <= 84 and longitude >= 0: if longitude <= 9: return 31 elif longitude <= 21: return 33 elif longitude <= 33: ...
0.0
4c7c13f2b2b9c01a8581392641aeb8bbda6aba6f
[ "test/test_utm.py::TestRightBoundaries::test_limits" ]
[ "test/test_utm.py::KnownValues::test_from_latlon", "test/test_utm.py::KnownValues::test_to_latlon", "test/test_utm.py::BadInput::test_from_latlon_range_checks", "test/test_utm.py::BadInput::test_to_latlon_range_checks", "test/test_utm.py::Zone32V::test_above", "test/test_utm.py::Zone32V::test_below", "t...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2017-06-26 10:44:15+00:00
mit
799
wireservice__agate-637
diff --git a/agate/aggregations/any.py b/agate/aggregations/any.py index 70fa702..67a9651 100644 --- a/agate/aggregations/any.py +++ b/agate/aggregations/any.py @@ -32,7 +32,7 @@ class Any(Aggregation): column = table.columns[self._column_name] data = column.values() - if isinstance(column.da...
wireservice/agate
0d2671358cdea94c83bd8f28b5a6718a9326b033
diff --git a/tests/test_aggregations.py b/tests/test_aggregations.py index c3c8fbb..11eefe1 100644 --- a/tests/test_aggregations.py +++ b/tests/test_aggregations.py @@ -138,6 +138,7 @@ class TestBooleanAggregation(unittest.TestCase): table = Table(rows, ['test'], [Boolean()]) Any('test').validate(tabl...
agate.All cannot test whether all data is False If the column data type is boolean, test gets overwritten to search for True values.
0.0
0d2671358cdea94c83bd8f28b5a6718a9326b033
[ "tests/test_aggregations.py::TestBooleanAggregation::test_any" ]
[ "tests/test_aggregations.py::TestSimpleAggregation::test_all", "tests/test_aggregations.py::TestSimpleAggregation::test_any", "tests/test_aggregations.py::TestSimpleAggregation::test_count", "tests/test_aggregations.py::TestSimpleAggregation::test_count_column", "tests/test_aggregations.py::TestSimpleAggreg...
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2016-10-30 16:11:15+00:00
mit
6,247
encode__httpcore-641
diff --git a/httpcore/_async/http11.py b/httpcore/_async/http11.py index 7ad3664..32fa3a6 100644 --- a/httpcore/_async/http11.py +++ b/httpcore/_async/http11.py @@ -20,6 +20,7 @@ from .._exceptions import ( ConnectionNotAvailable, LocalProtocolError, RemoteProtocolError, + WriteError, map_excepti...
encode/httpcore
80ff02f1276eba3cb6b6493b3f0b033a26d6348d
diff --git a/tests/_async/test_connection.py b/tests/_async/test_connection.py index 8b29942..b6ee0c7 100644 --- a/tests/_async/test_connection.py +++ b/tests/_async/test_connection.py @@ -9,10 +9,13 @@ from httpcore import ( SOCKET_OPTION, AsyncHTTPConnection, AsyncMockBackend, + AsyncMockStream, ...
Handle HTTP/1.1 half-closed connections gracefully. There's an HTTP/1.1 case that can occur where... * The client starts sending a request. * The server half-closes the connection. * The server sends a response, such as an HTTP 413 Content Too Large. Currently our behaviour here is that we'll see a `WriteError`...
0.0
80ff02f1276eba3cb6b6493b3f0b033a26d6348d
[ "tests/_async/test_connection.py::test_write_error_with_response_sent[asyncio]", "tests/_async/test_connection.py::test_write_error_without_response_sent[asyncio]", "tests/_async/test_connection.py::test_write_error_with_response_sent[trio]", "tests/_async/test_connection.py::test_write_error_without_response...
[ "tests/_async/test_connection.py::test_http_connection[asyncio]", "tests/_async/test_connection.py::test_concurrent_requests_not_available_on_http11_connections[asyncio]", "tests/_async/test_connection.py::test_http2_connection[asyncio]", "tests/_async/test_connection.py::test_request_to_incorrect_origin[asyn...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-12-13 19:52:44+00:00
bsd-3-clause
2,109
devopsspiral__KubeLibrary-124
diff --git a/CHANGELOG.md b/CHANGELOG.md index b7b2f42..e8800dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,8 +5,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). ## In progress + +## [0.8.1] - 2022-12-16 +### Ad...
devopsspiral/KubeLibrary
7f4037c283a38751f9a31160944a17e7b80ec97b
diff --git a/test/test_KubeLibrary.py b/test/test_KubeLibrary.py index b99291b..7cae67e 100644 --- a/test/test_KubeLibrary.py +++ b/test/test_KubeLibrary.py @@ -1,7 +1,6 @@ import json import mock import re -import ssl import unittest from KubeLibrary import KubeLibrary from KubeLibrary.exceptions import BearerTo...
certificate verify failed issue when using Get Namespaced Pod Exec When using the Get Namespaced Pod Exec keywork on a k8s cluster using a custom CA, the following error occurs : ``` ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get issuer certificate (_ssl.c:1129...
0.0
7f4037c283a38751f9a31160944a17e7b80ec97b
[ "test/test_KubeLibrary.py::TestKubeLibrary::test_list_namespaced_deployment_by_pattern" ]
[ "test/test_KubeLibrary.py::TestKubeLibrary::test_KubeLibrary_dynamic_delete", "test/test_KubeLibrary.py::TestKubeLibrary::test_list_namespace", "test/test_KubeLibrary.py::TestKubeLibrary::test_KubeLibrary_inits_with_bearer_token", "test/test_KubeLibrary.py::TestKubeLibrary::test_read_namespaced_endpoints", ...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-12-16 14:17:09+00:00
mit
1,894
PyFstat__PyFstat-489
diff --git a/docs/source/pyfstat.utils.rst b/docs/source/pyfstat.utils.rst index 260c2a7..1465894 100644 --- a/docs/source/pyfstat.utils.rst +++ b/docs/source/pyfstat.utils.rst @@ -7,7 +7,7 @@ Most of these are used internally by other parts of the package and are of interest mostly only for developers, but others ca...
PyFstat/PyFstat
c502303284fc4fba4dbe34eee1063d0f75d8b7e5
diff --git a/tests/test_utils/test_atoms.py b/tests/test_utils/test_atoms.py new file mode 100644 index 0000000..a425fec --- /dev/null +++ b/tests/test_utils/test_atoms.py @@ -0,0 +1,75 @@ +import lalpulsar +import pytest + +from pyfstat.utils import ( + copy_FstatAtomVector, + extract_singleIFOmultiFatoms_from_m...
segmentation fault from BSGL grid test with recent LALSuite nightlies **Describe the bug** see https://github.com/PyFstat/PyFstat/actions/runs/3360239212/jobs/5569188206#step:7:104 The first failing version seems to be `7.10.1.dev20221025`. Note that the non-BSGL `TestGridSearch::test_semicoherent_grid_search` d...
0.0
c502303284fc4fba4dbe34eee1063d0f75d8b7e5
[ "tests/test_utils/test_atoms.py::test_extract_singleIFOmultiFatoms_from_multiAtoms", "tests/test_utils/test_atoms.py::test_copy_FstatAtomVector" ]
[]
{ "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-11-01 17:07:09+00:00
mit
549
google-research__arxiv-latex-cleaner-29
diff --git a/arxiv_latex_cleaner/arxiv_latex_cleaner.py b/arxiv_latex_cleaner/arxiv_latex_cleaner.py index 96dcd0c..bc12ddc 100644 --- a/arxiv_latex_cleaner/arxiv_latex_cleaner.py +++ b/arxiv_latex_cleaner/arxiv_latex_cleaner.py @@ -111,6 +111,36 @@ def _remove_environment(text, environment): text) +def _rem...
google-research/arxiv-latex-cleaner
2045634c0b52bad482c9b3a0b507a7add84450e2
diff --git a/arxiv_latex_cleaner/tests/arxiv_latex_cleaner_test.py b/arxiv_latex_cleaner/tests/arxiv_latex_cleaner_test.py index 0a34693..60258f1 100644 --- a/arxiv_latex_cleaner/tests/arxiv_latex_cleaner_test.py +++ b/arxiv_latex_cleaner/tests/arxiv_latex_cleaner_test.py @@ -88,6 +88,41 @@ class UnitTests(parameterize...
Nested \iffalse \fi block comments. I used \iffalse ... \fi to block comment in my latex document, and used this modification of the _remove_environment command: ``` def _remove_iffalse(text): """Removes '\\iffalse *\\fi' from 'text'.""" """This has problems with nested \\iffalse \\fi statements""" return...
0.0
2045634c0b52bad482c9b3a0b507a7add84450e2
[ "arxiv_latex_cleaner/tests/arxiv_latex_cleaner_test.py::UnitTests::test_remove_iffalse_block_if_not_removed", "arxiv_latex_cleaner/tests/arxiv_latex_cleaner_test.py::UnitTests::test_remove_iffalse_block_if_removed_backslash", "arxiv_latex_cleaner/tests/arxiv_latex_cleaner_test.py::UnitTests::test_remove_iffalse...
[ "arxiv_latex_cleaner/tests/arxiv_latex_cleaner_test.py::UnitTests::test_keep_pattern_all_pass", "arxiv_latex_cleaner/tests/arxiv_latex_cleaner_test.py::UnitTests::test_keep_pattern_not_all_pass", "arxiv_latex_cleaner/tests/arxiv_latex_cleaner_test.py::UnitTests::test_remove_command_command_not_removed", "arxi...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-08-01 11:02:07+00:00
apache-2.0
2,561
repobee__repobee-feedback-26
diff --git a/repobee_feedback/_generate_multi_issues_file.py b/repobee_feedback/_generate_multi_issues_file.py new file mode 100644 index 0000000..4f007cb --- /dev/null +++ b/repobee_feedback/_generate_multi_issues_file.py @@ -0,0 +1,62 @@ +"""A helper command to automatically generate a file called issue.md +wich con...
repobee/repobee-feedback
304e38cfcaaa1dba37dbe7bf52e37dca2387572f
diff --git a/tests/test_generate_multi_issues_file.py b/tests/test_generate_multi_issues_file.py new file mode 100644 index 0000000..29b2c36 --- /dev/null +++ b/tests/test_generate_multi_issues_file.py @@ -0,0 +1,45 @@ +import sys + +import repobee +from repobee_feedback._generate_multi_issues_file import ( + MU...
Auto generate multi-issue file I'm getting real tired of adding #ISSUE#name-task-X#Pass/fail to a file 15 times so I considered writing a plugin to do that for me but realized I can just add it to the feedback plugin if that's okay with you @slarse I'm thinking something like: `repobee issues feedback cre...
0.0
304e38cfcaaa1dba37dbe7bf52e37dca2387572f
[ "tests/test_generate_multi_issues_file.py::TestGenerateMultiIssuesFile::test_creates_non_empty_output_file" ]
[]
{ "failed_lite_validators": [ "has_added_files" ], "has_test_patch": true, "is_lite": false }
2021-12-21 18:27:15+00:00
mit
5,246
seddonym__import-linter-79
diff --git a/AUTHORS.rst b/AUTHORS.rst index b34e861..b0fa74b 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -9,3 +9,4 @@ Contributors ============ * Anthony Sottile - https://github.com/asottile +* Łukasz Skarżyński - https://github.com/skarzi diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 49ecc2c..3df7df3 100644...
seddonym/import-linter
334b4d1b85bae7f21f7678e5bda17af0e7487af2
diff --git a/tests/unit/contracts/test_forbidden.py b/tests/unit/contracts/test_forbidden.py index 684d8eb..e69dc93 100644 --- a/tests/unit/contracts/test_forbidden.py +++ b/tests/unit/contracts/test_forbidden.py @@ -125,6 +125,19 @@ class TestForbiddenContract: ): contract.check(graph=graph) + ...
Duplicate ignored_imports lead to confusing error If you include an ignored import twice in a contract, you get the following error (as it tries to remove it the second time): ``` The edge mypackage.foo-mypackage.bar not in graph. ```
0.0
334b4d1b85bae7f21f7678e5bda17af0e7487af2
[ "tests/unit/contracts/test_forbidden.py::TestForbiddenContract::test_is_kept_when_no_forbidden_modules_imported", "tests/unit/contracts/test_forbidden.py::TestForbiddenContract::test_is_broken_when_forbidden_modules_imported", "tests/unit/contracts/test_forbidden.py::TestForbiddenContract::test_is_broken_when_f...
[]
{ "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 }
2020-07-26 10:23:27+00:00
bsd-2-clause
5,460
florimondmanca__fountain-lang-7
diff --git a/src/fountain/_ast/visitor.py b/src/fountain/_ast/visitor.py index 12308b0..7859e02 100644 --- a/src/fountain/_ast/visitor.py +++ b/src/fountain/_ast/visitor.py @@ -1,4 +1,4 @@ -from typing import Generic, TypeVar +from typing import Any, Generic, TypeVar from .nodes import Expr, Stmt @@ -12,11 +12,11 ...
florimondmanca/fountain-lang
4ca44d301117e2bd738aa98411d6eab7bb381b26
diff --git a/tests/test_cli.py b/tests/test_cli.py index b8a3bef..434a4fa 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -117,9 +117,7 @@ def test_cli_repl(monkeypatch: Any, capsys: Any) -> None: ), ( "fn f() print 'OK' end; f()", - # TODO: drop 'nil' after: - ...
Handling of expression statements results in unwanted prints Currently, expression statements such as: ```lua "hello, world" some_func(a, b, c) ``` Result in printing the result to the console. In the REPL or via `fountain -c` this is what we want, but not when running from a file. We should move the "pri...
0.0
4ca44d301117e2bd738aa98411d6eab7bb381b26
[ "tests/test_cli.py::test_cli_eval[fn" ]
[ "tests/test_cli.py::test_cli_repl", "tests/test_cli.py::test_cli_eval[print", "tests/test_cli.py::test_cli_eval[x", "tests/test_cli.py::test_cli_eval[\\n", "tests/test_cli.py::test_cli_eval[do", "tests/test_cli.py::test_cli_eval[assert", "tests/test_cli.py::test_cli_eval[--", "tests/test_cli.py::test_...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-10-02 13:59:15+00:00
apache-2.0
2,356
ultrabug__py3status-1221
diff --git a/py3status/formatter.py b/py3status/formatter.py index e265819e..db2875de 100644 --- a/py3status/formatter.py +++ b/py3status/formatter.py @@ -268,7 +268,9 @@ class Placeholder: output = u'{%s%s}' % (self.key, self.format) value = value_ = output.format(**{self.key: value})...
ultrabug/py3status
dcd3dda64b82e536cfd0233691d374a22e96aeac
diff --git a/tests/test_formatter.py b/tests/test_formatter.py index 0d1bf9b5..76febab4 100644 --- a/tests/test_formatter.py +++ b/tests/test_formatter.py @@ -296,10 +296,18 @@ def test_26(): def test_27(): - run_formatter({'format': '{None}', 'expected': '', }) + run_formatter({'format': '{None}', 'expected...
Formatting returns empty when closing with a False or None placeholder Formatting returns empty when closing with a `False` or `None` placeholder. ```diff diff --git a/py3status/modules/static_string.py b/py3status/modules/static_string.py index dbcec8c6..593b3740 100644 --- a/py3status/modules/static_string.py ++...
0.0
dcd3dda64b82e536cfd0233691d374a22e96aeac
[ "tests/test_formatter.py::test_27", "tests/test_formatter.py::test_27a", "tests/test_formatter.py::test_27b", "tests/test_formatter.py::test_30", "tests/test_formatter.py::test_module_false_value" ]
[ "tests/test_formatter.py::test_1", "tests/test_formatter.py::test_2", "tests/test_formatter.py::test_3", "tests/test_formatter.py::test_4", "tests/test_formatter.py::test_5", "tests/test_formatter.py::test_6", "tests/test_formatter.py::test_7", "tests/test_formatter.py::test_8", "tests/test_formatte...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2018-01-10 08:09:08+00:00
bsd-3-clause
6,156
tillahoffmann__localscope-10
diff --git a/README.rst b/README.rst index fee5d6c..b976dbc 100644 --- a/README.rst +++ b/README.rst @@ -20,7 +20,7 @@ Interactive python sessions, such as `Jupyter notebooks <https://jupyter.org/>`_ ... print(a) Traceback (most recent call last): ... - ValueError: `a` is not a permitted global + ...
tillahoffmann/localscope
fe4334355ea6e7bd1af0a15509b1f7a65f9da3b0
diff --git a/tests/test_localscope.py b/tests/test_localscope.py index 41bc69c..232a966 100644 --- a/tests/test_localscope.py +++ b/tests/test_localscope.py @@ -1,4 +1,4 @@ -from localscope import localscope +from localscope import localscope, LocalscopeException import uuid import pytest @@ -16,15 +16,24 @@ def te...
Add hints for where the offending variable is used... ... to make debugging easier.
0.0
fe4334355ea6e7bd1af0a15509b1f7a65f9da3b0
[ "[", "[100%]", "tests/test_localscope.py::test_vanilla_function", "tests/test_localscope.py::test_missing_global", "tests/test_localscope.py::test_forbidden_global", "tests/test_localscope.py::test_builtin", "tests/test_localscope.py::test_allowed", "tests/test_localscope.py::test_closure", "tests/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 }
2024-02-17 01:12:54+00:00
mit
5,912
hynek__argon2-cffi-174
diff --git a/CHANGELOG.md b/CHANGELOG.md index e3fe7fb..46c0765 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,12 @@ What explicitly *may* change over time are the default hashing parameters and th ## [Unreleased](https://github.com/hynek/argon2-cffi/compare/23.1.0...HEAD) +### Changed + +- `argon2.Pass...
hynek/argon2-cffi
abd0cf90d665f0b709ecccefe4b6187d14d60ffa
diff --git a/tests/test_password_hasher.py b/tests/test_password_hasher.py index d6fa626..17f9410 100644 --- a/tests/test_password_hasher.py +++ b/tests/test_password_hasher.py @@ -109,22 +109,32 @@ class TestPasswordHasher: with pytest.raises(InvalidHash): PasswordHasher().verify("tiger", "does n...
Make PasswordHasher.check_needs_rehash() accept bytes hash `PasswordHasher.check_needs_rehash()` should also accept bytes hashes to be consistent with the rest of the API.
0.0
abd0cf90d665f0b709ecccefe4b6187d14d60ffa
[ "tests/test_password_hasher.py::TestPasswordHasher::test_check_needs_rehash_no[True]", "tests/test_password_hasher.py::TestPasswordHasher::test_check_needs_rehash_yes[True]" ]
[ "tests/test_password_hasher.py::TestEnsureBytes::test_is_bytes", "tests/test_password_hasher.py::TestEnsureBytes::test_is_str", "tests/test_password_hasher.py::TestPasswordHasher::test_hash[p\\xe4ssword0]", "tests/test_password_hasher.py::TestPasswordHasher::test_hash[p\\xe4ssword1]", "tests/test_password_h...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2024-04-16 06:36:03+00:00
mit
2,768
unit8co__darts-1435
diff --git a/darts/timeseries.py b/darts/timeseries.py index fc757f58..b629aa4f 100644 --- a/darts/timeseries.py +++ b/darts/timeseries.py @@ -2604,10 +2604,6 @@ class TimeSeries: attrs=self._xa.attrs, ) - # new_xa = xr.concat(objs=[self._xa, other_xa], dim=str(self._time_dim)) - i...
unit8co/darts
9a40ca61ad34a7087bcfb27b01f0ea845a9fa4ae
diff --git a/darts/tests/test_timeseries.py b/darts/tests/test_timeseries.py index c4414a13..61688bd2 100644 --- a/darts/tests/test_timeseries.py +++ b/darts/tests/test_timeseries.py @@ -621,15 +621,53 @@ class TimeSeriesTestCase(DartsBaseTestClass): def test_append(self): TimeSeriesTestCase.helper_test...
[BUG] `append_values` incorrectly extends `time_index` of `pd.RangeIndex`-typed `TimeSeries` **Describe the bug** When `append_values` is used to add new values to a `pd.RangeIndex`-typed `TimeSeries` , the `time_index` of the entire series is 'reset' so that each value is labeled with its index position. This is part...
0.0
9a40ca61ad34a7087bcfb27b01f0ea845a9fa4ae
[ "darts/tests/test_timeseries.py::TimeSeriesTestCase::test_append", "darts/tests/test_timeseries.py::TimeSeriesTestCase::test_append_values", "darts/tests/test_timeseries.py::TimeSeriesTestCase::test_prepend", "darts/tests/test_timeseries.py::TimeSeriesTestCase::test_prepend_values" ]
[ "darts/tests/test_timeseries.py::TimeSeriesTestCase::test_alt_creation", "darts/tests/test_timeseries.py::TimeSeriesTestCase::test_column_names", "darts/tests/test_timeseries.py::TimeSeriesTestCase::test_creation", "darts/tests/test_timeseries.py::TimeSeriesTestCase::test_dates", "darts/tests/test_timeserie...
{ "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2022-12-18 03:42:10+00:00
apache-2.0
6,165
scikit-build__scikit-build-105
diff --git a/skbuild/cmaker.py b/skbuild/cmaker.py index 9030c1e..2c7d7f5 100644 --- a/skbuild/cmaker.py +++ b/skbuild/cmaker.py @@ -9,6 +9,8 @@ import shlex import sys import sysconfig +from subprocess import CalledProcessError + from .platform_specifics import get_platform from .exceptions import SKBuildError ...
scikit-build/scikit-build
abaaeee43e0456ef9da7d4878f0310c569bd6525
diff --git a/tests/test_outside_project_root.py b/tests/test_outside_project_root.py index 9500a4d..d67baa4 100644 --- a/tests/test_outside_project_root.py +++ b/tests/test_outside_project_root.py @@ -5,7 +5,8 @@ ---------------------------------- Tries to build the `fail-outside-project-root` sample project. Ensu...
Improve cmaker exception When there is a problem building python module, report "human-friendly" error
0.0
abaaeee43e0456ef9da7d4878f0310c569bd6525
[ "tests/test_outside_project_root.py::test_outside_project_root_fails" ]
[]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2016-07-22 19:35:31+00:00
mit
5,355
pythonprofilers__memory_profiler-280
diff --git a/README.rst b/README.rst index b52b6f2..79d1c6b 100644 --- a/README.rst +++ b/README.rst @@ -64,14 +64,14 @@ this would result in:: Output will follow:: - Line # Mem usage Increment Line Contents - ============================================== - 3 @profile...
pythonprofilers/memory_profiler
8a8a40252cccc09dc469445596742dc6b47ed6e3
diff --git a/test/test_increment_display.py b/test/test_increment_display.py new file mode 100644 index 0000000..b0dbe51 --- /dev/null +++ b/test/test_increment_display.py @@ -0,0 +1,81 @@ +import unittest + +from memory_profiler import LineProfiler, profile, show_results +from io import StringIO + + +class TestIncreme...
The first example in readme not working correctly Here's what I get on both windows and linux. ``` Line # Mem usage Increment Line Contents ================================================ 1 37.754 MiB 37.754 MiB @profile 2 def my_func(): 3 45.195 MiB ...
0.0
8a8a40252cccc09dc469445596742dc6b47ed6e3
[ "test/test_increment_display.py::TestIncrementDisplay::test_decr", "test/test_increment_display.py::TestIncrementDisplay::test_loop_count", "test/test_increment_display.py::TestIncrementDisplay::test_loop_incr", "test/test_increment_display.py::TestIncrementDisplay::test_normal_incr" ]
[]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-05-10 03:07:05+00:00
bsd-3-clause
5,119
megajanlott__cbor-decoder-47
diff --git a/cbor/MajorType.py b/cbor/MajorType.py index d9b0d34..2f43a8c 100644 --- a/cbor/MajorType.py +++ b/cbor/MajorType.py @@ -3,6 +3,7 @@ from cbor.State import State from cbor.type.ByteString import ByteString from cbor.type.TextString import TextString from cbor.type.Array import ArrayInfo +from cbor.type.M...
megajanlott/cbor-decoder
c2af49e12ad7fe36433ec013b176f4dda89a4b2e
diff --git a/tests/test_Map.py b/tests/test_Map.py new file mode 100644 index 0000000..7497c8d --- /dev/null +++ b/tests/test_Map.py @@ -0,0 +1,147 @@ +from io import BytesIO +from cbor.MajorType import MajorType +from cbor.CBORStream import CBORStream +from cbor.type.Map import * +from tests.MockHandler import MockHan...
Map Map states: - [ ] Implement MapInfo - [ ] Implement MapReadKey(n) - [ ] Implement MapReadValue(n) - [ ] Implement MapLen(n) - [ ] Implement MapInfKey() - [ ] Implement MapInfValue() Additional info about states can be found here: https://docs.google.com/document/d/1tvQJtJbYUcM2vI5H0RDukWqNYsLxjczZ30PiBFFVsV8...
0.0
c2af49e12ad7fe36433ec013b176f4dda89a4b2e
[ "tests/test_Map.py::test_run_map_probe", "tests/test_Map.py::test_run_map_length", "tests/test_Map.py::test_run_map_length_multibyte", "tests/test_Map.py::test_run_map_inf", "tests/test_Map.py::test_run_map_inf_key", "tests/test_Map.py::test_run_map_inf_value", "tests/test_Map.py::test_run_map_info_empt...
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_added_files" ], "has_test_patch": true, "is_lite": false }
2017-05-02 10:56:59+00:00
mit
3,858
tempoCollaboration__OQuPy-71
diff --git a/oqupy/mps_mpo.py b/oqupy/mps_mpo.py index 29e080c..6a24a85 100644 --- a/oqupy/mps_mpo.py +++ b/oqupy/mps_mpo.py @@ -198,14 +198,13 @@ def compute_nn_gate( nn_gate: NnGate Nearest neighbor gate. """ - # exponentiate and transpose such that - # axis 0 is the input and axis 1 is the o...
tempoCollaboration/OQuPy
b3355f4c8a6e7001275e78c287d52f6d25c96e53
diff --git a/tests/coverage/pt_tebd_test.py b/tests/coverage/pt_tebd_test.py index 80e47fc..b2fcc54 100644 --- a/tests/coverage/pt_tebd_test.py +++ b/tests/coverage/pt_tebd_test.py @@ -17,11 +17,12 @@ Tests for the time_evovling_mpo.pt_tebd module. import pytest +import numpy as np import oqupy up_dm = oqupy.o...
Bug in SystemChain.add_site_dissipation() Adding a Markovian Lindblad dissipator to a system chain seems to go wrong, as one can see by the decay of the norm in the following example with dissipation on the first of a two site chain (without any coherent evolution): ```python3 import oqupy import numpy as np im...
0.0
b3355f4c8a6e7001275e78c287d52f6d25c96e53
[ "tests/coverage/pt_tebd_test.py::test_get_augmented_mps", "tests/physics/example_H_test.py::test_pt_tebd_site_dissipation_H1" ]
[]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-08-07 14:28:26+00:00
apache-2.0
5,845
ej2__python-quickbooks-180
diff --git a/quickbooks/objects/customer.py b/quickbooks/objects/customer.py index 1bbdeed..0f43bfd 100644 --- a/quickbooks/objects/customer.py +++ b/quickbooks/objects/customer.py @@ -57,6 +57,7 @@ class Customer(QuickbooksManagedObject, QuickbooksTransactionEntity): self.ResaleNum = "" self.Level = ...
ej2/python-quickbooks
3e8b24d7d3b2156ba868d415dfc98c2a5a9d2cb5
diff --git a/tests/unit/objects/test_paymentmethod.py b/tests/unit/objects/test_paymentmethod.py index 8016214..5978808 100644 --- a/tests/unit/objects/test_paymentmethod.py +++ b/tests/unit/objects/test_paymentmethod.py @@ -17,3 +17,14 @@ class PaymentMethodTests(unittest.TestCase): result = client.isvalid_ob...
Typo in Purchase attribute : self.EnitityRef = None /quickbooks/objects/purchase.py:65 Should be `self.EntityRef`
0.0
3e8b24d7d3b2156ba868d415dfc98c2a5a9d2cb5
[ "tests/unit/objects/test_paymentmethod.py::PaymentMethodTests::test_to_ref" ]
[ "tests/unit/objects/test_paymentmethod.py::PaymentMethodTests::test_unicode", "tests/unit/objects/test_paymentmethod.py::PaymentMethodTests::test_valid_object_name" ]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2020-03-20 12:02:02+00:00
mit
2,084
snakemake__snakemake-127
diff --git a/docs/project_info/faq.rst b/docs/project_info/faq.rst index 91321e44..e1ef4d2a 100644 --- a/docs/project_info/faq.rst +++ b/docs/project_info/faq.rst @@ -100,6 +100,25 @@ In order to infer the IDs from present files, Snakemake provides the ``glob_wild The function matches the given pattern against the f...
snakemake/snakemake
0607695047290effb44367cd004523e5e3398171
diff --git a/tests/test_expand.py b/tests/test_expand.py new file mode 100644 index 00000000..8094a38b --- /dev/null +++ b/tests/test_expand.py @@ -0,0 +1,67 @@ +from snakemake.io import expand +from snakemake.exceptions import WildcardError +import pytest + + +def test_simple_expand(): + # single filepattern + a...
A utility function to partially format strings with wildcards **Is your feature request related to a problem? Please describe.** In the workflow, we usually need to deal with multiple wildcards. It would be nice if there is a function to partially format the input string with multiple wildcards. Maybe this function ...
0.0
0607695047290effb44367cd004523e5e3398171
[ "tests/test_expand.py::test_allow_missing" ]
[ "tests/test_expand.py::test_simple_expand" ]
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2019-11-26 17:52:05+00:00
mit
5,571
omaciel__fauxfactory-87
diff --git a/fauxfactory/__init__.py b/fauxfactory/__init__.py index a20be48..2d55c03 100644 --- a/fauxfactory/__init__.py +++ b/fauxfactory/__init__.py @@ -9,7 +9,6 @@ import sys import unicodedata import uuid import warnings - from collections import Iterable from functools import wraps @@ -103,15 +102,67 @@ d...
omaciel/fauxfactory
87611f293f9329ea024d93f5699c287f0725b5e5
diff --git a/tests/test_check_validation.py b/tests/test_check_validation.py new file mode 100644 index 0000000..8ba9460 --- /dev/null +++ b/tests/test_check_validation.py @@ -0,0 +1,69 @@ +# -*- coding: utf-8 -*- + +from sys import version_info + +from fauxfactory import _check_validation + +if version_info[0:2] == (2...
add validator argument Example: we want to generate names, but names cannot start with numbers. ```python from fauxfactory import gen_string name = gen_string( 'alpha', validator=lambda x: not x.startswith(('1', '2', '3', '4', '5', '6', '7', '8', '9', '0')), default='foobar', tries=10 ) ...
0.0
87611f293f9329ea024d93f5699c287f0725b5e5
[ "tests/test_check_validation.py::CheckValidationTestCase::test_callable", "tests/test_check_validation.py::CheckValidationTestCase::test_no_validator_defined", "tests/test_check_validation.py::CheckValidationTestCase::test_regex", "tests/test_check_validation.py::CheckValidationTestCase::test_validator_define...
[]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2017-03-15 13:14:22+00:00
apache-2.0
4,349
grabbles__grabbit-6
diff --git a/grabbit/core.py b/grabbit/core.py index 84009db..a2a87be 100644 --- a/grabbit/core.py +++ b/grabbit/core.py @@ -197,7 +197,7 @@ class Layout(object): return_type (str): Type of result to return. Valid values: 'tuple': returns a list of namedtuples containing file name as ...
grabbles/grabbit
afe361809ca5c040a46caa9f8a9bae017bcc706e
diff --git a/grabbit/tests/test_core.py b/grabbit/tests/test_core.py index 0c92377..11da286 100644 --- a/grabbit/tests/test_core.py +++ b/grabbit/tests/test_core.py @@ -127,6 +127,8 @@ class TestLayout: result = layout.get(target='subject', return_type='dir') assert os.path.exists(result[0]) ...
Redefining File class is confusing Returning File objects which are something different that python build in [file object](https://docs.python.org/3/glossary.html#term-file-object)
0.0
afe361809ca5c040a46caa9f8a9bae017bcc706e
[ "grabbit/tests/test_core.py::TestLayout::test_querying" ]
[ "grabbit/tests/test_core.py::TestFile::test_init", "grabbit/tests/test_core.py::TestFile::test_matches", "grabbit/tests/test_core.py::TestFile::test_named_tuple", "grabbit/tests/test_core.py::TestEntity::test_init", "grabbit/tests/test_core.py::TestEntity::test_matches", "grabbit/tests/test_core.py::TestE...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2016-08-18 05:30:39+00:00
mit
2,661
ContinualAI__avalanche-1216
diff --git a/avalanche/benchmarks/utils/data.py b/avalanche/benchmarks/utils/data.py index 533d79ee..9c11f60f 100644 --- a/avalanche/benchmarks/utils/data.py +++ b/avalanche/benchmarks/utils/data.py @@ -101,6 +101,10 @@ class AvalancheDataset(FlatData): DeprecationWarning, ) + if ...
ContinualAI/avalanche
f3abbc5500c928bb5fc5bcf4b31fcd0b504fdf26
diff --git a/tests/test_avalanche_dataset.py b/tests/test_avalanche_dataset.py index e7cf460b..67ccdecc 100644 --- a/tests/test_avalanche_dataset.py +++ b/tests/test_avalanche_dataset.py @@ -56,6 +56,17 @@ class FrozenTransformGroupsCenterCrop: class AvalancheDatasetTests(unittest.TestCase): + + def test_avalan...
bug for stream-level metrics in periodic eval periodic eval is broken in some subtle cases. Instead of calling `eval` on the entire stream, it calls it multiple times for each experience, breaking stream-level metrics. Reproduce: ``` from avalanche.benchmarks import SplitMNIST from avalanche.training import Naive...
0.0
f3abbc5500c928bb5fc5bcf4b31fcd0b504fdf26
[ "tests/test_avalanche_dataset.py::AvalancheDatasetTests::test_avalanche_dataset_tensor_task_labels", "tests/test_avalanche_dataset.py::AvalancheDatasetTests::test_disallowed_attribute_name", "tests/test_avalanche_dataset.py::AvalancheDatasetTests::test_subset_subset_merge", "tests/training/test_strategies.py:...
[]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-11-21 16:04:01+00:00
mit
147
Shoobx__mypy-zope-88
diff --git a/src/mypy_zope/plugin.py b/src/mypy_zope/plugin.py index 46bdc1b..0c7971e 100644 --- a/src/mypy_zope/plugin.py +++ b/src/mypy_zope/plugin.py @@ -698,7 +698,10 @@ class ZopeInterfacePlugin(Plugin): if not any(promote in ti._promote for ti in impl.mro): faketi = TypeInfo(SymbolTable(), i...
Shoobx/mypy-zope
3c767525b740a35e7039bf792ccfbce8590044d7
diff --git a/tests/test_mro_calculation.py b/tests/test_mro_calculation.py index a051dcc..eb9cf5d 100644 --- a/tests/test_mro_calculation.py +++ b/tests/test_mro_calculation.py @@ -59,10 +59,10 @@ def test_mro_computation_in_forward_reference_to_implementer(mypy_cache_dir: str mro: List[TypeInfo] = node.node.mro ...
Caching error (Metaclass conflict) with mypy 0.991 Hi. With the latest version of mypy (0.991) and mypy-zope (0.3.11) we're getting mypy errors that I think are cache related. The error goes away after `rm -rf .mypy_cache` Here's the easiest repro I could make: iface.py ``` from zope.interface import Interface ...
0.0
3c767525b740a35e7039bf792ccfbce8590044d7
[ "tests/test_mro_calculation.py::test_mro_computation_in_forward_reference_to_implementer" ]
[]
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2023-02-08 00:06:06+00:00
mit
706
MagicStack__immutables-58
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c992bda..7e2c51b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,13 +45,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 wi...
MagicStack/immutables
45105ecd8b56a4d88dbcb380fcb8ff4b9cc7b19c
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 45367be..019007f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,7 +15,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [3.5, 3.6, 3.7, 3.8] + python-version: [3....
`immutables.Map.__str__` doesn't match `dict.__str__` ```python In [7]: d = {'a': 1} In [8]: str(d) Out[8]: "{'a': 1}" In [9]: str(immutables.Map(d)) Out[9]: "<immutables.Map({'a': 1}) at 0x108ed56c0>" ```
0.0
45105ecd8b56a4d88dbcb380fcb8ff4b9cc7b19c
[ "tests/test_map.py::PyMapTest::test_map_mut_3", "tests/test_map.py::PyMapTest::test_repr_1", "tests/test_map.py::PyMapTest::test_repr_3", "tests/test_none_keys.py::PyMapNoneTest::test_none_as_key", "tests/test_none_keys.py::PyMapNoneTest::test_none_collision_1" ]
[ "tests/test_map.py::PyMapTest::test_abc_1", "tests/test_map.py::PyMapTest::test_hash_1", "tests/test_map.py::PyMapTest::test_hash_2", "tests/test_map.py::PyMapTest::test_hashkey_helper_1", "tests/test_map.py::PyMapTest::test_kwarg_named_col", "tests/test_map.py::PyMapTest::test_map_basics_1", "tests/tes...
{ "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 }
2021-02-08 17:28:05+00:00
apache-2.0
335
raphaelm__defusedcsv-6
diff --git a/defusedcsv/csv.py b/defusedcsv/csv.py index 2656c96..a027b85 100644 --- a/defusedcsv/csv.py +++ b/defusedcsv/csv.py @@ -1,20 +1,28 @@ import re from csv import ( QUOTE_ALL, QUOTE_MINIMAL, QUOTE_NONE, QUOTE_NONNUMERIC, Dialect, - DictReader, DictWriter as BaseDictWriter, Error, Sniffer, excel, exc...
raphaelm/defusedcsv
26062bce682fa1ff99d43bde8332fb6e6ac970c0
diff --git a/tests/test_escape.py b/tests/test_escape.py index fa14347..93e2a50 100644 --- a/tests/test_escape.py +++ b/tests/test_escape.py @@ -1,5 +1,5 @@ import pytest -from defusedcsv.csv import escape +from defusedcsv.csv import _escape as escape @pytest.mark.parametrize("input,expected", [ @@ -44,9 +44,14 @...
writer.writerow() does not return anything The stdlib python csv writer will return the row (as string) when calling `writer.writerow(row)`. The `defusedcsv` proxy is not handing the value along though. ``` from defusedcsv import csv class EchoWriter: def write(self, value): return value pseudo_...
0.0
26062bce682fa1ff99d43bde8332fb6e6ac970c0
[ "tests/test_escape.py::test_dangerous_sample_payloads[=1+1-'=1+1_0]", "tests/test_escape.py::test_dangerous_sample_payloads[-1+1-'-1+1]", "tests/test_escape.py::test_dangerous_sample_payloads[+1+1-'+1+1]", "tests/test_escape.py::test_dangerous_sample_payloads[=1+1-'=1+1_1]", "tests/test_escape.py::test_dang...
[]
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2022-04-08 12:22:53+00:00
apache-2.0
5,174
SAP__python-pyodata-149
diff --git a/pyodata/v2/model.py b/pyodata/v2/model.py index 5412ca9..67cc1ad 100644 --- a/pyodata/v2/model.py +++ b/pyodata/v2/model.py @@ -21,6 +21,8 @@ from lxml import etree from pyodata.exceptions import PyODataException, PyODataModelError, PyODataParserError LOGGER_NAME = 'pyodata.model' +FIX_SCREWED_UP_MINIM...
SAP/python-pyodata
9a3694d553c64e781923e11f6fbc28af67b01bc3
diff --git a/tests/test_model_v2.py b/tests/test_model_v2.py index ca72430..8f7ecef 100644 --- a/tests/test_model_v2.py +++ b/tests/test_model_v2.py @@ -9,6 +9,7 @@ from pyodata.v2.model import Schema, Typ, StructTypeProperty, Types, EntityType, PolicyIgnore, Config, PolicyFatal, NullType, NullAssociation, current...
Date out of range error According to #80 we facing the same error. We're just consumer using the api to receive data for our DWH. Currently one of our job fails because of this error. Is it possible to implement a fix for this problem on pyodata side? Json: ``` { "d": { "results": { "...
0.0
9a3694d553c64e781923e11f6fbc28af67b01bc3
[ "tests/test_model_v2.py::test_traits_datetime" ]
[ "tests/test_model_v2.py::test_edmx", "tests/test_model_v2.py::test_schema_entity_type_nullable", "tests/test_model_v2.py::test_schema_entity_sets", "tests/test_model_v2.py::test_edmx_associations", "tests/test_model_v2.py::test_edmx_navigation_properties", "tests/test_model_v2.py::test_edmx_function_impor...
{ "failed_lite_validators": [ "has_hyperlinks", "has_issue_reference" ], "has_test_patch": true, "is_lite": false }
2021-03-19 13:12:21+00:00
apache-2.0
665
jupyterhub__chartpress-63
diff --git a/.travis.yml b/.travis.yml index a47cf03..998bf51 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,11 +5,12 @@ cache: pip install: - set -e - pip install --upgrade pip - - pip install pyflakes . + - pip install pyflakes pytest . script: - chartpress --version - chartpress --help - pyflake...
jupyterhub/chartpress
84df258b335fe19d56d3fc849a9241d9c4eb7afe
diff --git a/tests/test_regexp.py b/tests/test_regexp.py new file mode 100644 index 0000000..b597655 --- /dev/null +++ b/tests/test_regexp.py @@ -0,0 +1,14 @@ +from chartpress import _strip_identifiers_build_suffix +from chartpress import _get_identifier + +def test__strip_identifiers_build_suffix(): + assert _strip...
Support images defined as string Add support for images defined as `<registry>/<repo>:<tag>`. Possible solutions to keep compatibility with images defined as mapping: 1. check the image value in `values.yaml` 2. if it is mapping use current way of setting the dictionary; 3. else use formatted string `"{registry...
0.0
84df258b335fe19d56d3fc849a9241d9c4eb7afe
[ "tests/test_regexp.py::test__strip_identifiers_build_suffix", "tests/test_regexp.py::test__get_identifier" ]
[]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2019-10-20 17:39:35+00:00
bsd-3-clause
3,364
NeuralEnsemble__python-neo-1297
diff --git a/neo/io/__init__.py b/neo/io/__init__.py index 22b6df66..4aa31692 100644 --- a/neo/io/__init__.py +++ b/neo/io/__init__.py @@ -451,8 +451,23 @@ def list_candidate_ios(file_or_folder, ignore_patterns=['*.ini', 'README.txt', ' # if only file prefix was provided, e.g /mydatafolder/session1- # to sele...
NeuralEnsemble/python-neo
f608309c5ce031ecd905349c140b07a3dafb057d
diff --git a/neo/test/iotest/test_get_io.py b/neo/test/iotest/test_get_io.py new file mode 100644 index 00000000..b43499b0 --- /dev/null +++ b/neo/test/iotest/test_get_io.py @@ -0,0 +1,41 @@ +from pathlib import Path +from tempfile import TemporaryDirectory +from neo.io import get_io, list_candidate_ios, NixIO + + +def...
neo.get_io fails on file yet to be written **Describe the bug** Calling neo.get_io no longer works with the name of a file yet to be written which means it can no longer be uses before a io.write(... call **To Reproduce** import neo neo.get_io("tobewritten.pkl") **Expected behaviour** return an io **E...
0.0
f608309c5ce031ecd905349c140b07a3dafb057d
[ "neo/test/iotest/test_get_io.py::test_list_candidate_ios_non_existant_file", "neo/test/iotest/test_get_io.py::test_get_io_non_existant_file_writable_io" ]
[ "neo/test/iotest/test_get_io.py::test_list_candidate_ios_filename_stub" ]
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2023-06-19 16:48:00+00:00
bsd-3-clause
397
dask__zict-64
diff --git a/doc/source/changelog.rst b/doc/source/changelog.rst index 0375754..e493d3f 100644 --- a/doc/source/changelog.rst +++ b/doc/source/changelog.rst @@ -4,6 +4,8 @@ Changelog 2.2.0 - Unreleased ------------------ - Added type annotations (:pr:`62`) `Guido Imperiale`_ +- If you call Func.update() and Func wra...
dask/zict
6850845b645aea71bac342db9cafc8ed9546db4d
diff --git a/zict/tests/test_func.py b/zict/tests/test_func.py index d2fbd34..5345045 100644 --- a/zict/tests/test_func.py +++ b/zict/tests/test_func.py @@ -1,4 +1,10 @@ +import gc +from collections.abc import MutableMapping + +import pytest + from zict import Func +from zict.common import ZictBase from . import ut...
Memory flare on Func.update() with File backend Consider: ```python d = Func(pickle.dumps, pickle.loads, File(somedir)) d.update(mydata) ``` ### Current behaviour 1. call ``pickle.dumps`` on every element of mydata and store all output in memory 2. call ``File.__setitem__`` on each pickled element 3. descope th...
0.0
6850845b645aea71bac342db9cafc8ed9546db4d
[ "zict/tests/test_func.py::test_update_descopes_early[ZictBase]" ]
[ "zict/tests/test_func.py::test_simple", "zict/tests/test_func.py::test_mapping", "zict/tests/test_func.py::test_update_descopes_early[MutableMapping]" ]
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2022-03-07 14:38:44+00:00
bsd-3-clause
1,807
sonata-nfv__tng-sdk-package-16
diff --git a/src/tngsdk/package/__init__.py b/src/tngsdk/package/__init__.py index 82cd398..c3e1fb3 100755 --- a/src/tngsdk/package/__init__.py +++ b/src/tngsdk/package/__init__.py @@ -30,6 +30,36 @@ # acknowledge the contributions of their colleagues of the SONATA # partner consortium (www.5gtango.eu). +import log...
sonata-nfv/tng-sdk-package
ff3c5eeee949fc5b3a379d1bbb753f6e24fb0991
diff --git a/src/tngsdk/package/tests/test_unit_package.py b/src/tngsdk/package/rest.py old mode 100755 new mode 100644 similarity index 92% rename from src/tngsdk/package/tests/test_unit_package.py rename to src/tngsdk/package/rest.py index 1c80e24..49a747d --- a/src/tngsdk/package/tests/test_unit_package.py +++ b/src...
Add basic command line interface #Example: ``` tng-package -h usage: tng-package [-h] [-p PACKAGE] [-u UNPACKAGE] [--format FORMAT] [-v] [-s] [--address SERVICE_PORT] [--port SERVICE_PORT] 5GTANGO SDK packager optional arguments: -h, --help show this help message and exit ...
0.0
ff3c5eeee949fc5b3a379d1bbb753f6e24fb0991
[ "src/tngsdk/package/tests/test_unit_pkgmgm.py::TngSdkPkgMgmTest::test_instantiation", "src/tngsdk/package/tests/test_unit_pkgmgm.py::TngSdkPkgMgmTest::test_package", "src/tngsdk/package/tests/test_unit_pkgmgm.py::TngSdkPkgMgmTest::test_unpackage" ]
[]
{ "failed_lite_validators": [ "has_added_files" ], "has_test_patch": true, "is_lite": false }
2018-02-13 13:10:35+00:00
apache-2.0
5,600
googleapis__python-bigquery-66
diff --git a/google/cloud/bigquery/model.py b/google/cloud/bigquery/model.py index d39ec5f2..a2510e86 100644 --- a/google/cloud/bigquery/model.py +++ b/google/cloud/bigquery/model.py @@ -430,6 +430,6 @@ class ModelReference(object): return hash(self._key()) def __repr__(self): - return "ModelRefe...
googleapis/python-bigquery
2abdef82bed31601d1ca1aa92a10fea1e09f5297
diff --git a/tests/unit/model/test_model.py b/tests/unit/model/test_model.py index bbb93ef9..90fc09e6 100644 --- a/tests/unit/model/test_model.py +++ b/tests/unit/model/test_model.py @@ -316,5 +316,5 @@ def test_repr(target_class): got = repr(model) assert got == ( "Model(reference=ModelReference(" -...
Bigquery: Model reference repr seems wrong for model_id For `ModelReference`'s repr use project_id against model_id https://github.com/googleapis/python-bigquery/blob/be5c8b1ede9a2d762fd5574c32587d125eca4713/google/cloud/bigquery/model.py#L432-L435
0.0
2abdef82bed31601d1ca1aa92a10fea1e09f5297
[ "tests/unit/model/test_model.py::test_repr", "tests/unit/model/test_model_reference.py::test_repr" ]
[ "tests/unit/model/test_model.py::test_ctor", "tests/unit/model/test_model.py::test_ctor_string", "tests/unit/model/test_model.py::test_from_api_repr", "tests/unit/model/test_model.py::test_from_api_repr_w_minimal_resource", "tests/unit/model/test_model.py::test_from_api_repr_w_unknown_fields", "tests/unit...
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2020-03-24 14:59:08+00:00
apache-2.0
2,622
dask__dask-jobqueue-563
diff --git a/dask_jobqueue/htcondor.py b/dask_jobqueue/htcondor.py index fb7b0be..18fc74e 100644 --- a/dask_jobqueue/htcondor.py +++ b/dask_jobqueue/htcondor.py @@ -16,7 +16,6 @@ class HTCondorJob(Job): %(job_header)s -Environment = "%(quoted_environment)s" Arguments = "%(quoted_arguments)s" Executable = %(execu...
dask/dask-jobqueue
066f69c0994d2a87b7b0a54d7de6e2d296d04575
diff --git a/dask_jobqueue/tests/test_htcondor.py b/dask_jobqueue/tests/test_htcondor.py index 99a5573..1664da8 100644 --- a/dask_jobqueue/tests/test_htcondor.py +++ b/dask_jobqueue/tests/test_htcondor.py @@ -27,7 +27,12 @@ def test_job_script(): processes=2, memory="100MB", disk="100MB", - ...
Incorrect description for env_extra for HTCondorCluster Hi, The description for env_extra in [HTCondorCluster](https://jobqueue.dask.org/en/latest/generated/dask_jobqueue.HTCondorCluster.html#dask_jobqueue.HTCondorCluster) is not correct: the job that HTCondorCluster creates calls dask-worker directly instead of thr...
0.0
066f69c0994d2a87b7b0a54d7de6e2d296d04575
[ "dask_jobqueue/tests/test_htcondor.py::test_job_script" ]
[ "dask_jobqueue/tests/test_htcondor.py::test_header", "dask_jobqueue/tests/test_htcondor.py::test_config_name_htcondor_takes_custom_config" ]
{ "failed_lite_validators": [ "has_hyperlinks", "has_issue_reference", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-07-26 13:35:37+00:00
bsd-3-clause
1,804
GSTT-CSC__hazen-312
diff --git a/hazenlib/tasks/acr_geometric_accuracy.py b/hazenlib/tasks/acr_geometric_accuracy.py new file mode 100644 index 0000000..b71f00b --- /dev/null +++ b/hazenlib/tasks/acr_geometric_accuracy.py @@ -0,0 +1,241 @@ +""" +ACR Geometric Accuracy +https://www.acraccreditation.org/-/media/acraccreditation/documents/mr...
GSTT-CSC/hazen
8aaa233168a543c493961f193802fc4607ac4997
diff --git a/.github/workflows/test_cli.yml b/.github/workflows/test_cli.yml index 9082b13..203650d 100644 --- a/.github/workflows/test_cli.yml +++ b/.github/workflows/test_cli.yml @@ -55,6 +55,11 @@ jobs: run: | hazen acr_ghosting tests/data/acr/Siemens --report + - name: test acr_geometric_...
[ACR5] Geometric accuracy For the geometric accuracy - currently under slice width in hazen - use slice 1 and slice 5 of an ACR_TRA_T1_NORMOFF series. In slice 1, measure the diameter of the phantom: top-to-bottom and left-to-right and on slice 5 measure the diameter of the phantom in 4 directions: top-to-bottom, left...
0.0
8aaa233168a543c493961f193802fc4607ac4997
[ "tests/test_acr_geometric_accuracy.py::TestACRGeometricAccuracySiemens::test_geo_accuracy_slice1", "tests/test_acr_geometric_accuracy.py::TestACRGeometricAccuracySiemens::test_geo_accuracy_slice5", "tests/test_acr_geometric_accuracy.py::TestACRGeometricAccuracySiemens::test_object_centre", "tests/test_acr_geo...
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_media", "has_added_files" ], "has_test_patch": true, "is_lite": false }
2023-01-18 12:44:41+00:00
apache-2.0
260
Knio__pynmea2-151
diff --git a/examples/nmea2gpx.py b/examples/nmea2gpx.py new file mode 100644 index 0000000..87154ee --- /dev/null +++ b/examples/nmea2gpx.py @@ -0,0 +1,103 @@ +''' +Convert a NMEA ascii log file into a GPX file +''' + +import argparse +import datetime +import logging +import pathlib +import re +import xml.dom...
Knio/pynmea2
988c297ce82d976db9094b435a1aa290e7d5b9ed
diff --git a/test/test_ash.py b/test/test_ash.py index 37ad969..b7a9425 100644 --- a/test/test_ash.py +++ b/test/test_ash.py @@ -19,7 +19,7 @@ def test_ashratt(): assert type(msg) == pynmea2.ash.ASHRATT assert msg.data == ['R', '130533.620', '0.311', 'T', '-80.467', '-1.395', '0.25', '0.066', '0.067', '0.215'...
RMC message is parsed without a timezone Per the spec: https://www.trimble.com/OEM_ReceiverHelp/V4.44/en/NMEA-0183messages_RMC.html the date time in the RMC message is UTC, however, pynmea2 parses it and creates a date time with no timezone, thus calling timestamp() on the returned date returns the wrong timestamp. ...
0.0
988c297ce82d976db9094b435a1aa290e7d5b9ed
[ "test/test_proprietary.py::test_KWDWPL", "test/test_proprietary.py::test_ubx04", "test/test_proprietary.py::test_ubx00", "test/test_types.py::test_GST", "test/test_types.py::test_RMC", "test/test_types.py::test_ZDA", "test/test_types.py::test_GGA", "test/test_nor.py::test_norh4", "test/test_nor.py::...
[ "test/test_proprietary.py::test_srf", "test/test_proprietary.py::test_extra_comma", "test/test_proprietary.py::test_ubx03", "test/test_proprietary.py::test_grm", "test/test_proprietary.py::test_proprietary_2", "test/test_proprietary.py::test_tnl", "test/test_proprietary.py::test_proprietary_GRMW", "te...
{ "failed_lite_validators": [ "has_hyperlinks", "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-10-23 03:19:41+00:00
mit
314
fair-workflows__fairworkflows-184
diff --git a/fairworkflows/fairstep.py b/fairworkflows/fairstep.py index e369441..b409a74 100644 --- a/fairworkflows/fairstep.py +++ b/fairworkflows/fairstep.py @@ -13,6 +13,7 @@ from rdflib import RDF, RDFS, DCTERMS from fairworkflows import namespaces, LinguisticSystem, LINGSYS_ENGLISH, LINGSYS_PYTHON from fairwork...
fair-workflows/fairworkflows
c2982f60dc41b712a16a31227c7c1b6b82ccbcd5
diff --git a/tests/test_fairworkflow.py b/tests/test_fairworkflow.py index 991cf42..e368e9c 100644 --- a/tests/test_fairworkflow.py +++ b/tests/test_fairworkflow.py @@ -9,6 +9,7 @@ from requests import HTTPError from conftest import skip_if_nanopub_server_unavailable, read_rdf_test_resource from fairworkflows impor...
.execute() should return a FairProv object - [ ] `.execute()` method now returns a Publication object, it should be a FairProv object (which subclasses `RdfWrapper`) - [ ] Add some useful RDF to it based on the logging from noodles execution, you might want to use `schedule_hint` and pass it the uri of the steps, i.e....
0.0
c2982f60dc41b712a16a31227c7c1b6b82ccbcd5
[ "tests/test_fairworkflow.py::TestFairWorkflow::test_build", "tests/test_fairworkflow.py::TestFairWorkflow::test_build_including_step_without_uri", "tests/test_fairworkflow.py::TestFairWorkflow::test_fetch_step_404", "tests/test_fairworkflow.py::TestFairWorkflow::test_fetch_step_500", "tests/test_fairworkflo...
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_issue_reference", "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-02-16 12:47:16+00:00
apache-2.0
2,247
iamjackg__md2cf-97
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3614043..a26d632 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Vers...
iamjackg/md2cf
1572ed3c4ecf849b8602d25b733852338f131baf
diff --git a/test_package/unit/test_renderer.py b/test_package/unit/test_renderer.py index 40c50fc..1ab9596 100644 --- a/test_package/unit/test_renderer.py +++ b/test_package/unit/test_renderer.py @@ -1,3 +1,7 @@ +import re + +import pytest + from md2cf.confluence_renderer import ConfluenceRenderer, ConfluenceTag ...
Link parsing fails for document references Hi, I just noticed that it's not possible to use `md2cf` anymore with document references like table of contents, since the relative path detector detects the paths that start with `#` ```md [Frequently Asked Questions](#frequently-asked-questions-osep) ``` Having s...
0.0
1572ed3c4ecf849b8602d25b733852338f131baf
[ "test_package/unit/test_renderer.py::test_renderer_local_header_link[True]" ]
[ "test_package/unit/test_renderer.py::test_add_namespace", "test_package/unit/test_renderer.py::test_tag_append", "test_package/unit/test_renderer.py::test_tag_render", "test_package/unit/test_renderer.py::test_tag_render_with_text", "test_package/unit/test_renderer.py::test_tag_render_with_cdata_text", "t...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2023-07-17 15:33:37+00:00
mit
2,789
benmoran56__esper-81
diff --git a/esper/__init__.py b/esper/__init__.py index c67b5dd..5ac17a7 100644 --- a/esper/__init__.py +++ b/esper/__init__.py @@ -215,6 +215,9 @@ class World: entity = self._next_entity_id + if entity not in self._entities: + self._entities[entity] = {} + for component_instanc...
benmoran56/esper
c413eccd6eae12556d0fbad48298f259b6c7ea7b
diff --git a/tests/test_world.py b/tests/test_world.py index 8af332f..126102c 100644 --- a/tests/test_world.py +++ b/tests/test_world.py @@ -39,6 +39,11 @@ def test_create_entity_with_components(world): assert world.has_component(entity2, ComponentB) is True +def test_adding_component_to_not_existing_entity_ra...
`World().create_entity()` does not create entity if no components are given **Describe the bug** As a factory method I assume it creates entity for sure but that do not happen is edge case of missing components. **To Reproduce** ```python3 import esper world = esper.World() entity = world.create_entity() ass...
0.0
c413eccd6eae12556d0fbad48298f259b6c7ea7b
[ "tests/test_world.py::test_adding_component_to_not_existing_entity_raises_error", "tests/test_world.py::test_delete_entity", "tests/test_world.py::TestEntityExists::test_empty_entity" ]
[ "tests/test_world.py::test_world_instantiation", "tests/test_world.py::test_create_entity", "tests/test_world.py::test_create_entity_with_components", "tests/test_world.py::test_create_entity_and_add_components", "tests/test_world.py::test_create_entity_and_add_components_with_alias", "tests/test_world.py...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2023-04-20 11:26:18+00:00
mit
1,355
bpython__bpython-691
diff --git a/bpython/curtsiesfrontend/manual_readline.py b/bpython/curtsiesfrontend/manual_readline.py index 35d28f54..223ec9e7 100644 --- a/bpython/curtsiesfrontend/manual_readline.py +++ b/bpython/curtsiesfrontend/manual_readline.py @@ -323,7 +323,7 @@ def titlecase_next_word(cursor_offset, line): return cursor_...
bpython/bpython
307f855306ae8e0814458026b9fc47c1f25bf357
diff --git a/bpython/test/test_manual_readline.py b/bpython/test/test_manual_readline.py index 4141292d..faf4b585 100644 --- a/bpython/test/test_manual_readline.py +++ b/bpython/test/test_manual_readline.py @@ -240,6 +240,12 @@ class TestManualReadline(unittest.TestCase): "|"], delete_word_fro...
Option-delete doesn't delete a left paren On line like ~~~ >>> (( asdf a sdf >>> lots of space ~~~ pressing option-delete repeatedly doesn't delete the opening parens or leading spaces
0.0
307f855306ae8e0814458026b9fc47c1f25bf357
[ "bpython/test/test_manual_readline.py::TestManualReadline::test_delete_word_from_cursor_back" ]
[ "bpython/test/test_manual_readline.py::TestManualReadline::test_back_word", "bpython/test/test_manual_readline.py::TestManualReadline::test_backspace", "bpython/test/test_manual_readline.py::TestManualReadline::test_beginning_of_line", "bpython/test/test_manual_readline.py::TestManualReadline::test_delete", ...
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2017-07-08 14:48:58+00:00
mit
1,426
simonw__datasette-1736
diff --git a/datasette/app.py b/datasette/app.py index a5330458..b7b84371 100644 --- a/datasette/app.py +++ b/datasette/app.py @@ -288,9 +288,12 @@ class Datasette: self._settings = dict(DEFAULT_SETTINGS, **(settings or {})) self.renderers = {} # File extension -> (renderer, can_render) functions ...
simonw/datasette
a29c1277896b6a7905ef5441c42a37bc15f67599
diff --git a/tests/test_internals_datasette.py b/tests/test_internals_datasette.py index cc200a2d..1dc14cab 100644 --- a/tests/test_internals_datasette.py +++ b/tests/test_internals_datasette.py @@ -1,7 +1,7 @@ """ Tests for the datasette.app.Datasette class """ -from datasette.app import Datasette +from datasette.a...
Datasette setting to disable threading (for Pyodide) > I'm going to add a Datasette setting to disable threading entirely, designed for usage in this particular case. > > I thought about adding a new setting, then I noticed this: > > datasette mydatabase.db --setting num_sql_threads 10 > > I'm going to let us...
0.0
a29c1277896b6a7905ef5441c42a37bc15f67599
[ "tests/test_internals_datasette.py::test_num_sql_threads_zero" ]
[ "tests/test_internals_datasette.py::test_get_database", "tests/test_internals_datasette.py::test_get_database_no_argument", "tests/test_internals_datasette.py::test_sign_unsign[None-hello]", "tests/test_internals_datasette.py::test_sign_unsign[None-123]", "tests/test_internals_datasette.py::test_sign_unsign...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-05-02 20:14:38+00:00
apache-2.0
5,498
LeMyst__WikibaseIntegrator-420
diff --git a/notebooks/item_create_new.ipynb b/notebooks/item_create_new.ipynb index d498f68..7ad47bd 100644 --- a/notebooks/item_create_new.ipynb +++ b/notebooks/item_create_new.ipynb @@ -35,12 +35,12 @@ }, "outputs": [], "source": [ - "from wikibaseintegrator.models import Qualifiers, References, Re...
LeMyst/WikibaseIntegrator
50dc26d6396c65162027cd6f82fe07e8437fca09
diff --git a/test/test_wbi_core.py b/test/test_wbi_core.py index 4bb3941..74d4e9a 100644 --- a/test/test_wbi_core.py +++ b/test/test_wbi_core.py @@ -210,6 +210,9 @@ class TestWbiCore(unittest.TestCase): with self.assertRaises(ValueError): t4.mainsnak.snaktype = 'invalid_value' + t5 = S...
Feature request: Add helper method for snaktype As a user I want to indicate directly when instantiating a claim that it has no-value or unknown-value.
0.0
50dc26d6396c65162027cd6f82fe07e8437fca09
[ "test/test_wbi_core.py::TestWbiCore::test_snaktype" ]
[ "test/test_wbi_core.py::TestWbiCore::test_basedatatype_action_if_exists", "test/test_wbi_core.py::TestWbiCore::test_count_references", "test/test_wbi_core.py::TestWbiCore::test_description", "test/test_wbi_core.py::TestWbiCore::test_entity_generator", "test/test_wbi_core.py::TestWbiCore::test_get", "test/...
{ "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 }
2022-09-23 18:12:57+00:00
mit
320
davidchall__topas2numpy-13
diff --git a/topas2numpy/binned.py b/topas2numpy/binned.py index dac1dfe..2b65a6d 100644 --- a/topas2numpy/binned.py +++ b/topas2numpy/binned.py @@ -47,15 +47,15 @@ class BinnedResult(object): dimensions: list of BinnedDimension objects data: dict of scored data """ - def __init__(self, ...
davidchall/topas2numpy
f20177d6930798e317033ab0e66117bb65ee08d6
diff --git a/tests/test_binned.py b/tests/test_binned.py index 19e68b3..04e7a37 100644 --- a/tests/test_binned.py +++ b/tests/test_binned.py @@ -12,6 +12,9 @@ Tests for TOPAS binned reading. import unittest import os.path +# third-party imports +import numpy as np + # project imports from topas2numpy import Binne...
Detect best NumPy dtype (use unsigned int for SurfaceTrackCount) When the TOPAS scorer mode is set to 'SurfaceTrackCount' then the result is an integer. It would be best if the numpy dtype of the loaded data was set to an unsigned integer type in this case. It seems this library loads such arrrays as 'float64' type...
0.0
f20177d6930798e317033ab0e66117bb65ee08d6
[ "tests/test_binned.py::TestAscii2D::test_data", "tests/test_binned.py::TestAscii2D::test_dimensions", "tests/test_binned.py::TestAscii2D::test_quantity" ]
[ "tests/test_binned.py::TestAscii1D::test_data", "tests/test_binned.py::TestAscii1D::test_dimensions", "tests/test_binned.py::TestAscii1D::test_quantity", "tests/test_binned.py::TestBinary1D::test_data", "tests/test_binned.py::TestBinary1D::test_dimensions", "tests/test_binned.py::TestBinary1D::test_quanti...
{ "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-06-22 05:16:22+00:00
mit
1,851
CodeForPhilly__chime-418
diff --git a/src/penn_chime/models.py b/src/penn_chime/models.py index da7311f..6582b1c 100644 --- a/src/penn_chime/models.py +++ b/src/penn_chime/models.py @@ -9,7 +9,7 @@ from __future__ import annotations from datetime import date, datetime, timedelta from logging import INFO, basicConfig, getLogger from sys impo...
CodeForPhilly/chime
e6ff8aaa0be2be7c27ec9b98611147650d414270
diff --git a/tests/conftest.py b/tests/conftest.py index e822d91..b7cf01f 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -51,6 +51,7 @@ def DEFAULTS(): doubling_time=4.0, n_days=60, market_share=0.15, + mitigation_date=datetime(year=2020, month=3, day=28), relative_...
["model"] social isolation started earlier than model assumes <!-- Please note: Any changes to the model have a huge impact on rapidly evolving hospital system & public health decisions. The current model has been in use for a while now, and it has been validated against other similar models, so any changes to the mod...
0.0
e6ff8aaa0be2be7c27ec9b98611147650d414270
[ "[", "[100%]", "tests/penn_chime/test_models.py::test_model_raw_end", "tests/penn_chime/test_models.py::test_model_conservation", "tests/penn_chime/test_models.py::test_sim_sir", "tests/penn_chime/test_models.py::test_model_cumulative_census", "tests/penn_chime/test_models.py::test_model", "tests/penn...
[ "tests/penn_chime/test_models.py::test_growth_rate", "tests/penn_chime/test_models.py::test_sir" ]
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-04-01 20:18:49+00:00
mit
146
argoproj-labs__gordian-42
diff --git a/CHANGELOG.md b/CHANGELOG.md index cab46c1..eafba89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](ht...
argoproj-labs/gordian
5924837aac8e416abd170bebd8c3ccac614b1fd5
diff --git a/tests/test_repo.py b/tests/test_repo.py index 4398ec0..a341ea1 100644 --- a/tests/test_repo.py +++ b/tests/test_repo.py @@ -191,6 +191,16 @@ class TestRepo(unittest.TestCase): repo._source_repo.delete_file.assert_called_once() self.assertTrue(repo.dirty) + def test_get_files_with_pat...
Fetching of all files It appears gordian is fetching all the files of a repo even if you only need 1.
0.0
5924837aac8e416abd170bebd8c3ccac614b1fd5
[ "tests/test_repo.py::TestRepo::test_get_files_with_path" ]
[ "tests/test_repo.py::TestRepo::test__get_github_client", "tests/test_repo.py::TestRepo::test_create_file", "tests/test_repo.py::TestRepo::test_create_pr", "tests/test_repo.py::TestRepo::test_create_pr_no_labels", "tests/test_repo.py::TestRepo::test_default_github_url", "tests/test_repo.py::TestRepo::test_...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2023-05-16 21:53:32+00:00
apache-2.0
1,098
sotetsuk__memozo-21
diff --git a/memozo/memozo.py b/memozo/memozo.py index a67bbe5..e4e3311 100644 --- a/memozo/memozo.py +++ b/memozo/memozo.py @@ -76,3 +76,32 @@ class Memozo(object): return _wrapper return wrapper + + def pickle(self, name=None, ext='pickle', protocol=None): + + def wrapper(func): + ...
sotetsuk/memozo
a0d0985f445279d2c0ae295e9488556cf6507f9f
diff --git a/tests/test_memozo.py b/tests/test_memozo.py index e224e0a..4c39e59 100644 --- a/tests/test_memozo.py +++ b/tests/test_memozo.py @@ -1,6 +1,7 @@ import os import unittest import codecs +import pickle from memozo import Memozo, utils @@ -115,3 +116,30 @@ class TestMemozoGenerator(unittest.TestCase): ...
implement pickle ```py @m.pickle() ```
0.0
a0d0985f445279d2c0ae295e9488556cf6507f9f
[ "tests/test_memozo.py::TestMemozoPickle::test_no_cache_output" ]
[ "tests/test_memozo.py::TestMemozoCall::test_args", "tests/test_memozo.py::TestMemozoCall::test_call", "tests/test_memozo.py::TestMemozoCall::test_doc_string", "tests/test_memozo.py::TestMemozoCall::test_set_name", "tests/test_memozo.py::TestMemozoGenerator::test_data_cached_collectly", "tests/test_memozo....
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2017-01-20 03:32:25+00:00
mit
5,603
niftycode__imessage_reader-12
diff --git a/imessage_reader/create_sqlite.py b/imessage_reader/create_sqlite.py index 2c2aedc..1bf6d24 100644 --- a/imessage_reader/create_sqlite.py +++ b/imessage_reader/create_sqlite.py @@ -5,7 +5,7 @@ Create a SQLite3 database containing iMessage data (user id, text, date, service) Python 3.8+ Date created: Apri...
niftycode/imessage_reader
3a972bebf1c16e02e12322d3e81a7ea60400d5a2
diff --git a/tests/test_create_sqlite.py b/tests/test_create_sqlite.py index a0a3f35..673a51c 100644 --- a/tests/test_create_sqlite.py +++ b/tests/test_create_sqlite.py @@ -18,7 +18,8 @@ def message_data_one_row(): text='Hello Max!', date='2021...
Add ability to filter sent/received messages Awesome app! Thanks for putting it together. I've been able to access both the excel and sqlite output it creates to look at my messages. My only problem (right now) is that I can't figure out a way to tell if I sent or received the message. I can filter by `sender` to isola...
0.0
3a972bebf1c16e02e12322d3e81a7ea60400d5a2
[ "tests/test_create_sqlite.py::test_create_sqlite", "tests/test_message_data.py::test_message_data", "tests/test_write_excel.py::test_write_excel" ]
[ "tests/test_message_data.py::test_db_data" ]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-08-28 17:04:02+00:00
mit
4,168
gahjelle__pyplugs-29
diff --git a/pyplugs/_plugins.py b/pyplugs/_plugins.py index ca0d4d1..38f4434 100644 --- a/pyplugs/_plugins.py +++ b/pyplugs/_plugins.py @@ -141,7 +141,7 @@ def exists(package: str, plugin: str) -> bool: try: _import(package, plugin) - except _exceptions.UnknownPluginError: + except (_exceptions.U...
gahjelle/pyplugs
bd98efd851c820c6bc89e2b8b73f49956ddceb36
diff --git a/tests/test_plugins.py b/tests/test_plugins.py index 35e6f7d..82aea8b 100644 --- a/tests/test_plugins.py +++ b/tests/test_plugins.py @@ -81,6 +81,12 @@ def test_exists(plugin_package): assert pyplugs.exists(plugin_package, "non_existent") is False +def test_exists_on_non_existing_package(): + ""...
`.exists()` crashes for non-existing packages When using `pyplugs.exists()` with a package that doesn't exist, `pyplugs` crashes instead of returning `False`
0.0
bd98efd851c820c6bc89e2b8b73f49956ddceb36
[ "tests/test_plugins.py::test_exists_on_non_existing_package" ]
[ "tests/test_plugins.py::test_package_not_empty", "tests/test_plugins.py::test_package_empty", "tests/test_plugins.py::test_list_funcs", "tests/test_plugins.py::test_package_non_existing", "tests/test_plugins.py::test_plugin_exists", "tests/test_plugins.py::test_plugin_not_exists[no_plugins]", "tests/tes...
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2020-04-18 09:58:01+00:00
mit
2,432
wwkimball__yamlpath-155
diff --git a/CHANGES b/CHANGES index 1e09b97..afa9061 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,8 @@ +3.6.4 +Bug Fixes: +* Refactored single-star wildcard segment (*) handling to enable filtering + matches when subsequent segments exist; this fixes Issue #154. + 3.6.3 Bug Fixes: * The eyaml-rotate-keys command-...
wwkimball/yamlpath
d2b693ca756638122697288ea25cc02310b00842
diff --git a/tests/test_processor.py b/tests/test_processor.py index a205d18..34e6ebd 100644 --- a/tests/test_processor.py +++ b/tests/test_processor.py @@ -82,7 +82,11 @@ class Test_Processor(): ("/array_of_hashes/**", [1, "one", 2, "two"], True, None), ("products_hash.*[dimensions.weight==4].(avail...
Unexpected nodes returned for grandchild query /Locations/*/* ## Operating System 1. Name/Distribution: Windows 10 Home 2. Version: 10.0.19043 Build 19043 ## Version of Python and packages in use at the time of the issue. 1. [Distribution](https://wiki.python.org/moin/PythonDistributions): CPython (for Window...
0.0
d2b693ca756638122697288ea25cc02310b00842
[ "tests/test_processor.py::Test_Processor::test_get_nodes[/Locations/*/*-results38-True-None]", "tests/test_processor.py::Test_Processor::test_get_nodes[/AoH_Locations/*/*/*-results39-True-None]", "tests/test_processor.py::Test_Processor::test_get_nodes[/Weird_AoH_Locations/*/*/*-results40-True-None]", "tests/...
[ "tests/test_processor.py::Test_Processor::test_get_none_data_nodes", "tests/test_processor.py::Test_Processor::test_get_nodes[aliases[&aliasAnchorOne]-results0-True-None]", "tests/test_processor.py::Test_Processor::test_get_nodes[aliases[&newAlias]-results1-False-Not", "tests/test_processor.py::Test_Processor...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-12-06 19:50:45+00:00
isc
6,272
python__bedevere-617
diff --git a/bedevere/prtype.py b/bedevere/prtype.py index 0105e50..bccd879 100644 --- a/bedevere/prtype.py +++ b/bedevere/prtype.py @@ -43,7 +43,7 @@ async def classify_by_filepaths(gh, pull_request, filenames): if util.is_news_dir(filename): news = True filepath = pathlib.PurePath(filen...
python/bedevere
b5bcd24e79ad72b47582f89f7e7053f5b3157fa4
diff --git a/tests/test_prtype.py b/tests/test_prtype.py index 4fcaf0c..c9b0777 100644 --- a/tests/test_prtype.py +++ b/tests/test_prtype.py @@ -85,6 +85,26 @@ async def test_docs_no_news(): assert gh.post_data[0] == [Labels.docs.value, Labels.skip_news.value] +async def test_docs_no_news_with_dotnitignore(): ...
Add docs label for PRs that touch Doc/tools/.nitignore See e.g. https://github.com/python/cpython/pull/114280 or https://github.com/python/cpython/pull/114194
0.0
b5bcd24e79ad72b47582f89f7e7053f5b3157fa4
[ "tests/test_prtype.py::test_docs_no_news_with_dotnitignore" ]
[ "tests/test_prtype.py::test_no_files", "tests/test_prtype.py::test_news_only", "tests/test_prtype.py::test_docs_no_news", "tests/test_prtype.py::test_docs_and_news", "tests/test_prtype.py::test_tests_only", "tests/test_prtype.py::test_docs_and_tests", "tests/test_prtype.py::test_leave_existing_type_labe...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2024-01-19 08:13:31+00:00
apache-2.0
5,111
tsdat__tsdat-23
diff --git a/tsdat/pipeline/ingest_pipeline.py b/tsdat/pipeline/ingest_pipeline.py index f5dea5b..ef439d5 100644 --- a/tsdat/pipeline/ingest_pipeline.py +++ b/tsdat/pipeline/ingest_pipeline.py @@ -13,7 +13,7 @@ class IngestPipeline(Pipeline): applying quality checks and quality controls, and by saving the no...
tsdat/tsdat
b5e1b0c6c7c94de86175b2b18f6b7fbc2c33cac8
diff --git a/tests/test_examples.py b/tests/test_examples.py index e7c2a58..ff16cd0 100644 --- a/tests/test_examples.py +++ b/tests/test_examples.py @@ -67,25 +67,21 @@ def pipeline_produced_expected_directory_tree(pipeline: IngestPipeline) -> bool: return True -def pipeline_produced_expected_data( - pipeli...
`IngestPipeline.run(*)` should return the processed `xarray.Dataset()` object
0.0
b5e1b0c6c7c94de86175b2b18f6b7fbc2c33cac8
[ "tests/test_examples.py::test_a2e_buoy_ingest_example", "tests/test_examples.py::test_a2e_imu_ingest_example", "tests/test_examples.py::test_a2e_lidar_ingest_example", "tests/test_examples.py::test_a2e_waves_ingest_example" ]
[]
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2021-11-22 23:29:48+00:00
bsd-2-clause
6,098
lenskit__lkpy-312
diff --git a/lenskit/metrics/topn.py b/lenskit/metrics/topn.py index ae1b70f..7f616c5 100644 --- a/lenskit/metrics/topn.py +++ b/lenskit/metrics/topn.py @@ -300,11 +300,11 @@ def ndcg(recs, truth, discount=np.log2, k=None): The maximum list length. """ - tpos = truth.index.get_indexer(recs['item'...
lenskit/lkpy
0716300a91e55b54e3da150c5fa8355af79fa745
diff --git a/tests/test_topn_ndcg.py b/tests/test_topn_ndcg.py index 5d1601d..2fdf9e5 100644 --- a/tests/test_topn_ndcg.py +++ b/tests/test_topn_ndcg.py @@ -87,6 +87,14 @@ def test_ndcg_perfect(): assert ndcg(recs, truth) == approx(1.0) +def test_ndcg_perfect_k_short(): + recs = pd.DataFrame({'item': [2, 3,...
nDCG metric does not correctly truncate lists The nDCG metric has two faults whereby it fails to correctly truncate the truth list and recommendation list under certain conditions: 1. If no k is supplied, the full truth list and recommendation list are used to compute the ideal DCG and recommendation DCG, respective...
0.0
0716300a91e55b54e3da150c5fa8355af79fa745
[ "tests/test_topn_ndcg.py::test_ndcg_perfect_k_short" ]
[ "tests/test_topn_ndcg.py::test_dcg_empty", "tests/test_topn_ndcg.py::test_dcg_zeros", "tests/test_topn_ndcg.py::test_dcg_single", "tests/test_topn_ndcg.py::test_dcg_mult", "tests/test_topn_ndcg.py::test_dcg_empty2", "tests/test_topn_ndcg.py::test_dcg_zeros2", "tests/test_topn_ndcg.py::test_dcg_single2",...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2022-03-11 19:46:49+00:00
mit
3,543
albertyw__git-browse-49
diff --git a/git_browse/browse.py b/git_browse/browse.py index 47ccaeb..451f605 100755 --- a/git_browse/browse.py +++ b/git_browse/browse.py @@ -369,7 +369,8 @@ def get_git_config() -> str: def get_git_url(git_config_file: str) -> str: - config = configparser.ConfigParser() + # strict is removed here because...
albertyw/git-browse
ee46082dd3dea8fbaa3148d67c26004f5b1f2b6b
diff --git a/git_browse/tests/test.py b/git_browse/tests/test.py index 9578999..cb3ba05 100644 --- a/git_browse/tests/test.py +++ b/git_browse/tests/test.py @@ -2,6 +2,7 @@ import os import re import shutil import sys +import tempfile from typing import List, cast import unittest from unittest.mock import MagicMo...
Support running with multiple fetch configs gitconfig allows for multiple fetch configs which breaks configparser: https://stackoverflow.com/questions/15507264/can-i-specify-in-git-config-to-fetch-multiple-refspecs
0.0
ee46082dd3dea8fbaa3148d67c26004f5b1f2b6b
[ "git_browse/tests/test.py::GetGitURL::test_multiple_fetch" ]
[ "git_browse/tests/test.py::TestGithubHost::test_commit_hash_url", "git_browse/tests/test.py::TestGithubHost::test_directory_url", "git_browse/tests/test.py::TestGithubHost::test_file_url", "git_browse/tests/test.py::TestGithubHost::test_get_url", "git_browse/tests/test.py::TestGithubHost::test_init", "git...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2020-10-19 04:46:20+00:00
mit
1,005
biolink__biolinkml-369
diff --git a/biolinkml/generators/pythongen.py b/biolinkml/generators/pythongen.py index 63f4a7ca..48c9d2e1 100644 --- a/biolinkml/generators/pythongen.py +++ b/biolinkml/generators/pythongen.py @@ -197,12 +197,15 @@ dataclasses._init_fn = dataclasses_init_fn_with_kwargs add_type_ref(self.schema.types[...
biolink/biolinkml
0b62bffabb4938208703acac990a6b2b6461fa7e
diff --git a/tests/test_issues/input/issue_368.yaml b/tests/test_issues/input/issue_368.yaml new file mode 100644 index 00000000..0bc27c5b --- /dev/null +++ b/tests/test_issues/input/issue_368.yaml @@ -0,0 +1,19 @@ +id: https://microbiomedata/schema + +prefixes: + biolinkml: https://w3id.org/biolink/biolinkml/ + +impo...
enums are not imported in generated python code E.g ```yaml id: https://microbiomedata/schema prefixes: biolinkml: https://w3id.org/biolink/biolinkml/ imports: - biolinkml:types - issues_368_imports classes: c: is_a: parent_class slots: - s slots: s: range: e ``` ...
0.0
0b62bffabb4938208703acac990a6b2b6461fa7e
[ "tests/test_issues/test_issue_368.py::Issue368TestCase::test_issue_368" ]
[]
{ "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2021-02-16 18:12:42+00:00
cc0-1.0
1,389
J-CPelletier__webcomix-7
diff --git a/webcomix/main.py b/webcomix/main.py index 0053bbb..cba546d 100644 --- a/webcomix/main.py +++ b/webcomix/main.py @@ -56,7 +56,12 @@ def download(name, cbz): default=False, is_flag=True, help="Outputs the comic as a cbz file") -def search(name, start_url, cbz): +@click.option( + "-y", + ...
J-CPelletier/webcomix
25d394314ce26816302e9c878f5cebfb853c16fb
diff --git a/webcomix/tests/test_main.py b/webcomix/tests/test_main.py index ec2c718..c2dcf42 100644 --- a/webcomix/tests/test_main.py +++ b/webcomix/tests/test_main.py @@ -100,7 +100,7 @@ def test_custom(monkeypatch): assert result.exit_code == 0 assert result.output.strip() == "\n".join([ "Verified...
Custom: Add a -y (yes) option Looking to use this as a replacement for Dosage, as this allows for custom comics. I'd like to run this daily (or every few days) on a number of comics to pull latest comic. The prompting on Custom Comics (are you sure) is a stumbling block to script it. Can you maybe add a -y to custom, f...
0.0
25d394314ce26816302e9c878f5cebfb853c16fb
[ "webcomix/tests/test_main.py::test_custom", "webcomix/tests/test_main.py::test_custom_make_cbz", "webcomix/tests/test_main.py::test_search" ]
[ "webcomix/tests/test_main.py::test_print_verification", "webcomix/tests/test_main.py::test_comics", "webcomix/tests/test_main.py::test_good_download", "webcomix/tests/test_main.py::test_bad_download", "webcomix/tests/test_main.py::test_good_download_makecbz", "webcomix/tests/test_main.py::test_bad_downloa...
{ "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2018-07-27 20:03:35+00:00
mit
298
ttu__ruuvitag-sensor-41
diff --git a/ruuvitag_sensor/ruuvi.py b/ruuvitag_sensor/ruuvi.py index ffd6bc6..0dffc62 100644 --- a/ruuvitag_sensor/ruuvi.py +++ b/ruuvitag_sensor/ruuvi.py @@ -202,13 +202,12 @@ class RuuviTagSensor(object): Returns: string: Sensor data """ + # Search of FF990403 (Manufacturer Spe...
ttu/ruuvitag-sensor
c0d986391149d31d60d9649cfd9f3946db92a50c
diff --git a/tests/test_decoder.py b/tests/test_decoder.py index cd92d1d..639b71a 100644 --- a/tests/test_decoder.py +++ b/tests/test_decoder.py @@ -51,6 +51,16 @@ class TestDecoder(TestCase): self.assertNotEqual(data['acceleration_y'], 0) self.assertNotEqual(data['acceleration_z'], 0) + data...
Bug: incompatible with RuuviFW 1.2.8 The 1.2.8 update to Ruuvi Firmware trims extra NULLs at the end of transmission which breaks the data format type check. I can fix this and implement #29 .
0.0
c0d986391149d31d60d9649cfd9f3946db92a50c
[ "tests/test_ruuvitag_sensor.py::TestRuuviTagSensor::test_find_tags", "tests/test_ruuvitag_sensor.py::TestRuuviTagSensor::test_get_datas" ]
[ "tests/test_decoder.py::TestDecoder::test_decode_is_valid", "tests/test_decoder.py::TestDecoder::test_decode_is_valid_case2", "tests/test_decoder.py::TestDecoder::test_decode_is_valid_weatherstation_2017_04_12", "tests/test_decoder.py::TestDecoder::test_df3decode_is_valid", "tests/test_decoder.py::TestDecod...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_issue_reference" ], "has_test_patch": true, "is_lite": false }
2018-04-19 15:39:25+00:00
mit
6,104
symerio__pgeocode-62
diff --git a/CHANGELOG.md b/CHANGELOG.md index 683a3c0..088341d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ - The minimum supported Python version is updated to Python 3.8 [#65](https://github.com/symerio/pgeocode/pull/65) + - Fix error in latitude grouping when creating a unique postcode inde...
symerio/pgeocode
fda231859ae17c7282a9d90c0e2b5b3cde1eb01d
diff --git a/test_pgeocode.py b/test_pgeocode.py index b6fe453..1bfdcbf 100644 --- a/test_pgeocode.py +++ b/test_pgeocode.py @@ -261,3 +261,60 @@ def test_first_url_fails(httpserver, monkeypatch, temp_dir): with pytest.warns(UserWarning, match=msg): Nominatim("ie") httpserver.check_assertions() + + +...
incorrect centroid in query_postal_code for duplicate postal code entries query_postal_code sums the longitude. nomi.query_postal_code("41-800") Thats from GEOName file: 41-800 will return you 2 locations: PL, 41-800, 50.2817, 18.6745 PL,41-800, 50.3055, 18.778 After running: nomi.query_postal_code("41-800...
0.0
fda231859ae17c7282a9d90c0e2b5b3cde1eb01d
[ "test_pgeocode.py::test_unique_index_pcode" ]
[ "test_pgeocode.py::test_countries[FR-91120-Palaiseau-67000-Strasbourg-400]", "test_pgeocode.py::test_countries[GB-WC2N", "test_pgeocode.py::test_countries[AU-6837-Perth-3000-melbourne-2722]", "test_pgeocode.py::test_countries[AU-6837-Perth-0221-Barton-3089]", "test_pgeocode.py::test_countries[US-60605-Chica...
{ "failed_lite_validators": [ "has_many_modified_files", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2022-06-16 08:54:33+00:00
bsd-3-clause
5,821
phfaist__pylatexenc-4
diff --git a/pylatexenc/latex2text.py b/pylatexenc/latex2text.py index 874ae8d..da2694e 100644 --- a/pylatexenc/latex2text.py +++ b/pylatexenc/latex2text.py @@ -23,11 +23,17 @@ # +from __future__ import print_function, absolute_import import os import re import unicodedata -import latexwalker import logging +i...
phfaist/pylatexenc
9919400250e204e7990821210c8c0035bede2eaa
diff --git a/test/test_latexwalker.py b/test/test_latexwalker.py index 5acf7d3..2be6f0f 100644 --- a/test/test_latexwalker.py +++ b/test/test_latexwalker.py @@ -1,4 +1,8 @@ import unittest +import sys +if sys.version_info.major > 2: + def unicode(string): return string + basestring = str from pylatexenc.latex...
ur"Expected exactly (...)" string gives SyntaxError: invalid syntax Got syntax error when importing ```pylatexenc.latex2text``` module (Python 3.6, Mac, Anaconda3 distrubution): ``` import pylatexenc.latex2text File "/Users/rasmus/anaconda/envs/tts/lib/python3.6/site-packages/pylatexenc/latex2text.py", line 50...
0.0
9919400250e204e7990821210c8c0035bede2eaa
[ "test/test_latexwalker.py::TestLatexWalker::test_errors", "test/test_latexwalker.py::TestLatexWalker::test_get_latex_braced_group", "test/test_latexwalker.py::TestLatexWalker::test_get_latex_environment", "test/test_latexwalker.py::TestLatexWalker::test_get_latex_expression", "test/test_latexwalker.py::Test...
[]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2017-02-16 22:40:59+00:00
mit
4,534
QB3__sparse-ho-67
diff --git a/doc/api.rst b/doc/api.rst index 6cde70a..55810a7 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -44,7 +44,7 @@ Criterion :toctree: generated/ HeldOutMSE - SmoothedSURE + FiniteDiffMonteCarloSure HeldOutLogistic diff --git a/sparse_ho/criterion/__init__.py b/sparse_ho/criterion/__init__...
QB3/sparse-ho
59197a06f2ba62b4fd67b9d8950dc62674eed2a1
diff --git a/sparse_ho/tests/test_grad_search.py b/sparse_ho/tests/test_grad_search.py index 492c04b..a8537f7 100644 --- a/sparse_ho/tests/test_grad_search.py +++ b/sparse_ho/tests/test_grad_search.py @@ -10,7 +10,7 @@ from sparse_ho.models import Lasso from sparse_ho import Forward from sparse_ho import ImplicitForw...
SURE naming / API / generalization Consider renaming `SURE` to something more in adequation with the implementation. The current implementation follows [(Figure 3, Deledalle et al. 2020)](https://samuelvaiter.com/publications/deledalle2014sugar.pdf) by implementing a smoothed version using Finite Difference Monte Car...
0.0
59197a06f2ba62b4fd67b9d8950dc62674eed2a1
[ "sparse_ho/tests/test_grid_search.py::test_grid_search" ]
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2021-01-11 11:34:40+00:00
bsd-3-clause
570
tsroten__dragonmapper-24
diff --git a/dragonmapper/data/transcriptions.csv b/dragonmapper/data/transcriptions.csv index 6447017..072be78 100644 --- a/dragonmapper/data/transcriptions.csv +++ b/dragonmapper/data/transcriptions.csv @@ -234,6 +234,7 @@ nun,ㄋㄨㄣ,nwən nuo,ㄋㄨㄛ,nwɔ nü,ㄋㄩ,ny nüe,ㄋㄩㄝ,nɥœ +o,ㄛ,ɔ ou,ㄡ,oʊ pa,ㄆㄚ,pʰa pai,ㄆㄞ,pʰaɪ
tsroten/dragonmapper
0f58b30f65718494afb1de9cb25d68d5b3246a0f
diff --git a/dragonmapper/tests/test-transcriptions.py b/dragonmapper/tests/test-transcriptions.py index a4d5e14..04a5733 100644 --- a/dragonmapper/tests/test-transcriptions.py +++ b/dragonmapper/tests/test-transcriptions.py @@ -173,3 +173,9 @@ class TestConvertFunctions(unittest.TestCase): numbered = 'Ao4di4l...
Pinyin/Zhuyin/IPA syllable `o` is missing. ```python >>> print(transcriptions.pinyin_to_zhuyin(ó)) Traceback (most recent call last): File "D:\OneDrive\My Programs\zhuyin converter\Convert2BopomofoPunctuation.py", line 100, in <module> print(printBopomofo(eachLine)+"\n"*3) File "D:\OneDrive\My Programs\zhu...
0.0
0f58b30f65718494afb1de9cb25d68d5b3246a0f
[ "dragonmapper/tests/test-transcriptions.py::TestConvertFunctions::test_issue_23" ]
[ "dragonmapper/tests/test-transcriptions.py::TestIdentifyFunctions::test_is_zhuyin", "dragonmapper/tests/test-transcriptions.py::TestIdentifyFunctions::test_is_zhuyin_compatible", "dragonmapper/tests/test-transcriptions.py::TestConvertFunctions::test_drop_apostrophe", "dragonmapper/tests/test-transcriptions.py...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2017-03-21 14:35:28+00:00
mit
6,102
PennChopMicrobiomeProgram__illqc-17
diff --git a/illqclib/main.py b/illqclib/main.py index e8503bf..396d282 100644 --- a/illqclib/main.py +++ b/illqclib/main.py @@ -67,7 +67,7 @@ class Trimmomatic(object): "ILLUMINACLIP:%s:2:30:10:8:true" % self._adapter_fp, "LEADING:%d" % self.config["leading"], "TRAILING:%d" % sel...
PennChopMicrobiomeProgram/illqc
bc504d4c93300db446ab7b70cb0660f682d07687
diff --git a/test/test_main.py b/test/test_main.py index 7a75113..803ed7b 100644 --- a/test/test_main.py +++ b/test/test_main.py @@ -26,17 +26,19 @@ class ConfigTests(unittest.TestCase): class TrimmomaticTests(unittest.TestCase): + config_vals = { + "trimmomatic_jar_fp": "trimmomatic-0.30.jar", + ...
Cannot configure setting for sliding window Python needs a tuple value for this setting, but JSON does not support tuple types. Suggest converting to value tuple before line 70: https://github.com/PennChopMicrobiomeProgram/illqc/blob/master/illqclib/main.py#L70
0.0
bc504d4c93300db446ab7b70cb0660f682d07687
[ "test/test_main.py::TrimmomaticTests::test_make_command_sliding_window_as_list" ]
[ "test/test_main.py::TrimmomaticTests::test_make_command" ]
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2017-03-04 12:40:47+00:00
mit
454
happyleavesaoc__python-snapcast-64
diff --git a/setup.py b/setup.py index 6c934d0..e2fa579 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name='snapcast', - version='2.3.3', + version='2.3.4', description='Control Snapcast.', url='https://github.com/happyleavesaoc/python-snapcast/', ...
happyleavesaoc/python-snapcast
9c8f97cea23015ab2414e9eee43926eca5878634
diff --git a/tests/test_group.py b/tests/test_group.py index 5c3563b..bd99ec2 100644 --- a/tests/test_group.py +++ b/tests/test_group.py @@ -28,21 +28,26 @@ class TestSnapgroup(unittest.TestCase): client.callback = MagicMock() client.update_volume = MagicMock() client.friendly_name = 'A' + ...
Exceptions thrown when debug logging is enabled When logging is configured for DEBUG the following exceptions are thrown upon connecting to my Snapcast server. ``` DEBUG:snapcast.control.server:connected to snapserver on wyseguy:1705 DEBUG:snapcast.control.server:stream found: Snapstream (UPnP) DEBUG:snapcast.con...
0.0
9c8f97cea23015ab2414e9eee43926eca5878634
[ "tests/test_group.py::TestSnapgroup::test_init", "tests/test_group.py::TestSnapgroup::test_repr" ]
[ "tests/test_group.py::TestSnapgroup::test_add_client", "tests/test_group.py::TestSnapgroup::test_remove_client", "tests/test_group.py::TestSnapgroup::test_set_callback", "tests/test_group.py::TestSnapgroup::test_set_muted", "tests/test_group.py::TestSnapgroup::test_set_name", "tests/test_group.py::TestSna...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2024-02-17 17:53:55+00:00
mit
2,706
zopefoundation__transaction-28
diff --git a/CHANGES.rst b/CHANGES.rst index 7569466..4a1e878 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,29 @@ Changes ======= +2.0.0 (unreleased) +------------------ + +- The transaction ``user`` and ``description`` attributes are now + defined to be text (unicode) as apposed to Python the ``str`` type...
zopefoundation/transaction
085ab4fb0521127cd5428db9fd9fdcd3b8eaed10
diff --git a/transaction/tests/test__transaction.py b/transaction/tests/test__transaction.py index 4e63bb3..8fe8c68 100644 --- a/transaction/tests/test__transaction.py +++ b/transaction/tests/test__transaction.py @@ -69,14 +69,15 @@ class TransactionTests(unittest.TestCase): self.assertTrue(isinstance(txn._syn...
Define transaction description and user to be unicode See: https://groups.google.com/forum/#!topic/python-transaction/Yn326XwCZ5E
0.0
085ab4fb0521127cd5428db9fd9fdcd3b8eaed10
[ "transaction/tests/test__transaction.py::TransactionTests::test_ctor_defaults", "transaction/tests/test__transaction.py::TransactionTests::test_description_nonascii_bytes", "transaction/tests/test__transaction.py::TransactionTests::test_setExtendedInfo_single", "transaction/tests/test__transaction.py::Transac...
[ "transaction/tests/test__transaction.py::TransactionTests::test__commitResources_error_in_afterCompletion", "transaction/tests/test__transaction.py::TransactionTests::test__commitResources_error_in_commit", "transaction/tests/test__transaction.py::TransactionTests::test__commitResources_error_in_tpc_begin", "...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2016-11-11 17:20:00+00:00
zpl-2.1
6,395
TRoboto__Maha-103
diff --git a/maha/cleaners/functions/remove_fn.py b/maha/cleaners/functions/remove_fn.py index 1385f34..47786b8 100644 --- a/maha/cleaners/functions/remove_fn.py +++ b/maha/cleaners/functions/remove_fn.py @@ -3,6 +3,8 @@ Functions that operate on a string and remove certain characters. """ from __future__ import anno...
TRoboto/Maha
8908cd383ec4af6805be25bfe04ec3e4df6f7939
diff --git a/tests/cleaners/test_remove.py b/tests/cleaners/test_remove.py index df184a8..071f5a6 100644 --- a/tests/cleaners/test_remove.py +++ b/tests/cleaners/test_remove.py @@ -823,3 +823,12 @@ def test_remove_arabic_letter_dots_with_edge_case(input: str, expected: str): def test_remove_arabic_letter_dots_general(...
Adding a list of strings to cleaner functions ### What problem are you trying to solve? Enhance the cleaners functions to take a list of strings as input if needed. ### Examples (if relevant) ```py >>> from maha.cleaners.functions import remove >>> text = "من اليوم سوف ينتقل صديقي منور من المدينة المنورة وعنوانه ا...
0.0
8908cd383ec4af6805be25bfe04ec3e4df6f7939
[ "tests/cleaners/test_remove.py::test_remove_list_input" ]
[ "tests/cleaners/test_remove.py::test_remove_with_arabic", "tests/cleaners/test_remove.py::test_remove_with_english", "tests/cleaners/test_remove.py::test_remove_english", "tests/cleaners/test_remove.py::test_remove_with_false_use_space", "tests/cleaners/test_remove.py::test_remove_with_random_true_inputs", ...
{ "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-08-04 08:47:59+00:00
bsd-3-clause
737
googlefonts__nanoemoji-280
diff --git a/src/nanoemoji/features.py b/src/nanoemoji/features.py index 741ed2c..454df73 100644 --- a/src/nanoemoji/features.py +++ b/src/nanoemoji/features.py @@ -20,14 +20,17 @@ from nanoemoji.glyph import glyph_name -def generate_fea(rgi_sequences): - # Generate rlig feature with ligature lookup for multi-c...
googlefonts/nanoemoji
67081b8abe14771b757a95791cf6b1d03e9ecf52
diff --git a/tests/features_test.py b/tests/features_test.py new file mode 100644 index 0000000..fba756e --- /dev/null +++ b/tests/features_test.py @@ -0,0 +1,19 @@ +from textwrap import dedent +from nanoemoji.features import generate_fea, DEFAULT_GSUB_FEATURE_TAG +import pytest + + +@pytest.mark.parametrize("feature_t...
Ligature changed from rlig feature to ccmp Different platforms or browsers have some differences in ligature support([Test](http://unifraktur.sourceforge.net/testcases/enable_opentype_features/)). Let us discuss what issues should be paid attention to in emoji ligatures. noto-emoji and noto-emoji-svg both use ccmp b...
0.0
67081b8abe14771b757a95791cf6b1d03e9ecf52
[ "tests/features_test.py::test_generate_fea[ccmp]", "tests/features_test.py::test_generate_fea[rlig]" ]
[]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2021-04-19 14:52:41+00:00
apache-2.0
2,639
tsutsu3__linkify-it-py-24
diff --git a/README.md b/README.md index 0763763..bd45d54 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![CI](https://github.com/tsutsu3/linkify-it-py/workflows/CI/badge.svg?branch=main)](https://github.com/tsutsu3/linkify-it-py/actions) [![pypi](https://img.shields.io/pypi/v/linkify-it-py)](https://pypi....
tsutsu3/linkify-it-py
1e35d3c46172864eb3e2c275d6e797a1b2acb43e
diff --git a/test/test_linkify.py b/test/test_linkify.py index afa4f00..79bf297 100644 --- a/test/test_linkify.py +++ b/test/test_linkify.py @@ -20,7 +20,7 @@ def dummy(_): def test_links(number, line, expected): linkifyit = LinkifyIt(options={"fuzzy_ip": True}) - linkifyit._normalize = dummy + linkifyit....
Release on conda-forge If you release on conda-forge, then I'll include in markdown-it-py conda requirements 😄 (If you don't know, you need to make a PR to https://github.com/conda-forge/staged-recipes)
0.0
1e35d3c46172864eb3e2c275d6e797a1b2acb43e
[ "test/test_linkify.py::test_links[49->>example.com", "test/test_linkify.py::test_links[88-4.4.4.4-4.4.4.4]", "test/test_linkify.py::test_links[90-192.168.1.1/abc-192.168.1.1/abc]", "test/test_linkify.py::test_links[102-google.com-google.com]", "test/test_linkify.py::test_links[104-google.com:", "test/test...
[ "test/test_linkify.py::test_links[4-My", "test/test_linkify.py::test_links[7-My", "test/test_linkify.py::test_links[10-http://example.com/foo_bar/-http://example.com/foo_bar/]", "test/test_linkify.py::test_links[12-http://user:pass@example.com:8080-http://user:pass@example.com:8080]", "test/test_linkify.py:...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-12-19 07:54:04+00:00
mit
6,103
NVIDIA__NVFlare-56
diff --git a/nvflare/apis/analytix.py b/nvflare/apis/analytix.py index b99c10f3..26a6423b 100644 --- a/nvflare/apis/analytix.py +++ b/nvflare/apis/analytix.py @@ -17,8 +17,8 @@ from typing import Optional from nvflare.apis.dxo import DXO, DataKind -DATA_TYPE_KEY = "analytics_data_type" -KWARGS_KEY = "analytics_kwa...
NVIDIA/NVFlare
94dfcbbd33db8746297d39c06cfa0955592fd255
diff --git a/test/test_analytix.py b/test/test_analytix.py new file mode 100644 index 00000000..1b61d292 --- /dev/null +++ b/test/test_analytix.py @@ -0,0 +1,94 @@ +# Copyright (c) 2021, NVIDIA CORPORATION. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in comp...
Errors in streaming.py @yanchengnv notice some issues in nvflare/app_common/widgets/streaming.py: - Line 47 to Line 52, the checking of the args and error messages are wrong. - All these write_xxx() methods, should check the tag and data arg and make sure they are what we expect (str, dict, …) - Line 257, in the c...
0.0
94dfcbbd33db8746297d39c06cfa0955592fd255
[ "test/test_analytix.py::TestAnalytix::test_invalid[tag0-1.0-AnalyticsDataType.SCALAR-None-TypeError-expect", "test/test_analytix.py::TestAnalytix::test_invalid[tag-1.0-scalar-None-TypeError-expect", "test/test_analytix.py::TestAnalytix::test_invalid[tag-1.0-AnalyticsDataType.SCALAR-kwargs2-TypeError-expect", ...
[]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2021-12-08 22:42:30+00:00
apache-2.0
389
jupyterhub__chartpress-64
diff --git a/.travis.yml b/.travis.yml index a47cf03..998bf51 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,11 +5,12 @@ cache: pip install: - set -e - pip install --upgrade pip - - pip install pyflakes . + - pip install pyflakes pytest . script: - chartpress --version - chartpress --help - pyflake...
jupyterhub/chartpress
84df258b335fe19d56d3fc849a9241d9c4eb7afe
diff --git a/tests/test_regexp.py b/tests/test_regexp.py new file mode 100644 index 0000000..b597655 --- /dev/null +++ b/tests/test_regexp.py @@ -0,0 +1,14 @@ +from chartpress import _strip_identifiers_build_suffix +from chartpress import _get_identifier + +def test__strip_identifiers_build_suffix(): + assert _strip...
Pre-release replaced by later builds I've found a reproducible issue since #52 relating to the use of chartpress. Apparently, if we use chartpress to publish a tagged commit, like `0.9.0-alpha.1`, and later use chartpress to publish a later commit, it appears that Helm chart repository's `index.yaml` will get its entry...
0.0
84df258b335fe19d56d3fc849a9241d9c4eb7afe
[ "tests/test_regexp.py::test__strip_identifiers_build_suffix", "tests/test_regexp.py::test__get_identifier" ]
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_media", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2019-10-21 08:09:44+00:00
bsd-3-clause
3,365
syrusakbary__snapshottest-133
diff --git a/.travis.yml b/.travis.yml index 9494339..578c891 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,6 @@ language: python sudo: false python: -- 2.7 -- 3.4 - 3.5 - 3.6 - 3.7 diff --git a/setup.py b/setup.py index 1229d68..a18b9b0 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ from setuptools...
syrusakbary/snapshottest
9818a7678b3998fcc67634fc86a427d68692c091
diff --git a/snapshottest/django.py b/snapshottest/django.py index 298fd5f..9d20b9c 100644 --- a/snapshottest/django.py +++ b/snapshottest/django.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import from django.test import TestCase as dTestCase from django.test import SimpleTestCase as dSimpleTestCase from dja...
Require Python 3 Since Python 2 has been deprecated, I suggest we drop support for it the next major release. Many libraries, including developer tools, have done so… pip, pytest, etc. IMO it is not worth spending the limited volunteer development efforts we have to keep this working on an obsolete platform.
0.0
9818a7678b3998fcc67634fc86a427d68692c091
[ "tests/test_snapshot_test.py::test_snapshot_matches_itself[{'a'," ]
[ "tests/test_formatter.py::test_text_formatting[abc-'abc']", "tests/test_formatter.py::test_text_formatting[-'']", "tests/test_formatter.py::test_text_formatting[back\\\\slash-'back\\\\\\\\slash']", "tests/test_formatter.py::test_text_formatting[it", "tests/test_formatter.py::test_text_formatting[it's", "t...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-09-29 23:35:10+00:00
mit
5,822
akaihola__pgtricks-13
diff --git a/CHANGES.rst b/CHANGES.rst index 3fc8314..c3796a7 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -13,6 +13,9 @@ Removed Fixed ----- +- Very large tables are now sorted without crashing. This is done by merge sorting + in temporary files. + 1.0.0_ / 2021-09-11 ==================== diff --git a/mypy.i...
akaihola/pgtricks
c5ba05b4db22a74388b0c2b863e1c4a9f0467c8b
diff --git a/pgtricks/tests/test_mergesort.py b/pgtricks/tests/test_mergesort.py new file mode 100644 index 0000000..6f7c0b6 --- /dev/null +++ b/pgtricks/tests/test_mergesort.py @@ -0,0 +1,110 @@ +"""Tests for the `pgtricks.mergesort` module.""" + +import functools +from types import GeneratorType +from typing import I...
Use Too Much Memory, Killed by System I'm using this project to split the .sql file to make the pg_dump dumped file in an order that backup programs can deduplicate the existing data. The dumped file is more than 1000GB, which is a kind of big. So I guess the data may be sorted in memory, so it's easy to use out.
0.0
c5ba05b4db22a74388b0c2b863e1c4a9f0467c8b
[ "pgtricks/tests/test_mergesort.py::mypy", "pgtricks/tests/test_mergesort.py::mypy-status", "pgtricks/tests/test_mergesort.py::test_mergesort_append[\\n]", "pgtricks/tests/test_mergesort.py::test_mergesort_append[\\r\\n]", "pgtricks/tests/test_mergesort.py::test_mergesort_flush[\\n]", "pgtricks/tests/test_...
[]
{ "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-07-04 07:59:52+00:00
bsd-3-clause
987
mapbox__rio-color-14
diff --git a/rio_color/scripts/cli.py b/rio_color/scripts/cli.py index 7ec9cab..9580f68 100755 --- a/rio_color/scripts/cli.py +++ b/rio_color/scripts/cli.py @@ -1,13 +1,27 @@ import click + import rasterio from rio_color.workers import atmos_worker, color_worker from rio_color.operations import parse_operations im...
mapbox/rio-color
bb410109f6a0ae376443880f96dc8981766066a3
diff --git a/tests/test_cli.py b/tests/test_cli.py index 8448a74..1d30644 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1,10 +1,12 @@ import os +from click import UsageError from click.testing import CliRunner import numpy as np +import pytest import rasterio -from rio_color.scripts.cli import colo...
use all cores with -j -1 Modify max_procs so that a negative value means "use the number of cores available on this machine"
0.0
bb410109f6a0ae376443880f96dc8981766066a3
[ "tests/test_cli.py::test_check_jobs" ]
[]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2016-04-18 20:15:46+00:00
mit
3,703
arxanchain__py-common-16
diff --git a/README.md b/README.md index 8221932..40254e2 100644 --- a/README.md +++ b/README.md @@ -21,20 +21,50 @@ $ python setup.py install # install py-common ## Usage -**Note:** Before using the py-common in your operating system, you need to make a two-step preparation: +**Note:** Before using the py-common ...
arxanchain/py-common
963a267c3aa42571f778c7fb5efa29c4f6aa09a3
diff --git a/test/test_api.py b/test/test_api.py index 60eace4..57328fe 100644 --- a/test/test_api.py +++ b/test/test_api.py @@ -20,12 +20,13 @@ import json import sys import httpretty import mock +import requests ROOTPATH = os.path.join( os.path.dirname(__file__), "../" ) sys.path.append(ROOTPATH) ...
README add certs tree description ``` | └── certs | ├── tls | | └── tls.cert | └── users | └── pWEzB4yMM1518346407 | └── pWEzB4yMM1518346407.key ```
0.0
963a267c3aa42571f778c7fb5efa29c4f6aa09a3
[ "test/test_api.py::ApiTest::test_do_prepare_fail", "test/test_api.py::ApiTest::test_do_prepare_succ" ]
[]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2018-03-13 09:02:29+00:00
apache-2.0
1,101
toumorokoshi__deepmerge-22
diff --git a/Makefile b/Makefile index 9a611ee..75ba49c 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ build: .venv/deps # only works with python 3+ lint: .venv/deps - .venv/bin/python -m pip install black==21.12b0 + .venv/bin/python -m pip install black==22.3.0 .venv/bin/python -m black --check . test...
toumorokoshi/deepmerge
4ac5ff666d06cb072ff200ff4255d86d950b71a4
diff --git a/deepmerge/tests/strategy/test_list.py b/deepmerge/tests/strategy/test_list.py index 39215a9..7eb2d3b 100644 --- a/deepmerge/tests/strategy/test_list.py +++ b/deepmerge/tests/strategy/test_list.py @@ -19,3 +19,15 @@ def test_strategy_append_unique(custom_merger): expected = [1, 3, 2, 5, 4] actual ...
list merge strategy append_unique does not work for lists of dicts Hi developers, especially @morph027 , I get an error when trying to apply list merge strategy `append_unique` for lists of dictionaries. I am using deepmerge 1.0.1 and python 3.7.7. When I am running the following code ```python from deepmerge ...
0.0
4ac5ff666d06cb072ff200ff4255d86d950b71a4
[ "deepmerge/tests/strategy/test_list.py::test_strategy_append_unique_nested_dict" ]
[ "deepmerge/tests/strategy/test_list.py::test_strategy_append_unique" ]
{ "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-10-21 06:00:20+00:00
mit
6,067
asphalt-framework__asphalt-50
diff --git a/docs/userguide/deployment.rst b/docs/userguide/deployment.rst index 6736615..7f9fd45 100644 --- a/docs/userguide/deployment.rst +++ b/docs/userguide/deployment.rst @@ -17,17 +17,18 @@ Running the launcher is very straightfoward: .. code-block:: bash - asphalt run yourconfig.yaml [your-overrides.yml...
asphalt-framework/asphalt
39ff21a7aa0785f7cdb28eebabd011277080f108
diff --git a/tests/test_cli.py b/tests/test_cli.py index c8c22f6..02247a9 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -88,6 +88,38 @@ logging: } +def test_run_bad_override(runner: CliRunner) -> None: + config = """\ + component: + type: does.not.exist:Component +""" + with run...
Configuration through the command line Asphalt can currently be configured through YAML files, but it would be great to also support configuration through CLI arguments and options, that would take precedence over YAML files.
0.0
39ff21a7aa0785f7cdb28eebabd011277080f108
[ "tests/test_cli.py::test_run_bad_override", "tests/test_cli.py::test_run_bad_path", "tests/test_cli.py::test_run_multiple_configs" ]
[ "tests/test_cli.py::test_run[safe-default]", "tests/test_cli.py::test_run[safe-override]", "tests/test_cli.py::test_run[unsafe-default]", "tests/test_cli.py::test_run[unsafe-override]", "tests/test_cli.py::TestServices::test_run_service[server]", "tests/test_cli.py::TestServices::test_run_service[client]"...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-11-21 13:35:39+00:00
apache-2.0
1,209
moogar0880__PyTrakt-108
diff --git a/HISTORY.rst b/HISTORY.rst index 250fe12..cbd7617 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,5 +1,10 @@ Release History ^^^^^^^^^^^^^^^ +2.10.0 (2019-06-25) ++++++++++++++++++++ + +* Add the ability to return a list of search results instead of their underlying media types (#106) + 2.9.1 (2019-02-2...
moogar0880/PyTrakt
490b465291cb546a903160007aa2eacc85cd4d7c
diff --git a/tests/mock_data/search.json b/tests/mock_data/search.json index 8bd87b2..1cd4a2c 100644 --- a/tests/mock_data/search.json +++ b/tests/mock_data/search.json @@ -1,36 +1,21 @@ { - "search?query=batman&type=movie": { + "search/movie?query=batman": { "GET": [ {"type":"movie","score...
score is not added in the Movie class Hi I can see there is a `score` field in the response but can't find it in in the `Movie` class in this library https://trakt.docs.apiary.io/#reference/search/text-query/get-text-query-results I want this field, is there a way to get it?
0.0
490b465291cb546a903160007aa2eacc85cd4d7c
[ "tests/test_episodes.py::test_get_episodes", "tests/test_episodes.py::test_episode_search", "tests/test_episodes.py::test_episode_search_with_year", "tests/test_episodes.py::test_get_episode", "tests/test_episodes.py::test_episode_comments", "tests/test_episodes.py::test_episode_ratings", "tests/test_ep...
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2019-06-26 02:06:30+00:00
apache-2.0
4,027
abs-tudelft__vhdeps-22
diff --git a/vhdeps/targets/ghdl.py b/vhdeps/targets/ghdl.py index 3e0e2b8..ff426a1 100644 --- a/vhdeps/targets/ghdl.py +++ b/vhdeps/targets/ghdl.py @@ -81,7 +81,22 @@ def add_arguments(parser): 'regardless of whether it passed or not. If there are multiple test ' 'cases, gtkwave is launched for the f...
abs-tudelft/vhdeps
f2b55a77340e99d13e1adea753c63d10f2b06d79
diff --git a/tests/test_ghdl.py b/tests/test_ghdl.py index a02b2a8..9e16da5 100644 --- a/tests/test_ghdl.py +++ b/tests/test_ghdl.py @@ -2,6 +2,7 @@ from unittest import TestCase, skipIf from unittest.mock import patch +import re import os import tempfile from plumbum import local @@ -254,6 +255,22 @@ class Test...
Passing arbitrary arguments to GHDL Sometimes one might want to pass some extra arguments to GHDL, especially with the GCC backend to pass additional compiler flags. There is currently no command-line syntax for this.
0.0
f2b55a77340e99d13e1adea753c63d10f2b06d79
[ "tests/test_ghdl.py::TestGhdlSpecific::test_extra_options" ]
[ "tests/test_ghdl.py::TestGhdlSpecific::test_analyze_error", "tests/test_ghdl.py::TestGhdlSpecific::test_elaborate_error", "tests/test_ghdl.py::TestGhdlSpecific::test_multi_version", "tests/test_ghdl.py::TestGhdlSpecific::test_no_ghdl", "tests/test_ghdl.py::TestGhdlSpecific::test_no_plumbum", "tests/test_g...
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2019-07-12 14:41:55+00:00
apache-2.0
860
ogawa-ros__necstdb-27
diff --git a/necstdb/necstdb.py b/necstdb/necstdb.py index 05c1bb3..9715f1e 100644 --- a/necstdb/necstdb.py +++ b/necstdb/necstdb.py @@ -7,20 +7,20 @@ timestamp), various kinds of weather data (temperature + humidity + wind speed + direction + ... + timestamp), etc. """ - -from typing import Union, List, Tuple, Dic...
ogawa-ros/necstdb
fb254063d80c4f2a2c3047fe4a426e6de0ee6255
diff --git a/tests/test_necstdb.py b/tests/test_necstdb.py index bb5e9f6..7e70c58 100644 --- a/tests/test_necstdb.py +++ b/tests/test_necstdb.py @@ -53,10 +53,11 @@ DATA4_HEADER = { {"key": "array", "format": "3d", "size": 24}, ] } -DATA5 = ([[b"abc", b"def", b"ghi"]] for _ in range(55)) +DATA5 = ([[b"ab...
Data type "|S12" does not unpacked when opening db specifying Below works well ```python >>>db = necstdb.opendb(data_path) >>>obsmode = db.open_table("obsmode").read(astype="array") ``` However, ```python >>>db = necstdb.opendb(data_path) >>>obsmode = db.open_table("obsmode").read(astype="df") >>>prin...
0.0
fb254063d80c4f2a2c3047fe4a426e6de0ee6255
[ "tests/test_necstdb_recover.py::TestReadDatabase::test_ignore_trailing_pad_bytes" ]
[ "tests/test_necstdb.py::TestWriteDatabase::test_create_table", "tests/test_necstdb.py::TestWriteDatabase::test_write_table", "tests/test_necstdb.py::TestWriteDatabase::test_write_file", "tests/test_necstdb.py::TestReadDatabase::test_read_types", "tests/test_necstdb.py::TestReadDatabase::test_read_as_tuple",...
{ "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-10-18 14:35:53+00:00
mit
4,343
esphome__aioesphomeapi-840
diff --git a/aioesphomeapi/client.py b/aioesphomeapi/client.py index 63d23c5..dcb82df 100644 --- a/aioesphomeapi/client.py +++ b/aioesphomeapi/client.py @@ -928,6 +928,7 @@ class APIClient: tilt: float | None = None, stop: bool = False, ) -> None: + connection = self._get_connection() ...
esphome/aioesphomeapi
a3009097a8cec6132f70c9790a38b19b16348c05
diff --git a/tests/test_client.py b/tests/test_client.py index 2c290e5..b8b41fb 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -2280,3 +2280,55 @@ async def test_api_version_after_connection_closed( assert client.api_version == APIVersion(1, 9) await client.disconnect(force=True) assert ...
thousands of error entries in homeassistant Not sure what other details you need. Please ask and I will provide. Noticed MANY of these entries. Using lates ESPHome and HA versions. ``` File "/usr/src/homeassistant/homeassistant/components/esphome/manager.py", line 695, in execute_service entry_data.client....
0.0
a3009097a8cec6132f70c9790a38b19b16348c05
[ "tests/test_client.py::test_calls_after_connection_closed" ]
[ "tests/test_client.py::test_expected_name", "tests/test_client.py::test_connect_backwards_compat", "tests/test_client.py::test_finish_connection_wraps_exceptions_as_unhandled_api_error", "tests/test_client.py::test_connection_released_if_connecting_is_cancelled", "tests/test_client.py::test_request_while_ha...
{ "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2024-03-10 19:21:14+00:00
mit
2,194
pyasi__pybuildkite-70
diff --git a/pybuildkite/buildkite.py b/pybuildkite/buildkite.py index c89d8bd..1fd44b1 100644 --- a/pybuildkite/buildkite.py +++ b/pybuildkite/buildkite.py @@ -9,6 +9,7 @@ from pybuildkite.annotations import Annotations from pybuildkite.artifacts import Artifacts from pybuildkite.teams import Teams from pybuildkite...
pyasi/pybuildkite
fa356015ec0780a4fbd4cfa7f9c63f01590301b8
diff --git a/tests/test_buildkite.py b/tests/test_buildkite.py index 5bb9d1a..6f5e1db 100644 --- a/tests/test_buildkite.py +++ b/tests/test_buildkite.py @@ -11,6 +11,7 @@ from pybuildkite.buildkite import ( Teams, Users, Organizations, + Meta, ) from pybuildkite.exceptions import NoAcccessTokenExcep...
Create functionality for the 'meta' endpoint Create a new file and class to incorporate the [meta API](https://buildkite.com/docs/apis/rest-api/meta). - Create a new file called `meta.py` - Create a class called Meta - Return the Meta class from a method in [buildkite.py](https://github.com/pyasi/pybuildkite/blo...
0.0
fa356015ec0780a4fbd4cfa7f9c63f01590301b8
[ "tests/test_buildkite.py::test_access_token_not_set_raises_exception", "tests/test_buildkite.py::test_access_token_set", "tests/test_buildkite.py::test_eval[wrapper-Pipelines]", "tests/test_buildkite.py::test_eval[wrapper-Builds]", "tests/test_buildkite.py::test_eval[wrapper-Jobs]", "tests/test_buildkite....
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_added_files", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2021-10-02 00:50:01+00:00
bsd-2-clause
4,705
graycarl__hbkit-22
diff --git a/hbkit/__init__.py b/hbkit/__init__.py index 78596de..4d9613b 100644 --- a/hbkit/__init__.py +++ b/hbkit/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import import click -from . import core, random, short, watch, git, backup, pi, time, config +from . import core, ra...
graycarl/hbkit
52e10591b3db82364ded1bfe3829b4293beedf60
diff --git a/tests/test_ip.py b/tests/test_ip.py new file mode 100644 index 0000000..8040ee2 --- /dev/null +++ b/tests/test_ip.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +from __future__ import absolute_import +from builtins import * # noqa +import requests +from hbkit import ip + + +class MockGet(object): + + ...
Get current public IP Sample: ``` $ hbkit ip get-public 202.111.111.111 ```
0.0
52e10591b3db82364ded1bfe3829b4293beedf60
[ "tests/test_ip.py::test_get_public" ]
[]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_added_files", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2018-08-06 06:40:06+00:00
mit
2,676
geomet__geomet-101
diff --git a/geomet/esri.py b/geomet/esri.py index e68772d..1000243 100644 --- a/geomet/esri.py +++ b/geomet/esri.py @@ -111,7 +111,8 @@ def _dump_geojson_point(obj, srid=None): """ coordkey = "coordinates" coords = obj[coordkey] - srid = _extract_geojson_srid(obj) or srid + if srid is None: + ...
geomet/geomet
f4def96884c3c5f36fc9be98bc5e351e4aa5a3a6
diff --git a/geomet/tests/esri_test.py b/geomet/tests/esri_test.py index 10a7735..612c6e6 100644 --- a/geomet/tests/esri_test.py +++ b/geomet/tests/esri_test.py @@ -28,6 +28,13 @@ esri_json_mpt = { ], "spatialReference": {"wkid": 4326} } +esri_json_mpt_srid_26955 = { + "points": [ + [-97.06138, 32....
srid option for geomet.esri.dumps does not do anything The option for defining output srid for the esrijson geometry is actively ignored I have installed version 1.0.0 ```python import geomet.esri from pprint import pprint input_geojson = {'coordinates': [494252.595744681, 7066045.31914894], 'type': 'Point'} ...
0.0
f4def96884c3c5f36fc9be98bc5e351e4aa5a3a6
[ "geomet/tests/esri_test.py::TestGeoJSONtoEsriJSONCustomSRID::test_dumps_to_esrijson_multipoint_custom_srid", "geomet/tests/esri_test.py::TestGeoJSONtoEsriJSONCustomSRID::test_dumps_to_esrijson_point_custom_srid", "geomet/tests/esri_test.py::TestGeoJSONtoEsriJSONCustomSRID::test_dumps_to_esrijson_polygon_custom_...
[ "geomet/tests/esri_test.py::TestIOReaderWriter::test_io_dump", "geomet/tests/esri_test.py::TestIOReaderWriter::test_io_load", "geomet/tests/esri_test.py::TestEsriJSONtoGeoJSON::test_loads_empty_polygon_to_gj", "geomet/tests/esri_test.py::TestEsriJSONtoGeoJSON::test_loads_empty_polyline_to_gj", "geomet/tests...
{ "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2023-11-09 00:40:40+00:00
apache-2.0
2,443
google__capirca-266
diff --git a/capirca/lib/juniper.py b/capirca/lib/juniper.py index c0a36ad..875f782 100644 --- a/capirca/lib/juniper.py +++ b/capirca/lib/juniper.py @@ -163,7 +163,8 @@ class Term(aclgenerator.Term): 'daddr': 'ip-destination-address', 'protocol': 'ip-protocol', ...
google/capirca
2b1c3519255fa0940a464521197d80187b355570
diff --git a/tests/lib/juniper_test.py b/tests/lib/juniper_test.py index 2846360..95557c3 100644 --- a/tests/lib/juniper_test.py +++ b/tests/lib/juniper_test.py @@ -20,6 +20,7 @@ from absl.testing import absltest from unittest import mock from absl import logging +from absl.testing import parameterized from capirc...
Support multiple targets per header Based on https://github.com/google/capirca/wiki/Policy-format#header-section I was under the impression that a header could have multiple targets, for example: ``` header { target:: juniper testpol4 inet target:: juniper testpol6 inet6 } term default { comment:: "test"...
0.0
2b1c3519255fa0940a464521197d80187b355570
[ "tests/lib/juniper_test.py::JuniperTest::testMixedMIXED_TO_MIXED", "tests/lib/juniper_test.py::JuniperTest::testMixedMIXED_TO_V4", "tests/lib/juniper_test.py::JuniperTest::testMixedMIXED_TO_V6", "tests/lib/juniper_test.py::JuniperTest::testMixedPARTLY_UNSPECIFIED", "tests/lib/juniper_test.py::JuniperTest::t...
[ "tests/lib/juniper_test.py::JuniperTest::testAddressExclude", "tests/lib/juniper_test.py::JuniperTest::testArbitraryOptions", "tests/lib/juniper_test.py::JuniperTest::testBadFilterType", "tests/lib/juniper_test.py::JuniperTest::testBridgeFilterInetType", "tests/lib/juniper_test.py::JuniperTest::testBridgeFi...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2021-04-21 13:15:37+00:00
apache-2.0
2,564
project-receptor__receptor-satellite-5
diff --git a/receptor_satellite/response/messages.py b/receptor_satellite/response/messages.py index 23ee860..b16de05 100644 --- a/receptor_satellite/response/messages.py +++ b/receptor_satellite/response/messages.py @@ -30,12 +30,21 @@ def playbook_run_cancel_ack(playbook_run_id, status): } -def playbook_run_...
project-receptor/receptor-satellite
9c636515c06c01246641abbf4e786888d050fa9b
diff --git a/tests/test_response_queue.py b/tests/test_response_queue.py index 170a8dc..d53ddef 100644 --- a/tests/test_response_queue.py +++ b/tests/test_response_queue.py @@ -13,7 +13,10 @@ PLAYBOOK_RUN_COMPLETED_TEST_CASES = [ ), ( ("some-uuid", constants.RESULT_FAILURE, None, None), - mess...
Implement v2 playbook_run_finished [response] run playbook finished This message is sent for each host individually when a Playbook execution on a given host finishes. ``` { "type": "playbook_run_finished", // id of the remediation execution "playbook_run_id": "a30f1d7c-ba75-465b-a217-63f3f553836f",...
0.0
9c636515c06c01246641abbf4e786888d050fa9b
[ "tests/test_response_queue.py::test_playbook_run_completed[playbook_run_completed_scenario0]", "tests/test_response_queue.py::test_playbook_run_completed[playbook_run_completed_scenario1]", "tests/test_response_queue.py::test_playbook_run_completed[playbook_run_completed_scenario2]", "tests/test_response_queu...
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-09-18 10:31:11+00:00
apache-2.0
4,682
smok-serwis__firanka-2
diff --git a/README.md b/README.md index c71f28c..f14d95a 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,17 @@ By definition, _ModuloSeries_ has the domain of all real numbers. Note that someOtherSeries's domain length must be non-zero and finite. Otherwise _ValueError_ will be thrown. +## LinearInterpolationS...
smok-serwis/firanka
5888250487fd93c5251a0dfafd6173895e599550
diff --git a/tests/test_range.py b/tests/test_range.py index 5463f90..c8bc935 100644 --- a/tests/test_range.py +++ b/tests/test_range.py @@ -1,6 +1,8 @@ # coding=UTF-8 from __future__ import print_function, absolute_import, division + import unittest + from firanka.ranges import Range @@ -38,7 +40,7 @@ class Te...
Add a linear interpolation series Much like `DiscreteSeries` but can perform linear interpolation
0.0
5888250487fd93c5251a0dfafd6173895e599550
[ "tests/test_range.py::TestRange::test_constructor", "tests/test_range.py::TestRange::test_contains", "tests/test_range.py::TestRange::test_intersection", "tests/test_range.py::TestRange::test_isempty", "tests/test_range.py::TestRange::test_slicing", "tests/test_range.py::TestRange::test_str_and_repr_and_b...
[]
{ "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 }
2017-12-09 07:47:03+00:00
mit
5,569
caronc__apprise-324
diff --git a/.gitignore b/.gitignore index 11f190a..0315c5b 100644 --- a/.gitignore +++ b/.gitignore @@ -67,3 +67,8 @@ target/ #PyCharm .idea + +#PyDev (Eclipse) +.project +.pydevproject +.settings diff --git a/apprise/utils.py b/apprise/utils.py index 21f2c49..4b4833b 100644 --- a/apprise/utils.py +++ b/apprise/ut...
caronc/apprise
2c2722f61f9f983827c8246943f0462098e5a0ed
diff --git a/test/test_utils.py b/test/test_utils.py index b187da0..37c2ba7 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -532,6 +532,8 @@ def test_is_hostname(): assert utils.is_hostname('yahoo.ca.') == 'yahoo.ca' assert utils.is_hostname('valid-dashes-in-host.ca') == \ 'valid-dashes-i...
'Unparseable E-Mail URL' error for hostnames containing underscore With underscore: ```bash $ docker run --rm caronc/apprise:latest /usr/local/bin/apprise --body='hello world' \ 'mailto://smtp_service:25/?from=foo@localhost&to=bar@localhost' 2020-11-22 16:33:16,297 - ERROR - Unparseable E-Mail URL mailto://smtp_s...
0.0
2c2722f61f9f983827c8246943f0462098e5a0ed
[ "test/test_utils.py::test_is_hostname", "test/test_utils.py::test_is_email" ]
[ "test/test_utils.py::test_parse_qsd", "test/test_utils.py::test_parse_url", "test/test_utils.py::test_parse_bool", "test/test_utils.py::test_is_ipaddr", "test/test_utils.py::test_parse_emails", "test/test_utils.py::test_parse_urls", "test/test_utils.py::test_parse_list", "test/test_utils.py::test_excl...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2020-11-22 17:34:28+00:00
mit
1,504
jupyterhub__oauthenticator-449
diff --git a/docs/source/github.md b/docs/source/github.md index d5e2663..170b51e 100644 --- a/docs/source/github.md +++ b/docs/source/github.md @@ -39,3 +39,33 @@ To use this expanded user information, you will need to subclass your current spawner and modify the subclass to read these fields from `auth_state` and t...
jupyterhub/oauthenticator
d8ea0b6f11dbc3dac35aada9d17aef6ccd2da6a4
diff --git a/oauthenticator/tests/test_github.py b/oauthenticator/tests/test_github.py index 0211cd4..16c04c9 100644 --- a/oauthenticator/tests/test_github.py +++ b/oauthenticator/tests/test_github.py @@ -7,6 +7,7 @@ from urllib.parse import parse_qs from urllib.parse import urlparse from pytest import fixture +fro...
[GitHub] We can authorize organizations, but what about teams within them? Currently GitHub authentication is setup to whitelist individual users or entire organizations: https://github.com/jupyterhub/oauthenticator/blob/master/oauthenticator/github.py See here for the implementation: https://zero-to-jupyterhub.re...
0.0
d8ea0b6f11dbc3dac35aada9d17aef6ccd2da6a4
[ "oauthenticator/tests/test_github.py::test_build_check_membership_url[blue-texas-https://api.github.com/orgs/blue/members/texas]", "oauthenticator/tests/test_github.py::test_build_check_membership_url[blue:alpha-tucker-https://api.github.com/orgs/blue/teams/alpha/members/tucker]", "oauthenticator/tests/test_git...
[ "oauthenticator/tests/test_github.py::test_deprecated_config" ]
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2021-08-04 15:03:45+00:00
bsd-3-clause
3,376
lhotse-speech__lhotse-724
diff --git a/lhotse/dataset/sampling/bucketing.py b/lhotse/dataset/sampling/bucketing.py index 04541b37..a2ad7ba3 100644 --- a/lhotse/dataset/sampling/bucketing.py +++ b/lhotse/dataset/sampling/bucketing.py @@ -422,23 +422,55 @@ def _create_buckets_equal_duration_single( """ total_duration = np.sum(c.duration...
lhotse-speech/lhotse
1c137cf491f835dca25be92d5bf89272ec37b8fe
diff --git a/test/dataset/sampling/test_sampling.py b/test/dataset/sampling/test_sampling.py index 4c922d40..1ed453ef 100644 --- a/test/dataset/sampling/test_sampling.py +++ b/test/dataset/sampling/test_sampling.py @@ -467,19 +467,29 @@ def test_bucketing_sampler_single_cuts_equal_duration(): ) # Ensure tha...
BucketingSampler with equal_duration drops an arbitrary(?) number of cuts. If you use the BucketingSampler with num_buckets, especially with even number of buckets, though I think you can also get it to work for an odd number of buckets, at the very least the last cut is dropped, but if you choose the durations and num...
0.0
1c137cf491f835dca25be92d5bf89272ec37b8fe
[ "test/dataset/sampling/test_sampling.py::test_bucketing_sampler_single_cuts_equal_duration" ]
[ "test/dataset/sampling/test_sampling.py::test_single_cut_sampler_shuffling[SimpleCutSampler]", "test/dataset/sampling/test_sampling.py::test_single_cut_sampler_shuffling[SingleCutSampler]", "test/dataset/sampling/test_sampling.py::test_single_cut_sampler_shuffling[DynamicCutSampler]", "test/dataset/sampling/t...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2022-05-27 00:33:01+00:00
apache-2.0
3,561
airbrake__pybrake-77
diff --git a/pybrake/notifier.py b/pybrake/notifier.py index 9218c51..c673108 100644 --- a/pybrake/notifier.py +++ b/pybrake/notifier.py @@ -295,7 +295,7 @@ class Notifier: needed = "/site-packages/" ind = s.find(needed) if ind > -1: - s = "[SITE_PACKAGES]/" + s[ind...
airbrake/pybrake
6970c56dfd3cf8caba339321f020ebc04d8129b0
diff --git a/pybrake/test_notifier.py b/pybrake/test_notifier.py index e7bc2d9..8774ef8 100644 --- a/pybrake/test_notifier.py +++ b/pybrake/test_notifier.py @@ -205,3 +205,9 @@ def _test_rate_limited(): notice = future.result() assert notice["error"] == "IP is rate limited" + +def test_clean_filename(): + ...
[SITE_PACKAGES] -> /SITE_PACKAGES https://github.com/airbrake/pybrake/blob/master/pybrake/notifier.py#L298
0.0
6970c56dfd3cf8caba339321f020ebc04d8129b0
[ "pybrake/test_notifier.py::test_clean_filename" ]
[ "pybrake/test_notifier.py::test_build_notice_from_exception", "pybrake/test_notifier.py::test_build_notice_from_str", "pybrake/test_notifier.py::test_build_notice_from_none", "pybrake/test_notifier.py::test_environment", "pybrake/test_notifier.py::test_root_directory", "pybrake/test_notifier.py::test_filt...
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2019-03-23 12:37:51+00:00
mit
976
hynek__doc2dash-201
diff --git a/CHANGELOG.md b/CHANGELOG.md index aa5dda5..12fe351 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Support for 2x icons using the `--icon-2x` option. [#200](https://github.com/hynek/doc2dash/pull/200) +-...
hynek/doc2dash
e8a4f374588dfb054cb1d984c9c5e72821588528
diff --git a/tests/test_docsets.py b/tests/test_docsets.py index edbcae1..572419e 100644 --- a/tests/test_docsets.py +++ b/tests/test_docsets.py @@ -28,6 +28,7 @@ class TestPrepareDocset: index_page=None, enable_js=False, online_redirect_url=None, + playground_url=None,...
Add support for Docset Playgrounds https://kapeli.com/docsets#docsetPlaygrounds
0.0
e8a4f374588dfb054cb1d984c9c5e72821588528
[ "tests/test_docsets.py::TestPrepareDocset::test_plist_creation", "tests/test_docsets.py::TestPrepareDocset::test_with_index_page", "tests/test_docsets.py::TestPrepareDocset::test_with_javascript_enabled", "tests/test_docsets.py::TestPrepareDocset::test_with_online_redirect_url", "tests/test_docsets.py::Test...
[ "tests/test_main.py::test_intersphinx", "tests/test_main.py::TestArguments::test_fails_with_unknown_icon", "tests/test_main.py::TestArguments::test_fails_with_missing_index_page", "tests/test_main.py::TestArguments::test_handles_unknown_doc_types", "tests/test_main.py::TestArguments::test_quiet_and_verbose_...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2024-01-14 13:01:38+00:00
mit
2,770
nion-software__nionutils-19
diff --git a/nion/utils/Converter.py b/nion/utils/Converter.py index 8bfacb2..178a127 100644 --- a/nion/utils/Converter.py +++ b/nion/utils/Converter.py @@ -43,7 +43,7 @@ class IntegerToStringConverter(ConverterLike[int, str]): def convert_back(self, formatted_value: typing.Optional[str]) -> typing.Optional[int]...
nion-software/nionutils
c4b09457ab9433dde6f224279fe8f35265c6c041
diff --git a/nion/utils/test/Converter_test.py b/nion/utils/test/Converter_test.py index 2fcbf1b..65b8717 100644 --- a/nion/utils/test/Converter_test.py +++ b/nion/utils/test/Converter_test.py @@ -23,6 +23,12 @@ class TestConverter(unittest.TestCase): self.assertAlmostEqual(converter.convert_back(converter.con...
Regex in IntegerToStringConverter not handling negative numbers https://github.com/nion-software/nionutils/blob/c4b09457ab9433dde6f224279fe8f35265c6c041/nion/utils/Converter.py#L46 This regex is not sufficient to properly handle negative numbers. It will also fail to convert floating point numbers. See the following...
0.0
c4b09457ab9433dde6f224279fe8f35265c6c041
[ "nion/utils/test/Converter_test.py::TestConverter::test_integer_to_string_converter" ]
[ "nion/utils/test/Converter_test.py::TestConverter::test_float_to_scaled_integer_with_negative_min" ]
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2022-05-13 12:15:05+00:00
apache-2.0
4,177
hazelcast__hazelcast-python-client-257
diff --git a/hazelcast/serialization/input.py b/hazelcast/serialization/input.py index dcc68ca..cc6c387 100644 --- a/hazelcast/serialization/input.py +++ b/hazelcast/serialization/input.py @@ -36,7 +36,14 @@ class _ObjectDataInput(ObjectDataInput): self._pos += _len def skip_bytes(self, count): - ...
hazelcast/hazelcast-python-client
766c61257c44094cd61efe057697fa45e8c64487
diff --git a/tests/serialization/input_test.py b/tests/serialization/input_test.py index 71ae9a6..c17da70 100644 --- a/tests/serialization/input_test.py +++ b/tests/serialization/input_test.py @@ -51,6 +51,21 @@ class InputTestCase(unittest.TestCase): self.assertEqual(0, initial_pos) self.assertEqual(...
Implement ObjectDataInput#skip_bytes It seems that we didn't implement `skip_bytes` method yet. We should do that similar to the Java client. https://github.com/hazelcast/hazelcast/blob/master/hazelcast/src/main/java/com/hazelcast/internal/serialization/impl/ByteArrayObjectDataInput.java#L598
0.0
766c61257c44094cd61efe057697fa45e8c64487
[ "tests/serialization/input_test.py::InputTestCase::test_skip_bytes", "tests/serialization/input_test.py::InputTestCase::test_skip_bytes_when_count_greater_than_remaining", "tests/serialization/input_test.py::InputTestCase::test_skip_bytes_when_count_is_not_positive" ]
[ "tests/serialization/input_test.py::InputTestCase::test_bool_array", "tests/serialization/input_test.py::InputTestCase::test_char_be", "tests/serialization/input_test.py::InputTestCase::test_char_le", "tests/serialization/input_test.py::InputTestCase::test_int_array", "tests/serialization/input_test.py::Inp...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2020-12-02 09:48:01+00:00
apache-2.0
2,708
raamana__hiwenet-12
diff --git a/hiwenet/__init__.py b/hiwenet/__init__.py index 07c8a69..98bbb16 100644 --- a/hiwenet/__init__.py +++ b/hiwenet/__init__.py @@ -4,16 +4,19 @@ """ +__all__ = ['extract', 'pairwise_dist', 'run_cli', 'more_metrics'] + from sys import version_info if version_info.major==2 and version_info.minor==7: - ...
raamana/hiwenet
7cf61bb7d3531408ef9c77fd81e1d15122e1bfa3
diff --git a/hiwenet/test_hiwenet.py b/hiwenet/test_hiwenet.py index e1df71e..afa4ea6 100644 --- a/hiwenet/test_hiwenet.py +++ b/hiwenet/test_hiwenet.py @@ -9,8 +9,8 @@ from os.path import join as pjoin, exists as pexists, abspath from sys import version_info if version_info.major==2 and version_info.minor==7: - ...
Broadening options for weight computation Using the new feature of arbitrary callable, implement more useful weights - [ ] such as difference in medians, - [ ] correlation, thresholding etc - [ ] other of interest
0.0
7cf61bb7d3531408ef9c77fd81e1d15122e1bfa3
[ "hiwenet/test_hiwenet.py::test_more_metrics", "hiwenet/test_hiwenet.py::test_too_few_groups", "hiwenet/test_hiwenet.py::test_too_few_values", "hiwenet/test_hiwenet.py::test_invalid_trim_perc", "hiwenet/test_hiwenet.py::test_invalid_weight_method", "hiwenet/test_hiwenet.py::test_trim_not_too_few_values", ...
[]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2017-11-12 04:44:48+00:00
mit
5,148
tableau__document-api-python-15
diff --git a/tableaudocumentapi/datasource.py b/tableaudocumentapi/datasource.py index 93ebe55..617004a 100644 --- a/tableaudocumentapi/datasource.py +++ b/tableaudocumentapi/datasource.py @@ -72,7 +72,7 @@ class Datasource(object): """ # save the file - self._datasourceTree.write(self._filen...
tableau/document-api-python
07aad9550d3d36a4d74c4751832c50fe81882a01
diff --git a/test.py b/test.py index fd7d1bd..5606005 100644 --- a/test.py +++ b/test.py @@ -17,6 +17,7 @@ TABLEAU_10_WORKBOOK = '''<?xml version='1.0' encoding='utf-8' ?><workbook source TABLEAU_CONNECTION_XML = ET.fromstring( '''<connection authentication='sspi' class='sqlserver' dbname='TestV1' odbc-native-pro...
Tabcmd publish with .twb created via Document API I can successfully create a .twb file via the Document API, but attempting to publish it to my Tableau Server via Tabcmd results in an unexpected error: **Bad request unexpected error occurred opening the packaged workbook.** Attached is the template workbook cre...
0.0
07aad9550d3d36a4d74c4751832c50fe81882a01
[ "test.py::DatasourceModelTests::test_save_has_xml_declaration", "test.py::WorkbookModelV10Tests::test_save_has_xml_declaration" ]
[ "test.py::HelperMethodTests::test_is_valid_file_with_invalid_inputs", "test.py::HelperMethodTests::test_is_valid_file_with_valid_inputs", "test.py::ConnectionParserTests::test_can_extract_federated_connections", "test.py::ConnectionParserTests::test_can_extract_legacy_connection", "test.py::ConnectionModelT...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2016-06-02 00:21:16+00:00
mit
5,823
stravalib__stravalib-454
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c1e950f..26e03a2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ default_stages: [commit] repos: # Misc commit checks - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 ...
stravalib/stravalib
c6f8ad52994bc3e9f202a669087b82f560b5ed5a
diff --git a/src/stravalib/tests/unit/test_model.py b/src/stravalib/tests/unit/test_model.py index b9c6074..ec01344 100644 --- a/src/stravalib/tests/unit/test_model.py +++ b/src/stravalib/tests/unit/test_model.py @@ -225,6 +225,23 @@ def test_backward_compatible_attribute_lookup( assert not hasattr(lookup_expr...
ENH: Graceful handling of Pydantic validation errors (for unexpected sports type / activity type) ### Feature Type - [ ] Adding new functionality to stravalib - [X] Changing existing functionality in stravalib - [ ] Removing existing functionality in stravalib ### Problem Description For unexpected activity/sport...
0.0
c6f8ad52994bc3e9f202a669087b82f560b5ed5a
[ "src/stravalib/tests/unit/test_model.py::test_relaxed_activity_type_validation[Activity-type-FooBar-Workout]", "src/stravalib/tests/unit/test_model.py::test_relaxed_activity_type_validation[Activity-sport_type-FooBar-Workout]", "src/stravalib/tests/unit/test_model.py::test_relaxed_activity_type_validation[Segme...
[ "src/stravalib/tests/unit/test_model.py::TestLegacyModelSerialization::test_legacy_deserialize[Club-name-foo]", "src/stravalib/tests/unit/test_model.py::TestLegacyModelSerialization::test_legacy_from_dict[Club-name-foo]", "src/stravalib/tests/unit/test_model.py::TestLegacyModelSerialization::test_legacy_to_dict...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2024-01-16 17:00:24+00:00
apache-2.0
5,749
Deric-W__ascii_progress-9
diff --git a/ascii_progress/__main__.py b/ascii_progress/__main__.py index f5d1e15..b550f91 100644 --- a/ascii_progress/__main__.py +++ b/ascii_progress/__main__.py @@ -16,7 +16,7 @@ for frames in ( (">))'>", " >))'>", " >))'>", " <'((<", " <'((<", "<'((<") ): sys.stdout.write("Working ")...
Deric-W/ascii_progress
a5f5f2815ba25cdfdcf57a0f02c025ef9dc2a3b0
diff --git a/tests/test_bar.py b/tests/test_bar.py index bfab94b..bc53278 100644 --- a/tests/test_bar.py +++ b/tests/test_bar.py @@ -5,8 +5,10 @@ import unittest import unittest.mock from io import StringIO +from typing import ContextManager from ascii_progress.bar import ( LAZY_FORMATTER, + BarContext, ...
improved context managers Problem: The messages displayed when using `Spinner` or `Bar` as context managers are hard coded. Solution: Add a `.handle_exceptions(message, error)` method to both classes which returns a context manager.
0.0
a5f5f2815ba25cdfdcf57a0f02c025ef9dc2a3b0
[ "tests/test_bar.py::TestBar::test_iter", "tests/test_bar.py::TestBar::test_handle_exceptions", "tests/test_bar.py::TestBar::test_eq", "tests/test_bar.py::TestBarFormat::test_generate_bar", "tests/test_bar.py::TestBarFormat::test_bar", "tests/test_bar.py::TestBarFormat::test_with_optimized_wrapper", "tes...
[]
{ "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 }
2021-10-30 12:16:54+00:00
mit
197
nithinmurali__pygsheets-272
diff --git a/.gitignore b/.gitignore index 9bc512f..3556492 100644 --- a/.gitignore +++ b/.gitignore @@ -1,22 +1,28 @@ +# Python *.pyc -.DS_Store -.coverage - +build/ +dist/ venv/ -.idea/ .cache/ .pytest_cache/ -build/ -dist/ -# docs/ +pygsheets.egg-info/ +.pytest_cache/ + +# File types *.json *.csv + +# Tests t...
nithinmurali/pygsheets
136c295143f6365bdbca70328a876b1cc66baab3
diff --git a/test/authorization_tests.py b/test/authorization_tests.py index eee5b06..16389cb 100644 --- a/test/authorization_tests.py +++ b/test/authorization_tests.py @@ -26,4 +26,8 @@ class TestAuthorization(object): self.sheet = c.create('test_sheet') self.sheet.share('pygsheettest@gmail.com') -...
RuntimeError: dictionary changed size during iteration https://github.com/nithinmurali/pygsheets/blob/0e2468fe9a1957b19f1cebe3667c601c32942bbd/pygsheets/authorization.py#L94 You can't delete keys from a dictionary you are currently iterating.
0.0
136c295143f6365bdbca70328a876b1cc66baab3
[ "test/authorization_tests.py::TestAuthorization::test_deprecated_kwargs_removal" ]
[ "test/authorization_tests.py::TestAuthorization::test_service_account_authorization", "test/authorization_tests.py::TestAuthorization::test_user_credentials_loading" ]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2018-08-23 06:30:01+00:00
mit
4,222
openqasm__oqpy-20
diff --git a/oqpy/base.py b/oqpy/base.py index 4a45796..43dece9 100644 --- a/oqpy/base.py +++ b/oqpy/base.py @@ -60,12 +60,29 @@ class OQPyExpression: """Helper method to produce a binary expression.""" return OQPyBinaryExpression(ast.BinaryOperator[op_name], first, second) + @staticmethod + d...
openqasm/oqpy
32cb438a101700af6c2b5c9be7d86d5ee2314ee6
diff --git a/tests/test_directives.py b/tests/test_directives.py index 24115ef..e10271e 100644 --- a/tests/test_directives.py +++ b/tests/test_directives.py @@ -22,6 +22,7 @@ import numpy as np import pytest from openpulse.printer import dumps +import oqpy from oqpy import * from oqpy.base import expr_matches fr...
Support classical arguments and return types for defcals
0.0
32cb438a101700af6c2b5c9be7d86d5ee2314ee6
[ "tests/test_directives.py::test_binary_expressions", "tests/test_directives.py::test_defcals", "tests/test_directives.py::test_ramsey_example", "tests/test_directives.py::test_program_add" ]
[ "tests/test_directives.py::test_version_string", "tests/test_directives.py::test_variable_declaration", "tests/test_directives.py::test_complex_numbers_declaration", "tests/test_directives.py::test_non_trivial_variable_declaration", "tests/test_directives.py::test_variable_assignment", "tests/test_directi...
{ "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 }
2022-11-10 03:26:44+00:00
apache-2.0
4,418
SAP__python-pyodata-232
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f876b9..7175a5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +- model: fix edge case for Edm.DateTimeOffset.from_json() without offset - Petr Hanak + ## [1.10.0] ...
SAP/python-pyodata
5d1490871f4b824a82dd6eaa148444a99ea4f47d
diff --git a/tests/test_model_v2.py b/tests/test_model_v2.py index 5bdef48..258dde7 100644 --- a/tests/test_model_v2.py +++ b/tests/test_model_v2.py @@ -690,6 +690,9 @@ def test_traits_datetimeoffset(type_date_time_offset): def test_traits_datetimeoffset_to_literal(type_date_time_offset): """Test Edm.DateTimeOffs...
Malformed value for primitive Edm.DateTimeOffset type We are using pyodata v1.7.1 the whole time and I'm tried to update to the latest v1.10.0 version. But now I get this error when querying data from the odata service: ``` Traceback (most recent call last): File "/workspace/tmp/venv/odatavenv/lib/python3.10/sit...
0.0
5d1490871f4b824a82dd6eaa148444a99ea4f47d
[ "tests/test_model_v2.py::test_traits_datetimeoffset_from_json" ]
[ "tests/test_model_v2.py::test_edmx", "tests/test_model_v2.py::test_schema_entity_type_nullable", "tests/test_model_v2.py::test_schema_entity_type_fixed_length[Name-False-Name", "tests/test_model_v2.py::test_schema_entity_type_fixed_length[ID-True-Customer", "tests/test_model_v2.py::test_schema_entity_type_f...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2022-09-23 14:08:18+00:00
apache-2.0
666