instance_id
stringlengths
10
57
patch
stringlengths
261
37.7k
repo
stringlengths
7
53
base_commit
stringlengths
40
40
hints_text
stringclasses
301 values
test_patch
stringlengths
212
2.22M
problem_statement
stringlengths
23
37.7k
version
stringclasses
1 value
environment_setup_commit
stringlengths
40
40
FAIL_TO_PASS
listlengths
1
4.94k
PASS_TO_PASS
listlengths
0
7.82k
meta
dict
created_at
stringlengths
25
25
license
stringclasses
8 values
__index_level_0__
int64
0
6.41k
Dorthu__openapi3-94
diff --git a/openapi3/schemas.py b/openapi3/schemas.py index 0796552..d454e47 100644 --- a/openapi3/schemas.py +++ b/openapi3/schemas.py @@ -8,6 +8,7 @@ TYPE_LOOKUP = { "object": dict, "string": str, "boolean": bool, + "number": float, }
Dorthu/openapi3
fba9f2785a822e951e9e13f44486840f4e03d80e
diff --git a/tests/conftest.py b/tests/conftest.py index 7dffe2a..ffa7925 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -213,6 +213,7 @@ def with_external_docs(): @pytest.fixture + def with_openapi_310_references(): """ Provides a spec with OpenAPI 3.1.0 expanded Reference Objects @@ -226,3 ...
[Bug] - Expects incorrect type on parameter default Trying to parse a spec containing a parameter component with a numeric default with incorrectly throw and states that a string default was expected. Version: `1.7.0` Minimal example spec: ```yaml openapi: 3.0.0 info: title: Test api description: te...
0.0
fba9f2785a822e951e9e13f44486840f4e03d80e
[ "tests/parsing_test.py::test_schema_default_types" ]
[ "tests/parsing_test.py::test_parse_from_yaml", "tests/parsing_test.py::test_parsing_fails", "tests/parsing_test.py::test_parsing_broken_reference", "tests/parsing_test.py::test_parsing_wrong_parameter_name", "tests/parsing_test.py::test_parsing_dupe_operation_id", "tests/parsing_test.py::test_parsing_para...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2023-03-08 03:22:35+00:00
bsd-3-clause
203
DropD__reentry-50
diff --git a/README.rst b/README.rst index 79101b2..6b33db1 100644 --- a/README.rst +++ b/README.rst @@ -20,7 +20,7 @@ Features Note that ``reentry_register`` creates a *build-time* dependency on ``reentry``. The suggested way to resolve that is using the method described in `PEP518 <https://www.python.org/dev/peps/...
DropD/reentry
06cabf7841d1fdb78d68cbd8395598d16d8ab286
diff --git a/reentry/tests/test_config.py b/reentry/tests/test_config.py index a18d4e6..7c600cf 100644 --- a/reentry/tests/test_config.py +++ b/reentry/tests/test_config.py @@ -6,6 +6,7 @@ try: except ImportError: from pathlib import Path +import os import pytest # pylint: disable=unused-import import six f...
What is the rational behind pkg_path_filename in get_datafile()? Hi :) First of all, thanks for a great package! I would like to know if the name of the filename created in get_datafile function (config.py) has some important meaning and weather of not it can be changed. This name can be a little problematic whe...
0.0
06cabf7841d1fdb78d68cbd8395598d16d8ab286
[ "reentry/tests/test_config.py::test_get_config", "reentry/tests/test_config.py::test_get_config_with_env_var" ]
[ "reentry/tests/test_config.py::test_find_config", "reentry/tests/test_config.py::test_make_config_parser", "reentry/tests/test_config.py::test_get_datafile" ]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2019-04-27 07:31:22+00:00
mit
204
Duke-GCB__DukeDSClient-61
diff --git a/ddsc/core/filedownloader.py b/ddsc/core/filedownloader.py index 5049aac..e8ab7f5 100644 --- a/ddsc/core/filedownloader.py +++ b/ddsc/core/filedownloader.py @@ -106,8 +106,9 @@ class FileDownloader(object): Write out a empty file so the workers can seek to where they should write and write their da...
Duke-GCB/DukeDSClient
81d8fc03fdbb9209d949f319bf4b4691b1615a59
diff --git a/ddsc/core/tests/test_fileuploader.py b/ddsc/core/tests/test_fileuploader.py index f8ca72b..44bfb7e 100644 --- a/ddsc/core/tests/test_fileuploader.py +++ b/ddsc/core/tests/test_fileuploader.py @@ -47,6 +47,7 @@ class TestParallelChunkProcessor(TestCase): (100, 900000, 9000), (125, ...
“range() step argument must not be zero” Crash at approx. 30% completion, uploading a folder to a new project: “range() step argument must not be zero” <img width="806" alt="screen shot 2016-05-25 at 1 31 11 pm" src="https://cloud.githubusercontent.com/assets/11540881/15551266/38d08f16-2283-11e6-9708-c5f93edb99d9.png"...
0.0
81d8fc03fdbb9209d949f319bf4b4691b1615a59
[ "ddsc/core/tests/test_fileuploader.py::TestParallelChunkProcessor::test_determine_num_chunks" ]
[ "ddsc/core/tests/test_fileuploader.py::TestFileUploader::test_make_chunk_processor_with_none", "ddsc/core/tests/test_fileuploader.py::TestFileUploader::test_make_chunk_processor_with_one", "ddsc/core/tests/test_fileuploader.py::TestFileUploader::test_make_chunk_processor_with_two", "ddsc/core/tests/test_fileu...
{ "failed_lite_validators": [ "has_hyperlinks", "has_media", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2016-05-25 18:51:33+00:00
mit
205
E3SM-Project__zstash-168
diff --git a/zstash/extract.py b/zstash/extract.py index 5382609..9918bf4 100644 --- a/zstash/extract.py +++ b/zstash/extract.py @@ -57,7 +57,11 @@ def extract(keep_files: bool = True): logger.error(tar) else: verb: str = "extracting" if keep_files else "checking" - logger.info("No fai...
E3SM-Project/zstash
fb39bbc5272177e1de7f5f65e767b6013340d981
diff --git a/tests/test_check.py b/tests/test_check.py index 6bc3910..1a97239 100644 --- a/tests/test_check.py +++ b/tests/test_check.py @@ -189,7 +189,7 @@ class TestCheck(TestZstash): ) self.assertEqualOrStop( output + err, - "INFO: Opening tar archive {}/000000.tar\nINFO: Ch...
zstash check reports success even if exceptions occur `zstash check` reports success even if exceptions occur. Exceptions like the following may occur, but `zstash check` still ends with `INFO: No failures detected when checking the files.`: ``` Process Process-3: Traceback (most recent call last): File "/glob...
0.0
fb39bbc5272177e1de7f5f65e767b6013340d981
[ "tests/test_check.py::TestCheck::testCheckKeepTars" ]
[]
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2021-11-19 23:44:15+00:00
bsd-3-clause
207
ECCO-GROUP__ECCOv4-py-63
diff --git a/ecco_v4_py/get_section_masks.py b/ecco_v4_py/get_section_masks.py index a03db6f..6ffa665 100644 --- a/ecco_v4_py/get_section_masks.py +++ b/ecco_v4_py/get_section_masks.py @@ -90,6 +90,9 @@ def get_section_endpoints(section_name): elif section_name == 'icelandfaroe': pt1 = [-16, 65] ...
ECCO-GROUP/ECCOv4-py
82c2327427fba0d90acdf7b87ffab607387fa331
diff --git a/ecco_v4_py/test/test_section_masks.py b/ecco_v4_py/test/test_section_masks.py new file mode 100644 index 0000000..9610842 --- /dev/null +++ b/ecco_v4_py/test/test_section_masks.py @@ -0,0 +1,11 @@ + +from __future__ import division, print_function +import ecco_v4_py as ecco + + +def test_section_endpoints(...
'Faroe Scotland' is included in the get_available_sections() but not included in get_section_endpoints() get_section_endpoints() returns and error for 'Faroe Scotland'. I think this is because the coordinates for this section is actually not included in the function. I assume that the info exists but was accidentally r...
0.0
82c2327427fba0d90acdf7b87ffab607387fa331
[ "ecco_v4_py/test/test_section_masks.py::test_section_endpoints" ]
[]
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2019-08-25 11:55:09+00:00
mit
208
EFForg__starttls-policy-cli-24
diff --git a/starttls_policy_cli/configure.py b/starttls_policy_cli/configure.py index 8ec010d..bb13dec 100644 --- a/starttls_policy_cli/configure.py +++ b/starttls_policy_cli/configure.py @@ -20,8 +20,9 @@ class ConfigGenerator(object): """ __metaclass__ = abc.ABCMeta - def __init__(self, policy_dir): +...
EFForg/starttls-policy-cli
be1143dcfb2d54fe638a850f63f603aedb068e0c
diff --git a/starttls_policy_cli/tests/configure_test.py b/starttls_policy_cli/tests/configure_test.py index 5bd4b2e..706c16a 100644 --- a/starttls_policy_cli/tests/configure_test.py +++ b/starttls_policy_cli/tests/configure_test.py @@ -104,11 +104,15 @@ test_json_expired = '{\ }' testgen_data = [ - param("s...
Implement Early Adopter mode Actual issue is created for tracking implementation progress of feature described [here](https://github.com/EFForg/starttls-everywhere/issues/124).
0.0
be1143dcfb2d54fe638a850f63f603aedb068e0c
[ "starttls_policy_cli/tests/configure_test.py::TestPostfixGenerator::test_expired_policy", "starttls_policy_cli/tests/configure_test.py::TestPostfixGenerator::test_simple_policy", "starttls_policy_cli/tests/configure_test.py::TestPostfixGenerator::test_simple_policy_early", "starttls_policy_cli/tests/main_test...
[ "starttls_policy_cli/tests/configure_test.py::TestConfigGenerator::test_generate", "starttls_policy_cli/tests/configure_test.py::TestConfigGenerator::test_manual_instructions", "starttls_policy_cli/tests/configure_test.py::TestPostfixGenerator::test_instruct_string", "starttls_policy_cli/tests/configure_test....
{ "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 }
2019-03-06 18:59:16+00:00
apache-2.0
209
EFForg__starttls-policy-cli-26
diff --git a/starttls_policy_cli/policy.py b/starttls_policy_cli/policy.py index b4ab17a..1cb0212 100644 --- a/starttls_policy_cli/policy.py +++ b/starttls_policy_cli/policy.py @@ -1,5 +1,4 @@ """ Policy config wrapper """ -import collections import logging import datetime import io @@ -8,6 +7,12 @@ import six fro...
EFForg/starttls-policy-cli
be1143dcfb2d54fe638a850f63f603aedb068e0c
diff --git a/starttls_policy_cli/tests/policy_test.py b/starttls_policy_cli/tests/policy_test.py index 81a8fb1..994c7bd 100644 --- a/starttls_policy_cli/tests/policy_test.py +++ b/starttls_policy_cli/tests/policy_test.py @@ -16,7 +16,6 @@ test_json = '{\ "timestamp": "2014-05-26T01:35:33+0000",\ "poli...
policy.py: Deprecation Warning Run of testsuite showed to me following warning: ``` starttls_policy_cli/policy.py:220 /home/user/starttls-policy-cli/starttls_policy_cli/policy.py:220: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it...
0.0
be1143dcfb2d54fe638a850f63f603aedb068e0c
[ "starttls_policy_cli/tests/policy_test.py::TestConfig::test_basic_parsing" ]
[ "starttls_policy_cli/tests/policy_test.py::TestConfigEncoder::test_encode_datetime", "starttls_policy_cli/tests/policy_test.py::TestConfigEncoder::test_encode_empty_dict", "starttls_policy_cli/tests/policy_test.py::TestConfigEncoder::test_encode_empty_list", "starttls_policy_cli/tests/policy_test.py::TestConf...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2019-03-06 19:31:28+00:00
apache-2.0
210
EFForg__starttls-policy-cli-27
diff --git a/starttls_policy_cli/policy.py b/starttls_policy_cli/policy.py index b4ab17a..8b5aedb 100644 --- a/starttls_policy_cli/policy.py +++ b/starttls_policy_cli/policy.py @@ -210,7 +210,6 @@ class PolicyNoAlias(Policy): @property def policy_alias(self): """ This type of policy can't be aliased....
EFForg/starttls-policy-cli
be1143dcfb2d54fe638a850f63f603aedb068e0c
diff --git a/starttls_policy_cli/tests/policy_test.py b/starttls_policy_cli/tests/policy_test.py index 81a8fb1..994c7bd 100644 --- a/starttls_policy_cli/tests/policy_test.py +++ b/starttls_policy_cli/tests/policy_test.py @@ -16,7 +16,6 @@ test_json = '{\ "timestamp": "2014-05-26T01:35:33+0000",\ "poli...
Config parser schema contains field not present in format spec [Field Enforcer](https://github.com/EFForg/starttls-policy-cli/blob/687dbbf99b683eebceb524fb93286d5ebfe57204/starttls_policy_cli/util.py#L102-L105) ∉ [Format Spec](https://github.com/EFForg/starttls-everywhere/blob/master/RULES.md)
0.0
be1143dcfb2d54fe638a850f63f603aedb068e0c
[ "starttls_policy_cli/tests/policy_test.py::TestConfig::test_basic_parsing" ]
[ "starttls_policy_cli/tests/policy_test.py::TestConfigEncoder::test_encode_datetime", "starttls_policy_cli/tests/policy_test.py::TestConfigEncoder::test_encode_empty_dict", "starttls_policy_cli/tests/policy_test.py::TestConfigEncoder::test_encode_empty_list", "starttls_policy_cli/tests/policy_test.py::TestConf...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2019-03-08 19:23:07+00:00
apache-2.0
211
ESMCI__cime-4019
diff --git a/config/xml_schemas/config_machines.xsd b/config/xml_schemas/config_machines.xsd index 1d8dba900..3dd64f15e 100644 --- a/config/xml_schemas/config_machines.xsd +++ b/config/xml_schemas/config_machines.xsd @@ -159,7 +159,7 @@ <xs:element ref="SUPPORTED_BY" minOccurs="1" maxOccurs="1"/> <!--...
ESMCI/cime
f919e5809e34fe5564f306e9b70ff85458c13bca
diff --git a/scripts/lib/CIME/tests/test_utils.py b/scripts/lib/CIME/tests/test_utils.py index dde52eff8..2759b5352 100644 --- a/scripts/lib/CIME/tests/test_utils.py +++ b/scripts/lib/CIME/tests/test_utils.py @@ -2,10 +2,12 @@ import os import sys +import tempfile import unittest from unittest import mock -from...
maxOccurs set to 1 for MAX_TASKS_PER_NODE breaks E3SM machine PR #3989 introduced a change that breaks some E3SM machines. Commit introducing the change https://github.com/sjsprecious/cime/commit/89a4292be3c78244e5042a8ad36453ae5407a7d8. Machines broken with change - **summit** https://github.com/E3SM-Project/E3...
0.0
f919e5809e34fe5564f306e9b70ff85458c13bca
[ "scripts/lib/CIME/tests/test_utils.py::TestIndentStr::test_indent_string_multiline", "scripts/lib/CIME/tests/test_utils.py::TestIndentStr::test_indent_string_singleline", "scripts/lib/CIME/tests/test_utils.py::TestUtils::test_import_from_file", "scripts/lib/CIME/tests/test_utils.py::TestUtils::test_run_and_lo...
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-06-28 22:31:10+00:00
bsd-3-clause
212
ESMCI__cime-4053
diff --git a/scripts/lib/CIME/case/case.py b/scripts/lib/CIME/case/case.py index e35b576da..d6f66c29f 100644 --- a/scripts/lib/CIME/case/case.py +++ b/scripts/lib/CIME/case/case.py @@ -1729,8 +1729,11 @@ directory, NOT in this subdirectory.""" lines_len = len(lines) lines.insert(lines_len-1 if init el...
ESMCI/cime
dbaa9b2d2b8e24e6ebbed33e252ba3b2f434b8cc
diff --git a/scripts/lib/CIME/tests/test_case.py b/scripts/lib/CIME/tests/test_case.py index 6595b861b..8585fb2dd 100644 --- a/scripts/lib/CIME/tests/test_case.py +++ b/scripts/lib/CIME/tests/test_case.py @@ -216,6 +216,25 @@ class TestCase_RecordCmd(unittest.TestCase): for x, y in zip(calls, expected): ...
replay.sh: Capture script in provenance.py for archiving (E3SM) We need to archive replay.sh in performance archive so that it can be picked up by PACE for E3SM. Logic needs to be added to https://github.com/ESMCI/cime/blob/master/scripts/lib/CIME/provenance.py#L400 cc @jasonb5 @rljacob
0.0
dbaa9b2d2b8e24e6ebbed33e252ba3b2f434b8cc
[ "scripts/lib/CIME/tests/test_case.py::TestCase_RecordCmd::test_error" ]
[ "scripts/lib/CIME/tests/test_case.py::TestCaseSubmit::test__submit", "scripts/lib/CIME/tests/test_case.py::TestCaseSubmit::test_check_case", "scripts/lib/CIME/tests/test_case.py::TestCaseSubmit::test_submit", "scripts/lib/CIME/tests/test_case.py::TestCase::test_copy", "scripts/lib/CIME/tests/test_case.py::T...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2021-07-22 23:14:28+00:00
bsd-3-clause
213
ESMCI__cime-4058
diff --git a/ChangeLog b/ChangeLog index 546ffca7e..b715a4a20 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,55 @@ ====================================================================== +Originator: Chris Fischer +Date: 8-2-2021 +Tag: cime6.0.4 +Answer Changes: None +Tests: scripts_regression_tests +Dependencies...
ESMCI/cime
c6f489356fd385c465eec285b0321c09c12b2e97
diff --git a/scripts/lib/CIME/tests/test_utils.py b/scripts/lib/CIME/tests/test_utils.py old mode 100644 new mode 100755 index ed7ea3d7b..dad176b8e --- a/scripts/lib/CIME/tests/test_utils.py +++ b/scripts/lib/CIME/tests/test_utils.py @@ -1,15 +1,17 @@ #!/usr/bin/env python3 import os +import shutil import sys imp...
Support the creation of multiple user_nl files for a component CISM in CESM will soon support running multiple ice sheets in the same case. Each of these ice sheets will have its own config file (similar to a namelist file), with different settings. Therefore, in a run containing Greenland and Antarctica (for example) ...
0.0
c6f489356fd385c465eec285b0321c09c12b2e97
[ "scripts/lib/CIME/tests/test_utils.py::TestIndentStr::test_indent_string_multiline", "scripts/lib/CIME/tests/test_utils.py::TestIndentStr::test_indent_string_singleline", "scripts/lib/CIME/tests/test_utils.py::TestLineDefinesPythonFunction::test_def_barfoo", "scripts/lib/CIME/tests/test_utils.py::TestLineDefi...
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-07-30 22:02:39+00:00
bsd-3-clause
214
ESSS__conda-devenv-51
diff --git a/HISTORY.rst b/HISTORY.rst index 608aaa0..f9fafd4 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,6 +3,12 @@ History ======= +0.9.5 (2017-04-24) +------------------ + +* Handle ``None`` correctly, which actually fixes (`#49`_). + + 0.9.4 (2017-04-20) ------------------ diff --git a/conda_devenv/de...
ESSS/conda-devenv
320f7fdd672abf4122506850982a6b4095614e55
diff --git a/tests/test_main.py b/tests/test_main.py index 4f0db10..feb2425 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -21,16 +21,20 @@ def patch_conda_calls(mocker): ('environment.devenv.yml', 1), ('environment.yml', 0), ]) +@pytest.mark.parametrize('return_none', [True, False]) @pytest.ma...
0.9.3 broken: no longer generates activate/deactivate scripts #46 introduced a bug: `conda-devenv` now calls `conda_env.main` directly, which probably calls `sys.exit()`, which skips activate/deactivate scripts generation.
0.0
320f7fdd672abf4122506850982a6b4095614e55
[ "tests/test_main.py::test_handle_input_file[True-environment.yml-0]" ]
[ "tests/test_main.py::test_handle_input_file[False-environment.yml-0]", "tests/test_main.py::test_print[environment.yml]" ]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2017-04-24 13:37:58+00:00
mit
215
ESSS__conda-devenv-72
diff --git a/conda_devenv/devenv.py b/conda_devenv/devenv.py index a89cf89..aad9646 100644 --- a/conda_devenv/devenv.py +++ b/conda_devenv/devenv.py @@ -7,16 +7,17 @@ import sys import six -def render_jinja(contents, filename): +def render_jinja(contents, filename, is_included): import jinja2 import sys ...
ESSS/conda-devenv
f74b1ebc267d9c765e0f4851cf1154d3434a0e49
diff --git a/tests/test_include.py b/tests/test_include.py index f3eb7fc..308206d 100644 --- a/tests/test_include.py +++ b/tests/test_include.py @@ -7,7 +7,7 @@ from conda_devenv.devenv import handle_includes, render_jinja def obtain_yaml_dicts(root_yaml_filename): contents = open(root_yaml_filename, "r").read(...
Add a way to identify if the current file is the "main" devenv file
0.0
f74b1ebc267d9c765e0f4851cf1154d3434a0e49
[ "tests/test_jinja.py::test_jinja_root", "tests/test_jinja.py::test_jinja_os", "tests/test_jinja.py::test_jinja_sys", "tests/test_jinja.py::test_jinja_platform", "tests/test_jinja.py::test_jinja_invalid_template" ]
[ "tests/test_load_yaml_dict.py::test_get_env_name[True]", "tests/test_load_yaml_dict.py::test_get_env_name[False]" ]
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2018-12-13 23:55:40+00:00
mit
216
Edinburgh-Genome-Foundry__DnaChisel-61
diff --git a/dnachisel/Location.py b/dnachisel/Location.py index 853064f..6a3fdca 100644 --- a/dnachisel/Location.py +++ b/dnachisel/Location.py @@ -40,20 +40,25 @@ class Location: def overlap_region(self, other_location): """Return the overlap span between two locations (None if None).""" - stra...
Edinburgh-Genome-Foundry/DnaChisel
0678f74bc0b92e0e7daa975f1ea6c94992cb3792
diff --git a/tests/builtin_specifications/test_AvoidPattern.py b/tests/builtin_specifications/test_AvoidPattern.py index 46633e7..bed081e 100644 --- a/tests/builtin_specifications/test_AvoidPattern.py +++ b/tests/builtin_specifications/test_AvoidPattern.py @@ -8,6 +8,7 @@ from dnachisel import ( RepeatedKmerPatter...
Issue with AvoidPattern (and potentially other builtin_specifications) It looks as though AvoidPattern doesn't preserve its strand information when being localized if the original strand information is 'from_location' https://github.com/Edinburgh-Genome-Foundry/DnaChisel/blob/db0b606ec993a509de9f3bb4d8acde9baadeef99...
0.0
0678f74bc0b92e0e7daa975f1ea6c94992cb3792
[ "tests/builtin_specifications/test_AvoidPattern.py::test_location_strand_gets_conserved" ]
[ "tests/builtin_specifications/test_AvoidPattern.py::test_AvoidPattern_on_strands", "tests/builtin_specifications/test_AvoidPattern.py::test_AvoidPattern_with_regular_expression", "tests/builtin_specifications/test_AvoidPattern.py::test_avoid_repeated_small_kmers", "tests/builtin_specifications/test_AvoidPatte...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-07-21 19:51:09+00:00
mit
217
EdinburghGenomics__EGCG-Core-11
diff --git a/egcg_core/ncbi.py b/egcg_core/ncbi.py index 13f74d6..69cc44c 100644 --- a/egcg_core/ncbi.py +++ b/egcg_core/ncbi.py @@ -76,7 +76,7 @@ def _fetch_from_eutils(species): rank = None if match: rank = match.group(1) - if rank == 'species': + if rank in ['species', 's...
EdinburghGenomics/EGCG-Core
a835cffab69da2193d4653f31230f0d487596b78
diff --git a/tests/test_ncbi.py b/tests/test_ncbi.py index ef931bb..af10556 100644 --- a/tests/test_ncbi.py +++ b/tests/test_ncbi.py @@ -24,6 +24,11 @@ def test_fetch_from_eutils(): <OtherNames><CommonName>a common name</CommonName></OtherNames> <Rank>species</Rank> ''' + ncbi_fetch_data_sub_s...
Canis lupus familiaris NCBI query returns None Because _C. l. familiaris_ has `subspecies` in its efetch, the regex system in `fetch_from_eutils` breaks down. We should query the XML more robustly.
0.0
a835cffab69da2193d4653f31230f0d487596b78
[ "tests/test_ncbi.py::test_fetch_from_eutils" ]
[ "tests/test_ncbi.py::test_cache", "tests/test_ncbi.py::test_get_species_name" ]
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2016-07-15 13:03:14+00:00
mit
218
EdinburghGenomics__EGCG-Core-12
diff --git a/egcg_core/__init__.py b/egcg_core/__init__.py index e1424ed..58d168b 100644 --- a/egcg_core/__init__.py +++ b/egcg_core/__init__.py @@ -1,1 +1,1 @@ -__version__ = '0.3.1' +__version__ = '0.4' diff --git a/egcg_core/clarity.py b/egcg_core/clarity.py index 4691f7c..e896d04 100644 --- a/egcg_core/clarity.py +...
EdinburghGenomics/EGCG-Core
43f124d6f77db73cff13117003295ad715d9aabc
diff --git a/tests/test_clarity.py b/tests/test_clarity.py index b4c3684..6e963a2 100644 --- a/tests/test_clarity.py +++ b/tests/test_clarity.py @@ -104,10 +104,9 @@ def test_get_list_of_samples(): exp_lims_sample_ids = ['this', 'that:01', 'other _L:01'] calling_sample_ids = ['this', 'that_01', 'other__L_01']...
clarity.get_list_of_samples crashes if a sample doesn't exist in the Lims The error is because of the way we're processing sample names. The stacktrace is misleading: ``` File "clarity.py", line 98, in get_list_of_samples results.extend(_get_list_of_samples(sample_names[start:start+max_query])) File "clarity....
0.0
43f124d6f77db73cff13117003295ad715d9aabc
[ "tests/test_clarity.py::test_get_list_of_samples_broken" ]
[ "tests/test_clarity.py::test_get_sample_gender", "tests/test_clarity.py::test_get_sample_names_from_plate_from_lims", "tests/test_clarity.py::test_get_expected_yield_for_sample", "tests/test_clarity.py::test_get_samples", "tests/test_clarity.py::test_get_output_containers_from_sample_and_step_name", "test...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2016-07-15 14:25:56+00:00
mit
219
EdinburghGenomics__EGCG-Core-52
diff --git a/egcg_core/archive_management.py b/egcg_core/archive_management.py index 3437925..58c5eb9 100644 --- a/egcg_core/archive_management.py +++ b/egcg_core/archive_management.py @@ -1,6 +1,8 @@ import os import re import subprocess +from time import sleep + from egcg_core.app_logging import logging_default a...
EdinburghGenomics/EGCG-Core
5a073c8d79148ed29379e4818e4dcebd5180eb15
diff --git a/tests/test_archive_management.py b/tests/test_archive_management.py index c087706..5d45646 100644 --- a/tests/test_archive_management.py +++ b/tests/test_archive_management.py @@ -76,7 +76,7 @@ class TestArchiveManagement(TestEGCG): '', 'testfile: (0x00000001...
Failure to register for archiving cause pipeline crash We should make the registering for archiving more robust by sleeping trying again to register the file after 1 second. https://github.com/EdinburghGenomics/EGCG-Core/blob/master/egcg_core/archive_management.py#L92 This raising can cause Analysis Driver to crash a...
0.0
5a073c8d79148ed29379e4818e4dcebd5180eb15
[ "tests/test_archive_management.py::TestArchiveManagement::test_register_for_archiving" ]
[ "tests/test_archive_management.py::TestArchiveManagement::test_archive_states", "tests/test_archive_management.py::TestArchiveManagement::test_archive_directory", "tests/test_archive_management.py::TestArchiveManagement::test_recall_from_tape", "tests/test_archive_management.py::TestArchiveManagement::test_re...
{ "failed_lite_validators": [ "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2017-05-23 21:56:31+00:00
mit
220
EdinburghGenomics__EGCG-Core-6
diff --git a/egcg_core/rest_communication.py b/egcg_core/rest_communication.py index 942039b..39acd98 100644 --- a/egcg_core/rest_communication.py +++ b/egcg_core/rest_communication.py @@ -1,9 +1,10 @@ import requests from urllib.parse import urljoin -from egcg_core.config import default as cfg +from egcg_core.config...
EdinburghGenomics/EGCG-Core
0309bf8fdd5d64705fc62184fe31e27c20172fbc
diff --git a/tests/test_rest_communication.py b/tests/test_rest_communication.py index c43d6b7..b9905c2 100644 --- a/tests/test_rest_communication.py +++ b/tests/test_rest_communication.py @@ -21,6 +21,7 @@ patched_response = patch( 'requests.request', return_value=FakeRestResponse(status_code=200, content=te...
Authentication Since EdinburghGenomics/Reporting-App will be adding authentication, we should add auth headers to `rest_communication`.
0.0
0309bf8fdd5d64705fc62184fe31e27c20172fbc
[ "tests/test_rest_communication.py::test_post_entry", "tests/test_rest_communication.py::test_req", "tests/test_rest_communication.py::test_put_entry", "tests/test_rest_communication.py::test_patch_entry" ]
[ "tests/test_rest_communication.py::test_parse_query_string", "tests/test_rest_communication.py::test_get_documents", "tests/test_rest_communication.py::test_get_document", "tests/test_rest_communication.py::test_get_documents_depaginate", "tests/test_rest_communication.py::test_test_content", "tests/test_...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2016-06-30 09:54:47+00:00
mit
221
EdinburghGenomics__EGCG-Core-60
diff --git a/CHANGELOG.md b/CHANGELOG.md index 58a261b..6db3fe5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,10 @@ Changelog for EGCG-Core =========================== -0.8 (unreleased) +0.7.3 (unreleased) ---------------- -- Nothing changed yet. +- Add new option to rest_communication.post_entry to s...
EdinburghGenomics/EGCG-Core
dff158066e922124e05d2d93cca14b2ee4ad6bfc
diff --git a/tests/test_rest_communication.py b/tests/test_rest_communication.py index 3f920be..fcc907f 100644 --- a/tests/test_rest_communication.py +++ b/tests/test_rest_communication.py @@ -180,6 +180,24 @@ class TestRestCommunication(TestEGCG): files={'f': (file_path, b'test content', 'text/plain')} ...
rest_communication: post data as form instead of json `post_entry` should have an option to specify a post where the data is stored in the form instead of the query string.
0.0
dff158066e922124e05d2d93cca14b2ee4ad6bfc
[ "tests/test_rest_communication.py::TestRestCommunication::test_post_entry" ]
[ "tests/test_rest_communication.py::TestRestCommunication::test_put_entry", "tests/test_rest_communication.py::TestRestCommunication::test_token_auth", "tests/test_rest_communication.py::TestRestCommunication::test_detect_files_in_json", "tests/test_rest_communication.py::TestRestCommunication::test_get_docume...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2017-09-01 14:24:56+00:00
mit
222
EdinburghGenomics__EGCG-Core-64
diff --git a/CHANGELOG.md b/CHANGELOG.md index f304aea..260484f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,10 @@ Changelog for EGCG-Core =========================== -0.8 (unreleased) +0.7.4 (unreleased) ---------------- -- Nothing changed yet. +- Bugfix in archive management. 0.7.3 (2017-09-01...
EdinburghGenomics/EGCG-Core
5be3adbce57f2efd3afc6d15f59bb288ce0c1b50
diff --git a/tests/test_archive_management.py b/tests/test_archive_management.py index 5d45646..0506957 100644 --- a/tests/test_archive_management.py +++ b/tests/test_archive_management.py @@ -80,6 +80,16 @@ class TestArchiveManagement(TestEGCG): assert get_stdout.call_count == 3 assert get_st...
Broken recursion in archive_management In archive_management.register_for_archiving, the recursion is called with the built-in function `filter`, which can only be a typo.
0.0
5be3adbce57f2efd3afc6d15f59bb288ce0c1b50
[ "tests/test_archive_management.py::TestArchiveManagement::test_register_for_archiving" ]
[ "tests/test_archive_management.py::TestArchiveManagement::test_archive_directory", "tests/test_archive_management.py::TestArchiveManagement::test_archive_states", "tests/test_archive_management.py::TestArchiveManagement::test_recall_from_tape", "tests/test_archive_management.py::TestArchiveManagement::test_re...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2017-10-31 13:35:10+00:00
mit
223
EdinburghGenomics__EGCG-Core-88
diff --git a/egcg_core/clarity.py b/egcg_core/clarity.py index 0068e9d..39d03f8 100644 --- a/egcg_core/clarity.py +++ b/egcg_core/clarity.py @@ -113,7 +113,7 @@ def get_genome_version(sample_id, species=None): def sanitize_user_id(user_id): if isinstance(user_id, str): - return re.sub("[^\w_\-.]", "_", u...
EdinburghGenomics/EGCG-Core
f54591f5420dc4b4f8241e080e594a5fd6c5f87a
diff --git a/tests/test_clarity.py b/tests/test_clarity.py index c4446fb..271d1d2 100644 --- a/tests/test_clarity.py +++ b/tests/test_clarity.py @@ -117,6 +117,7 @@ class TestClarity(TestEGCG): def test_sanitize_user_id(self): assert clarity.sanitize_user_id('this?that$other another:more') == 'this_that...
Replace (.) dots in user sample name with underscores Change the sanitize_user_id function to remove dots https://github.com/EdinburghGenomics/EGCG-Core/blob/f54591f5420dc4b4f8241e080e594a5fd6c5f87a/egcg_core/clarity.py#L114
0.0
f54591f5420dc4b4f8241e080e594a5fd6c5f87a
[ "tests/test_clarity.py::TestClarity::test_sanitize_user_id" ]
[ "tests/test_clarity.py::TestClarity::test_find_run_elements_from_sample", "tests/test_clarity.py::TestClarity::test_get_valid_lanes", "tests/test_clarity.py::TestClarity::test_find_project_from_sample", "tests/test_clarity.py::TestClarity::test_get_samples_arrived_with", "tests/test_clarity.py::TestClarity:...
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2018-10-11 09:01:18+00:00
mit
224
EdinburghGenomics__EGCG-Core-90
diff --git a/egcg_core/rest_communication.py b/egcg_core/rest_communication.py index 0a9e0cc..096648e 100644 --- a/egcg_core/rest_communication.py +++ b/egcg_core/rest_communication.py @@ -1,5 +1,6 @@ import json import mimetypes +import os from urllib.parse import urljoin import requests from multiprocessing impo...
EdinburghGenomics/EGCG-Core
8f4fefbdc4383b345ed58c7352b8125fcbe95f44
diff --git a/tests/test_rest_communication.py b/tests/test_rest_communication.py index ddb3fdb..e3f372b 100644 --- a/tests/test_rest_communication.py +++ b/tests/test_rest_communication.py @@ -1,7 +1,13 @@ +import multiprocessing import os import json + +import pytest from requests import Session from unittest.mock...
Rest_communication cause SSL error in multiprocessing In some circumstances rest_communication will generate SSL error when communicating with the reporting app over https. This occurs in the pipeline when it uses multiprocessing.
0.0
8f4fefbdc4383b345ed58c7352b8125fcbe95f44
[ "tests/test_rest_communication.py::TestRestCommunication::test_failed_req", "tests/test_rest_communication.py::TestRestCommunication::test_multi_session" ]
[ "tests/test_rest_communication.py::TestRestCommunication::test_req", "tests/test_rest_communication.py::TestRestCommunication::test_begin_session", "tests/test_rest_communication.py::TestRestCommunication::test_get_documents", "tests/test_rest_communication.py::TestRestCommunication::test_parse_query_string",...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2018-11-22 11:15:37+00:00
mit
225
EdinburghGenomics__pyclarity-lims-19
diff --git a/pyclarity_lims/descriptors.py b/pyclarity_lims/descriptors.py index b33666f..a5a4c28 100644 --- a/pyclarity_lims/descriptors.py +++ b/pyclarity_lims/descriptors.py @@ -721,6 +721,48 @@ class ExternalidList(XmlList): list.append(self, (element.attrib.get('id'), element.attrib.get('uri'))) +clas...
EdinburghGenomics/pyclarity-lims
82c1b93217a26395d5068fb0080ce09a0578121e
diff --git a/tests/test_descriptors.py b/tests/test_descriptors.py index 7cfea0a..be7c731 100644 --- a/tests/test_descriptors.py +++ b/tests/test_descriptors.py @@ -3,14 +3,15 @@ from sys import version_info from unittest import TestCase from xml.etree import ElementTree +import datetime import pytest from pycl...
Queue Class does not have an easily acessible "queue-time" member variable In the Queue Class I feel as if the "queue-time" member variable should exist under artifacts just like location does. However, I have to traverse artifacts._elems[0]._children[0].text to get the queue time. Can we make this so something like ar...
0.0
82c1b93217a26395d5068fb0080ce09a0578121e
[ "tests/test_descriptors.py::TestIntegerDescriptor::test__set__", "tests/test_descriptors.py::TestIntegerDescriptor::test__get__", "tests/test_descriptors.py::TestIntegerDescriptor::test_create", "tests/test_descriptors.py::TestXmlAttributeList::test_append", "tests/test_descriptors.py::TestXmlAttributeList:...
[]
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2018-01-03 16:43:34+00:00
mit
226
EdinburghGenomics__pyclarity-lims-54
diff --git a/pyclarity_lims/descriptors.py b/pyclarity_lims/descriptors.py index 91e2a4d..6ac8565 100644 --- a/pyclarity_lims/descriptors.py +++ b/pyclarity_lims/descriptors.py @@ -278,21 +278,25 @@ class XmlAction(XmlElementAttributeDict): action: The type of action to perform. (leave, repeat, remove, review, com...
EdinburghGenomics/pyclarity-lims
a03be6eda34f0d8adaf776d2286198a34e40ecf5
diff --git a/tests/test_descriptors.py b/tests/test_descriptors.py index 2523475..407b430 100644 --- a/tests/test_descriptors.py +++ b/tests/test_descriptors.py @@ -11,7 +11,7 @@ from pyclarity_lims.descriptors import StringDescriptor, StringAttributeDescript StringDictionaryDescriptor, IntegerDescriptor, BooleanD...
StepAction rework-step take a Step It currently accept a protocolStep which is incorrect
0.0
a03be6eda34f0d8adaf776d2286198a34e40ecf5
[ "tests/test_descriptors.py::TestXmlAction::test_set" ]
[ "tests/test_descriptors.py::TestStringDescriptor::test__get__", "tests/test_descriptors.py::TestStringDescriptor::test__set__", "tests/test_descriptors.py::TestStringDescriptor::test_create", "tests/test_descriptors.py::TestIntegerDescriptor::test__get__", "tests/test_descriptors.py::TestIntegerDescriptor::...
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2019-03-12 12:44:38+00:00
mit
227
Electrostatics__mmcif_pdbx-23
diff --git a/pdbx/reader.py b/pdbx/reader.py index 2a91215..c5bd339 100644 --- a/pdbx/reader.py +++ b/pdbx/reader.py @@ -46,9 +46,7 @@ class PdbxReader: try: self.__parser(self.__tokenizer(self.__input_file), container_list) except StopIteration: - pass - else: - ...
Electrostatics/mmcif_pdbx
2d5204cb5fb9ec85ae219bcc51a3733a40645687
diff --git a/tests/reader_test.py b/tests/reader_test.py index 4307ad9..e1fb3d5 100644 --- a/tests/reader_test.py +++ b/tests/reader_test.py @@ -9,9 +9,11 @@ # ## """Test cases for reading PDBx/mmCIF data files reader class.""" +import io import logging from pathlib import Path import pytest +from pdbx.errors imp...
Refactor usage of StopIteration in pdbx.reader `pdbx.reader` follows a pre-[PEP 479](https://www.python.org/dev/peps/pep-0479/) pattern of `StopIteration` usage with a `RuntimeError` band-aid. This should be refactored. @sobolevnrm I'd be happy to send a pull request, unless this code is already being worked on.
0.0
2d5204cb5fb9ec85ae219bcc51a3733a40645687
[ "tests/reader_test.py::test_missing_value_eof", "tests/reader_test.py::test_empty_loop_body_eof", "tests/reader_test.py::test_empty_data_block", "tests/reader_test.py::test_empty_loop_header_eof", "tests/reader_test.py::test_empty_file", "tests/reader_test.py::test_incomplete_multiline_string" ]
[ "tests/reader_test.py::test_missing_value_not_eof", "tests/reader_test.py::test_missing_key", "tests/reader_test.py::test_empty_loop_body_not_eof", "tests/reader_test.py::test_empty_loop_header_not_eof", "tests/reader_test.py::test_structure_factor_file[1kip-sf.cif]", "tests/reader_test.py::test_data_file...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2020-07-07 18:18:14+00:00
cc0-1.0
228
Electrostatics__mmcif_pdbx-27
diff --git a/pdbx/__init__.py b/pdbx/__init__.py index 17ecc8a..1ad970d 100644 --- a/pdbx/__init__.py +++ b/pdbx/__init__.py @@ -8,3 +8,31 @@ http://mmcif.wwpdb.org/docs/sw-examples/python/html/. See http://mmcif.wwpdb.org/docs/sw-examples/python/html/ for more information about this package, including examples. """...
Electrostatics/mmcif_pdbx
aa5510885133259139f355a6a14a080386745dbd
diff --git a/tests/reader_test.py b/tests/reader_test.py index e1fb3d5..f685180 100644 --- a/tests/reader_test.py +++ b/tests/reader_test.py @@ -15,6 +15,7 @@ from pathlib import Path import pytest from pdbx.errors import PdbxSyntaxError from pdbx.reader import PdbxReader +from pdbx import loads as read_cifstr ...
Distinguish unknown (?) and inapplicable (.) values from strings CIF has two special values: `?` for unknown data, and `.` for inapplicable data. As far as I can tell, the API in this library doesn't distinguish these values from strings. I think it would be very useful if these values are represented by a special c...
0.0
aa5510885133259139f355a6a14a080386745dbd
[ "tests/reader_test.py::test_data_file[1kip.cif]", "tests/reader_test.py::test_data_file[1ffk.cif]", "tests/reader_test.py::test_structure_factor_file[1kip-sf.cif]", "tests/reader_test.py::test_empty_file", "tests/reader_test.py::test_empty_data_block", "tests/reader_test.py::test_missing_value_eof", "te...
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-07-08 07:32:45+00:00
cc0-1.0
229
EmilStenstrom__conllu-35
diff --git a/conllu/parser.py b/conllu/parser.py index 16ec94b..7456879 100644 --- a/conllu/parser.py +++ b/conllu/parser.py @@ -141,7 +141,7 @@ def parse_id_value(value): ANY_ID = re.compile(ID_SINGLE.pattern + "|" + ID_RANGE.pattern + "|" + ID_DOT_ID.pattern) -DEPS_RE = re.compile("(" + ANY_ID.pattern + r"):[a-z...
EmilStenstrom/conllu
6da39c07ccafc4c280f10eb51b12165472a609a9
diff --git a/tests/test_parser.py b/tests/test_parser.py index 0e13a77..2733b58 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -361,6 +361,14 @@ class TestParsePairedListValue(unittest.TestCase): parse_paired_list_value("5:conj:and|8.1:nsubj:pass|9:nsubj:xsubj"), [("conj:and",...
Column 'deps' is not being parsed most of the time Given the following sentence: ``` Removed. ``` The code at `parser.py:152` looks like this: ```python def parse_paired_list_value(value): if fullmatch(MULTI_DEPS_PATTERN, value): return [ (part.split(":", 1)[1], parse_id_value(par...
0.0
6da39c07ccafc4c280f10eb51b12165472a609a9
[ "tests/test_parser.py::TestParsePairedListValue::test_parse_paired_list" ]
[ "tests/test_parser.py::TestParseLine::test_parse_line_nullable_fields", "tests/test_parser.py::TestParseLine::test_parse_line_with_spaces", "tests/test_parser.py::TestParseLine::test_parse_line_only_id_head", "tests/test_parser.py::TestParseLine::test_parse_line_without_spacing", "tests/test_parser.py::Test...
{ "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2019-09-29 18:14:22+00:00
mit
230
EricssonResearch__arms-38
diff --git a/arms/misc/__init__.py b/arms/misc/__init__.py new file mode 100644 index 0000000..cb98f04 --- /dev/null +++ b/arms/misc/__init__.py @@ -0,0 +1,1 @@ +"""Modules related to misc""" diff --git a/arms/misc/socket.py b/arms/misc/socket.py new file mode 100644 index 0000000..0ca3fd3 --- /dev/null +++ b/arms/misc...
EricssonResearch/arms
331f9d63bcfee438fada298186e88743fda4e37e
diff --git a/tests/unit/test_socket.py b/tests/unit/test_socket.py new file mode 100644 index 0000000..a1a9b3c --- /dev/null +++ b/tests/unit/test_socket.py @@ -0,0 +1,270 @@ +"""Tests for arms.misc.socket""" + +import pytest +import socket +import threading +from unittest import mock +from unittest.mock import call +f...
Create class for socket communication Provide a python class to be able to connect with a server via socket communication. The class should include the ability to - establish a connection to a server, - close the socket in a timely fashion, - send and receive messages. In addition, appropriate tests should be i...
0.0
331f9d63bcfee438fada298186e88743fda4e37e
[ "tests/unit/test_socket.py::test_get_config_and_connect_fail[config_data6]", "tests/unit/test_socket.py::test_send_fail", "tests/unit/test_socket.py::test_connect_fail", "tests/unit/test_socket.py::test_connect", "tests/unit/test_socket.py::test_get_config_and_connect_fail[config_data4]", "tests/unit/test...
[]
{ "failed_lite_validators": [ "has_added_files", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2018-11-21 21:35:48+00:00
apache-2.0
231
EricssonResearch__arms-41
diff --git a/arms/units/__init__.py b/arms/units/__init__.py new file mode 100644 index 0000000..631db19 --- /dev/null +++ b/arms/units/__init__.py @@ -0,0 +1,1 @@ +"""Modules related to units""" diff --git a/arms/units/abb.py b/arms/units/abb.py new file mode 100644 index 0000000..5d39fa1 --- /dev/null +++ b/arms/unit...
EricssonResearch/arms
60d720fd6e3f70dc54f5159f645774664663d425
diff --git a/tests/unit/test_abb.py b/tests/unit/test_abb.py new file mode 100644 index 0000000..eed3285 --- /dev/null +++ b/tests/unit/test_abb.py @@ -0,0 +1,118 @@ +"""Tests for arms.units.abb""" + +import pytest +from unittest import mock +from arms.units.abb import ABB + + +def test_init(): + """The instance att...
Communication with the ABB robot (IRC5) A class that handles the communication with the IRC5. Requirements: - Creating/ closing the socket. - Sending/ receiving of messages in a readable way. - Implementing of some example cases. In addition, tests shall show that the class works as intended.
0.0
60d720fd6e3f70dc54f5159f645774664663d425
[ "tests/unit/test_abb.py::test_send_error[a-data0]", "tests/unit/test_abb.py::test_send_error[1-data3]", "tests/unit/test_abb.py::test_init", "tests/unit/test_abb.py::test_send_error[1-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]", "tests/unit/test_abb.py::test_exchange_...
[]
{ "failed_lite_validators": [ "has_added_files" ], "has_test_patch": true, "is_lite": false }
2018-11-22 14:17:44+00:00
apache-2.0
232
EricssonResearch__arms-60
diff --git a/arms/misc/socket.py b/arms/misc/socket.py index 0ca3fd3..a04eb19 100644 --- a/arms/misc/socket.py +++ b/arms/misc/socket.py @@ -25,9 +25,10 @@ class SocketClient: server. Return: - - True, if a setting entry belonging to the client (client_name) - could be found an...
EricssonResearch/arms
f5dd81f13d6035a9a3729862cae1b0b37a5ac44e
diff --git a/tests/unit/test_socket.py b/tests/unit/test_socket.py index a1a9b3c..a56d6e7 100644 --- a/tests/unit/test_socket.py +++ b/tests/unit/test_socket.py @@ -39,11 +39,12 @@ def test_get_config_and_connect(): """ client = SocketClient("test_socket") data = {"socket": {"test_socket": {"host": host,...
Refactor of SocketClient.get_config_and_connect By now the method SocketClient.get_config_and_connect only returns one value, which equals True if the settings to the client could be found and False if not. It seems necessary that this function returns two values [*1, *2], because usually this function is only call...
0.0
f5dd81f13d6035a9a3729862cae1b0b37a5ac44e
[ "tests/unit/test_socket.py::test_get_config_and_connect_fail[config_data5]", "tests/unit/test_socket.py::test_get_config_and_connect_fail[config_data1]", "tests/unit/test_socket.py::test_get_config_and_connect_fail[config_data6]", "tests/unit/test_socket.py::test_get_config_and_connect_fail[config_data7]", ...
[ "tests/unit/test_socket.py::test_send", "tests/unit/test_socket.py::test_connect_fail", "tests/unit/test_socket.py::test_send_fail", "tests/unit/test_socket.py::test_init", "tests/unit/test_socket.py::test_get_config_and_connect", "tests/unit/test_socket.py::test_connect", "tests/unit/test_socket.py::te...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2018-12-04 10:45:09+00:00
apache-2.0
233
EricssonResearch__arms-63
diff --git a/arms/misc/socket.py b/arms/misc/socket.py index 0ca3fd3..a04eb19 100644 --- a/arms/misc/socket.py +++ b/arms/misc/socket.py @@ -25,9 +25,10 @@ class SocketClient: server. Return: - - True, if a setting entry belonging to the client (client_name) - could be found an...
EricssonResearch/arms
f5dd81f13d6035a9a3729862cae1b0b37a5ac44e
diff --git a/tests/unit/test_alarms.py b/tests/unit/test_alarms.py new file mode 100644 index 0000000..094319a --- /dev/null +++ b/tests/unit/test_alarms.py @@ -0,0 +1,90 @@ +"""Tests for arms.units.alarms.Alarms.listen""" + +import pytest +import requests +from unittest import mock +from arms.config import config +fro...
Fetching and evaluating of DU failure reports In total two things have to be implemented to fulfill this issue: - A small script that starts a server and provides the DU link failure. For simplification, the DU failure simply equals the letter _A_. For more details see the example failure report we got from Ericsson...
0.0
f5dd81f13d6035a9a3729862cae1b0b37a5ac44e
[ "tests/unit/test_socket.py::TestRecv::test_recv_sock_is_none", "tests/unit/test_socket.py::TestRecv::test_recv_error", "tests/unit/test_socket.py::TestRecv::test_recv_no_connection", "tests/unit/test_socket.py::test_get_config_and_connect_fail[config_data6]", "tests/unit/test_socket.py::test_get_config_and_...
[]
{ "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2018-12-04 12:06:07+00:00
apache-2.0
234
Erotemic__ubelt-64
diff --git a/ubelt/util_path.py b/ubelt/util_path.py index c028ba2..5241209 100644 --- a/ubelt/util_path.py +++ b/ubelt/util_path.py @@ -291,9 +291,9 @@ def ensuredir(dpath, mode=0o1777, verbose=None, recreate=False): >>> assert exists(dpath) >>> os.rmdir(dpath) """ - if verbose is None: # no...
Erotemic/ubelt
89085f148ace79aa0dfdc17383423e3dfe138017
diff --git a/tests/test_path.py b/tests/test_path.py index 49ea0c8..fafadd2 100644 --- a/tests/test_path.py +++ b/tests/test_path.py @@ -55,8 +55,31 @@ def test_augpath_dpath(): def test_ensuredir_recreate(): - ub.ensuredir('foo', recreate=True) - ub.ensuredir('foo/bar') - assert exists('foo/bar') - ub...
Request: ensure director verbose mentions if it created a new directory It would be nice if the verbose mode actually said something like Ensuring directory ('...') status: existing Ensuring directory ('...') status: creating Maybe have a second verbose level if you want to maintain the original way.
0.0
89085f148ace79aa0dfdc17383423e3dfe138017
[ "tests/test_path.py::test_ensuredir_verbosity" ]
[ "tests/test_path.py::test_augpath_identity", "tests/test_path.py::test_ensuredir_recreate", "tests/test_path.py::test_tempdir", "tests/test_path.py::test_augpath_dpath" ]
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2019-10-27 22:57:44+00:00
apache-2.0
235
European-XFEL__EXtra-data-128
diff --git a/extra_data/reader.py b/extra_data/reader.py index 263c848..c388030 100644 --- a/extra_data/reader.py +++ b/extra_data/reader.py @@ -570,16 +570,54 @@ class DataCollection: res = defaultdict(set) if isinstance(selection, dict): # {source: {key1, key2}} - # {source: ...
European-XFEL/EXtra-data
76c30bf18529ed0c3eb9de9c3d1c15494f807ac5
diff --git a/extra_data/tests/test_reader_mockdata.py b/extra_data/tests/test_reader_mockdata.py index aa84f1b..8668764 100644 --- a/extra_data/tests/test_reader_mockdata.py +++ b/extra_data/tests/test_reader_mockdata.py @@ -476,17 +476,46 @@ def test_select(mock_fxe_raw_run): assert 'SPB_XTD9_XGM/DOOCS/MAIN' in...
Selected keys can be overridden `.select()` is meant to always make a narrower selection from the current one, but @daviddoji found a case where it can get broader again: ```python source = 'FXE_DET_LPD1M-1/DET/2CH0:xtdf' sel = run.select(source, "image.data") print(sel.keys_for_source(source)) sel = sel.selec...
0.0
76c30bf18529ed0c3eb9de9c3d1c15494f807ac5
[ "extra_data/tests/test_reader_mockdata.py::test_select[1.0]", "extra_data/tests/test_reader_mockdata.py::test_select[0.5]" ]
[ "extra_data/tests/test_reader_mockdata.py::test_train_by_id_fxe_run_selection[1.0]", "extra_data/tests/test_reader_mockdata.py::test_file_get_series_control[1.0]", "extra_data/tests/test_reader_mockdata.py::test_read_skip_invalid[1.0]", "extra_data/tests/test_reader_mockdata.py::test_iterate_trains_fxe[1.0]",...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2021-01-15 18:12:55+00:00
bsd-3-clause
236
European-XFEL__EXtra-data-165
diff --git a/docs/reading_files.rst b/docs/reading_files.rst index faabbfa..f8b6b4a 100644 --- a/docs/reading_files.rst +++ b/docs/reading_files.rst @@ -67,6 +67,8 @@ to refer to all data associated with that 0.1 second window. .. automethod:: get_data_counts + .. automethod:: train_timestamps + .. autome...
European-XFEL/EXtra-data
05de22b55fdc424473127335d2ca6b3a7026ab6d
diff --git a/extra_data/tests/mockdata/base.py b/extra_data/tests/mockdata/base.py index 0b10de9..ad725cc 100644 --- a/extra_data/tests/mockdata/base.py +++ b/extra_data/tests/mockdata/base.py @@ -1,4 +1,4 @@ -from datetime import datetime, timedelta +from datetime import datetime, timedelta, timezone import os.path a...
Provide a means to get train timestamps The new DAQ version adds a timestamp field in the INDEX section, with a timestamp matching each train ID. We should have a way to access these.
0.0
05de22b55fdc424473127335d2ca6b3a7026ab6d
[ "extra_data/tests/test_reader_mockdata.py::test_train_timestamps_nat[0.5]", "extra_data/tests/test_reader_mockdata.py::test_train_timestamps_nat[1.0]", "extra_data/tests/test_reader_mockdata.py::test_train_timestamps" ]
[ "extra_data/tests/test_reader_mockdata.py::test_iterate_trains[0.5]", "extra_data/tests/test_reader_mockdata.py::test_iterate_trains_flat_keys[0.5]", "extra_data/tests/test_reader_mockdata.py::test_get_train_bad_device_name[0.5]", "extra_data/tests/test_reader_mockdata.py::test_detector_info_oldfmt[0.5]", "...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2021-04-09 14:59:14+00:00
bsd-3-clause
237
European-XFEL__EXtra-data-175
diff --git a/.github/dependabot/constraints.txt b/.github/dependabot/constraints.txt index 7cd24d9..7d680cb 100644 --- a/.github/dependabot/constraints.txt +++ b/.github/dependabot/constraints.txt @@ -14,5 +14,5 @@ pyparsing==2.4.7 python-dateutil==2.8.1 pytz==2021.1 pyzmq==22.0.3 -six==1.15.0 -xarray<=0.17.0 +six==...
European-XFEL/EXtra-data
13a2af8210d71d8a5e97d6e94a36091fc2ebd458
diff --git a/extra_data/tests/test_components.py b/extra_data/tests/test_components.py index fa0b125..0454a3f 100644 --- a/extra_data/tests/test_components.py +++ b/extra_data/tests/test_components.py @@ -164,6 +164,22 @@ def test_get_array_lpd_parallelgain(mock_lpd_parallelgain_run): np.testing.assert_array_equal...
Provide a means to access metadata fields The new DAQ version records a few extra fields in the `METADATA` section of files, including start time and DAQ version. It should be possible to get this information through EXtra-data. Complication: we allow combining data from more than one run. What should happen where t...
0.0
13a2af8210d71d8a5e97d6e94a36091fc2ebd458
[ "extra_data/tests/test_reader_mockdata.py::test_run_metadata[1.0]", "extra_data/tests/test_reader_mockdata.py::test_open_run[1.0]", "extra_data/tests/test_reader_mockdata.py::test_run_metadata[0.5]", "extra_data/tests/test_reader_mockdata.py::test_open_run[0.5]" ]
[ "extra_data/tests/test_components.py::test_get_array[1.0]", "extra_data/tests/test_components.py::test_iterate[1.0]", "extra_data/tests/test_components.py::test_get_array_pulse_indexes_reduced_data[1.0]", "extra_data/tests/test_components.py::test_identify_multimod_detectors[1.0]", "extra_data/tests/test_co...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-05-04 10:10:30+00:00
bsd-3-clause
238
European-XFEL__EXtra-data-222
diff --git a/extra_data/keydata.py b/extra_data/keydata.py index 86fc141..167b173 100644 --- a/extra_data/keydata.py +++ b/extra_data/keydata.py @@ -53,11 +53,14 @@ class KeyData: """An ordered list of chunks containing data""" if self._cached_chunks is None: self._cached_chunks = sorted(...
European-XFEL/EXtra-data
b738290e6dbb09ed2906f43f985cce9f16513ba3
diff --git a/extra_data/tests/test_keydata.py b/extra_data/tests/test_keydata.py index cb7406f..abdf9e8 100644 --- a/extra_data/tests/test_keydata.py +++ b/extra_data/tests/test_keydata.py @@ -68,6 +68,10 @@ def test_nodata(mock_fxe_raw_run): assert arr.shape == (0, 255, 1024) assert arr.dtype == np.dtype('u2...
Can't instantiate multi-module detector access if any module has no data This happens a lot with LPD data. It looks like the root cause is a problem with `.data_counts()`. ```python run = open_run(2729, 44) LPD1M(run.select_trains(np.s_[:100]) ``` ``` ----------------------------------------------------------...
0.0
b738290e6dbb09ed2906f43f985cce9f16513ba3
[ "extra_data/tests/test_keydata.py::test_data_counts_empty[1.0]", "extra_data/tests/test_keydata.py::test_nodata[1.0]", "extra_data/tests/test_keydata.py::test_nodata[0.5]", "extra_data/tests/test_keydata.py::test_data_counts_empty[0.5]" ]
[ "extra_data/tests/test_keydata.py::test_get_keydata[1.0]", "extra_data/tests/test_keydata.py::test_drop_empty_trains[1.0]", "extra_data/tests/test_keydata.py::test_iter_trains[1.0]", "extra_data/tests/test_keydata.py::test_split_trains[1.0]", "extra_data/tests/test_keydata.py::test_data_counts[1.0]", "ext...
{ "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-09-27 11:02:16+00:00
bsd-3-clause
239
European-XFEL__EXtra-data-257
diff --git a/.github/dependabot/constraints.txt b/.github/dependabot/constraints.txt index ee3a594..7cfce9f 100644 --- a/.github/dependabot/constraints.txt +++ b/.github/dependabot/constraints.txt @@ -1,3 +1,4 @@ +coverage==6.1.2 cycler==0.11.0 h5py<3.7.0 karabo-bridge==0.6.1 diff --git a/extra_data/keydata.py b/ext...
European-XFEL/EXtra-data
dac73a279511b033937bde2f1b239c0dd80b657b
diff --git a/extra_data/tests/test_keydata.py b/extra_data/tests/test_keydata.py index 2d107b1..3930cfb 100644 --- a/extra_data/tests/test_keydata.py +++ b/extra_data/tests/test_keydata.py @@ -2,8 +2,11 @@ import os import numpy as np import pytest +import h5py + from extra_data import RunDirectory, H5File from e...
AssertionError in .data_counts(labelled=False) @yohey-uemura discovered this over the weekend. When writing this method, I had overlooked the possibility of having a selected train which doesn't correspond to any data for the given source. For instance, in this run, LPD08 starts from train 1232492275, but other sources...
0.0
dac73a279511b033937bde2f1b239c0dd80b657b
[ "extra_data/tests/test_keydata.py::test_data_counts_missing_train" ]
[ "extra_data/tests/test_keydata.py::test_iter_trains[0.5]", "extra_data/tests/test_keydata.py::test_drop_empty_trains[0.5]", "extra_data/tests/test_keydata.py::test_data_counts[0.5]", "extra_data/tests/test_keydata.py::test_get_keydata[0.5]", "extra_data/tests/test_keydata.py::test_file_no_trains[0.5]", "e...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2021-11-29 15:38:38+00:00
bsd-3-clause
240
European-XFEL__EXtra-data-375
diff --git a/extra_data/reader.py b/extra_data/reader.py index 21ad0f4..90643e5 100644 --- a/extra_data/reader.py +++ b/extra_data/reader.py @@ -1398,7 +1398,9 @@ def RunDirectory( if _use_voview and (sel_files == files): voview_file_acc = voview.find_file_valid(path) if voview_file_acc is not No...
European-XFEL/EXtra-data
2ae9f5eafd9a7661c653cbb57eb6f25373fe519c
diff --git a/extra_data/tests/test_voview.py b/extra_data/tests/test_voview.py index 3f0bb96..3179802 100644 --- a/extra_data/tests/test_voview.py +++ b/extra_data/tests/test_voview.py @@ -35,6 +35,10 @@ def test_use_voview(mock_spb_raw_run, tmp_path): assert 'SPB_DET_AGIPD1M-1/DET/0CH0:xtdf' in run.instrument_sou...
RunDirectory does not work as context manager when voview file present [In the Jungfrau correction notebook, the raw run files are opened using a context manager](https://git.xfel.eu/detectors/pycalibration/-/blob/master/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb#L697). This works fine when no v...
0.0
2ae9f5eafd9a7661c653cbb57eb6f25373fe519c
[ "extra_data/tests/test_voview.py::test_use_voview[0.5]", "extra_data/tests/test_voview.py::test_use_voview[1.0]" ]
[ "extra_data/tests/test_voview.py::test_main[0.5]", "extra_data/tests/test_voview.py::test_combine_voview[0.5]", "extra_data/tests/test_voview.py::test_main[1.0]", "extra_data/tests/test_voview.py::test_combine_voview[1.0]", "extra_data/tests/test_voview.py::test_voview_paths" ]
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2023-01-26 17:04:14+00:00
bsd-3-clause
241
Eyepea__aiosip-111
diff --git a/aiosip/transaction.py b/aiosip/transaction.py index da61942..4f2b0ab 100644 --- a/aiosip/transaction.py +++ b/aiosip/transaction.py @@ -145,6 +145,9 @@ class FutureTransaction(BaseTransaction): self.dialog.end_transaction(self) def _result(self, msg): + if self.authentification: + ...
Eyepea/aiosip
3219ca46cdfd115a72101d92cd1f717f78d9f7b9
diff --git a/tests/test_sip_scenario.py b/tests/test_sip_scenario.py index d38e7c3..fdb1a89 100644 --- a/tests/test_sip_scenario.py +++ b/tests/test_sip_scenario.py @@ -92,6 +92,53 @@ async def test_authentication(test_server, protocol, loop, from_details, to_deta await app.close() +async def test_authenticati...
Improper handling of 401 authentication failures In a call flow such as * send REGISTER * get 401 response with auth challenge * send REGISTER with valid authentication * get 401 response with no challenge (ie: your credentials are fine, but still denied) The client will continue to retransmit the request wit...
0.0
3219ca46cdfd115a72101d92cd1f717f78d9f7b9
[ "tests/test_sip_scenario.py::test_notify[tcp]" ]
[]
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2018-04-23 21:51:49+00:00
apache-2.0
242
F5Networks__f5-icontrol-rest-python-115
diff --git a/icontrol/exceptions.py b/icontrol/exceptions.py index 81aed7f..c897800 100644 --- a/icontrol/exceptions.py +++ b/icontrol/exceptions.py @@ -51,3 +51,9 @@ class InvalidInstanceNameOrFolder(BigIPInvalidURL): class InvalidSuffixCollection(BigIPInvalidURL): # must start with a '/' since there may be a pa...
F5Networks/f5-icontrol-rest-python
5c43b0f6424a5f495c50fd2a318e172d5c3d7e37
diff --git a/conftest.py b/conftest.py index d11adba..b882e7b 100644 --- a/conftest.py +++ b/conftest.py @@ -93,3 +93,8 @@ def POST_URL(opt_bigip, opt_port): def FAKE_URL(opt_bigip, opt_port): fake_url = 'https://' + opt_bigip + ':' + opt_port + '/mgmt/tm/bogus/' return fake_url + + +@pytest.fixture +def BAS...
Requests should be able to specify the subPath in addition to partition and name In order to service the issue https://github.com/F5Networks/f5-common-python/issues/468, the icontrolsession needs to be able to support a subPath keyword argument to requests. This allows a consumer to get access to an object created in a...
0.0
5c43b0f6424a5f495c50fd2a318e172d5c3d7e37
[ "icontrol/test/test_session.py::test_correct_uri_construction_partitionless_and_nameless_subpath", "icontrol/test/test_session.py::test_correct_uri_construction_nameless_subpath", "icontrol/test/test_session.py::test_correct_uri_construction_partitionless_and_suffixless_subpath", "icontrol/test/test_session.p...
[ "icontrol/test/test_session.py::test_wrapped_delete_207_fail", "icontrol/test/test_session.py::test_wrapped_post_success_with_json_and_data", "icontrol/test/test_session.py::test_wrapped_get_207_fail", "icontrol/test/test_session.py::test_wrapped_put_success_with_data", "icontrol/test/test_session.py::test_...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2016-09-21 04:29:30+00:00
apache-2.0
243
F5Networks__f5-icontrol-rest-python-124
diff --git a/icontrol/session.py b/icontrol/session.py index 6abdb0a..376541f 100644 --- a/icontrol/session.py +++ b/icontrol/session.py @@ -58,7 +58,7 @@ against the BigIP REST Server, by pre- and post- processing the above methods. """ from distutils.version import StrictVersion -import functools +from icontrol i...
F5Networks/f5-icontrol-rest-python
4c5067c403a0018bd7b26bc64f43056a1fc54b6e
diff --git a/icontrol/test/unit/test_session.py b/icontrol/test/unit/test_session.py index e1aa136..240505c 100644 --- a/icontrol/test/unit/test_session.py +++ b/icontrol/test/unit/test_session.py @@ -15,8 +15,11 @@ import mock import pytest +from icontrol import __version__ as VERSION from icontrol import session...
Update the User-Agent to include library and version Add the library and version to the user agent header that is sent to the BIG-IP so that it can be logged to track usage and help debug problems. This needs to be done in a way that allows users of this library to add additional strings to the end of the header. T...
0.0
4c5067c403a0018bd7b26bc64f43056a1fc54b6e
[ "icontrol/test/unit/test_session.py::test__append_user_agent", "icontrol/test/unit/test_session.py::test_append_user_agent_empty_start", "icontrol/test/unit/test_session.py::test___init__user_agent", "icontrol/test/unit/test_session.py::test___init__with_additional_user_agent" ]
[ "icontrol/test/unit/test_session.py::test_incorrect_uri_construction_bad_scheme", "icontrol/test/unit/test_session.py::test_correct_uri_construction_partitionless_subpath", "icontrol/test/unit/test_session.py::test_iCRS_with_invalid_construction", "icontrol/test/unit/test_session.py::test_incorrect_uri_constr...
{ "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2016-11-23 05:04:06+00:00
apache-2.0
244
F5Networks__f5-icontrol-rest-python-125
diff --git a/icontrol/session.py b/icontrol/session.py index 376541f..d05ec3f 100644 --- a/icontrol/session.py +++ b/icontrol/session.py @@ -86,11 +86,22 @@ def _validate_icruri(base_uri): scheme, netloc, path, _, _ = urlsplit(base_uri) if scheme != 'https': raise InvalidScheme(scheme) - if not pa...
F5Networks/f5-icontrol-rest-python
6499f3c6a59ebaa3863b9230a52c200b4f1762a4
diff --git a/icontrol/test/unit/test_session.py b/icontrol/test/unit/test_session.py index 240505c..9742ae4 100644 --- a/icontrol/test/unit/test_session.py +++ b/icontrol/test/unit/test_session.py @@ -55,6 +55,26 @@ def uparts_with_subpath(): return parts_dict +@pytest.fixture() +def uparts_shared(): + part...
support rest-proxy URI iWorkflow / BIG-IQ (?) support REST proxy URI. This makes it possible to apply tenant RBAC on the REST endpoints (i.e. limit a user to only be able to modify a single BIG-IP LTM pool in a single Partition). Documented here: https://devcentral.f5.com/wiki/iControl.REST_proxy_APIs.ashx Example o...
0.0
6499f3c6a59ebaa3863b9230a52c200b4f1762a4
[ "icontrol/test/unit/test_session.py::test_correct_uri_construction_mgmt_shared", "icontrol/test/unit/test_session.py::test_incorrect_uri_construction_bad_mgmt_path", "icontrol/test/unit/test_session.py::test_correct_uri_construction_mgmt_cm" ]
[ "icontrol/test/unit/test_session.py::test_wrapped_delete_207_fail", "icontrol/test/unit/test_session.py::test_correct_uri_construction_partitionless_and_nameless", "icontrol/test/unit/test_session.py::test_wrapped_get_success_with_suffix", "icontrol/test/unit/test_session.py::test_wrapped_post_success_with_js...
{ "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2016-12-22 01:35:09+00:00
apache-2.0
245
FactoryBoy__factory_boy-1006
diff --git a/docs/reference.rst b/docs/reference.rst index a7e9be0..9efd1a2 100644 --- a/docs/reference.rst +++ b/docs/reference.rst @@ -907,21 +907,22 @@ return value of the method: Transformer """"""""""" -.. class:: Transformer(transform, value) +.. class:: Transformer(default_value, *, transform) A :class:`T...
FactoryBoy/factory_boy
53b34d504fad05dd1887a7eb0056ce9516fd4646
diff --git a/tests/test_declarations.py b/tests/test_declarations.py index c9458ff..c49bbba 100644 --- a/tests/test_declarations.py +++ b/tests/test_declarations.py @@ -134,7 +134,7 @@ class IteratorTestCase(unittest.TestCase): class TransformerTestCase(unittest.TestCase): def test_transform(self): - t =...
The unreleased `Transformer` has a conflicting API with the overall design #### Description For most declarations, I can override the default mechanism by passing an explicit value: ```python >>> UserFactory().email "john.doe@example.org" >>> UserFactory(email="jane.doe@example.org").email "jane.doe@example.org...
0.0
53b34d504fad05dd1887a7eb0056ce9516fd4646
[ "tests/test_declarations.py::OrderedDeclarationTestCase::test_errors", "tests/test_declarations.py::DigTestCase::test_chaining", "tests/test_declarations.py::MaybeTestCase::test_init", "tests/test_declarations.py::SelfAttributeTestCase::test_default", "tests/test_declarations.py::SelfAttributeTestCase::test...
[]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2023-03-17 19:56:38+00:00
mit
246
FactoryBoy__factory_boy-1045
diff --git a/docs/orms.rst b/docs/orms.rst index 3839707..5967e1b 100644 --- a/docs/orms.rst +++ b/docs/orms.rst @@ -128,7 +128,11 @@ Extra fields .. method:: __init__(self, password) - :param str password: Default password. + :param str or None password: Default password. + + .. note:: When t...
FactoryBoy/factory_boy
63c2df43ea640adb08d68c2b09c542667691f588
diff --git a/tests/test_django.py b/tests/test_django.py index 19729e0..066d792 100644 --- a/tests/test_django.py +++ b/tests/test_django.py @@ -941,6 +941,22 @@ class PreventSignalsTestCase(django_test.TestCase): self.assertTrue(self.handlers.created_during_instantiation.called) + def test_signal_recei...
Unusable password generator for Django #### The problem The recently added `Password` generator for Django is helpful, but it's not clear how to use it to create an unusable password (similar to calling `set_unusable_password` on the generated user). #### Proposed solution Django's `set_unusable_password` is a...
0.0
63c2df43ea640adb08d68c2b09c542667691f588
[ "tests/test_django.py::PreventSignalsTestCase::test_signal_receiver_order_restored_after_mute_signals" ]
[ "tests/test_django.py::ModelTests::test_cross_database", "tests/test_django.py::ModelTests::test_unset_model", "tests/test_django.py::DjangoPkSequenceTestCase::test_pk_creation", "tests/test_django.py::DjangoPkSequenceTestCase::test_pk_first", "tests/test_django.py::DjangoPkSequenceTestCase::test_pk_force_v...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2023-09-20 14:12:11+00:00
mit
247
FactoryBoy__factory_boy-752
diff --git a/docs/changelog.rst b/docs/changelog.rst index 0c6043a..5e919bc 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -43,6 +43,10 @@ The following aliases were removed: - :py:meth:`get_random_state()` now represents the state of Faker and ``factory_boy`` fuzzy attributes. - Add SQLAlchemy `...
FactoryBoy/factory_boy
85543a502eed7a3d5de17669a98e761e92a78add
diff --git a/tests/test_dev_experience.py b/tests/test_dev_experience.py new file mode 100644 index 0000000..6677b08 --- /dev/null +++ b/tests/test_dev_experience.py @@ -0,0 +1,58 @@ +# Copyright: See the LICENSE file. + +"""Tests about developer experience: help messages, errors, etc.""" + +import collections +import ...
'Options' object has no attribute 'pre_declarations' is too ambiguous #### The problem Typo incorrectly specifying the Model for a Factory. #### Proposed solution Check if any specified factories are actually Models, in which case give a more clear error message. #### Extra notes Thanks for the good work on th...
0.0
85543a502eed7a3d5de17669a98e761e92a78add
[ "tests/test_dev_experience.py::DeclarationTests::test_subfactory_to_factorylike_model", "tests/test_dev_experience.py::DeclarationTests::test_subfactory_to_model" ]
[]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2020-06-26 08:09:30+00:00
mit
248
Fatal1ty__mashumaro-122
diff --git a/mashumaro/jsonschema/schema.py b/mashumaro/jsonschema/schema.py index 90fa19f..65c3ec3 100644 --- a/mashumaro/jsonschema/schema.py +++ b/mashumaro/jsonschema/schema.py @@ -154,7 +154,7 @@ class Instance: self.__builder = CodeBuilder(self.origin_type, type_args) self.__builder.rese...
Fatal1ty/mashumaro
41b90d2a0505c2a5d463150d880df8cf917227a8
diff --git a/tests/test_jsonschema/test_jsonschema_generation.py b/tests/test_jsonschema/test_jsonschema_generation.py index 875d719..626f977 100644 --- a/tests/test_jsonschema/test_jsonschema_generation.py +++ b/tests/test_jsonschema/test_jsonschema_generation.py @@ -126,6 +126,7 @@ def test_jsonschema_for_dataclass()...
JSON Schema generator doesn't honor `default_factory` * mashumaro version: 3.7 * Python version: 3.11 (but 3.10 is the same) * Operating System: macOS Ventura ### Description See the full code and output below. When using default value, directly or via `field(default=...)` the schema correctly recognizes the fi...
0.0
41b90d2a0505c2a5d463150d880df8cf917227a8
[ "tests/test_jsonschema/test_jsonschema_generation.py::test_jsonschema_for_dataclass" ]
[ "tests/test_jsonschema/test_jsonschema_generation.py::test_jsonschema_for_any", "tests/test_jsonschema/test_jsonschema_generation.py::test_jsonschema_for_literal", "tests/test_jsonschema/test_jsonschema_generation.py::test_jsonschema_for_special_typing_primitives", "tests/test_jsonschema/test_jsonschema_gener...
{ "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2023-06-30 21:12:15+00:00
apache-2.0
249
Fatal1ty__mashumaro-142
diff --git a/mashumaro/jsonschema/schema.py b/mashumaro/jsonschema/schema.py index 9dc6edc..34760e8 100644 --- a/mashumaro/jsonschema/schema.py +++ b/mashumaro/jsonschema/schema.py @@ -178,7 +178,7 @@ class Instance: if f_default is MISSING: f_default = self._self_builder.namespace.get(f_n...
Fatal1ty/mashumaro
89f4b1ad2048877e72dc4c86a3c532683753ea8a
diff --git a/tests/test_jsonschema/test_jsonschema_generation.py b/tests/test_jsonschema/test_jsonschema_generation.py index 5e88282..6b5404d 100644 --- a/tests/test_jsonschema/test_jsonschema_generation.py +++ b/tests/test_jsonschema/test_jsonschema_generation.py @@ -118,6 +118,30 @@ if PY_39_MIN: Ts = TypeVarTuple("...
Third party default is not reflected in the generated JSON Schema * mashumaro version: 3.9 * Python version: 3.11 * Operating System: MacOS 3.13.1 ### Description ```python from dataclasses import dataclass from mashumaro.config import BaseConfig from mashumaro.jsonschema import build_json_schema def as_s...
0.0
89f4b1ad2048877e72dc4c86a3c532683753ea8a
[ "tests/test_jsonschema/test_jsonschema_generation.py::test_third_party_overridden_serialization_method" ]
[ "tests/test_jsonschema/test_jsonschema_generation.py::test_jsonschema_for_dataclass", "tests/test_jsonschema/test_jsonschema_generation.py::test_jsonschema_for_any", "tests/test_jsonschema/test_jsonschema_generation.py::test_jsonschema_for_literal", "tests/test_jsonschema/test_jsonschema_generation.py::test_j...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2023-08-21 15:43:35+00:00
apache-2.0
250
Fatal1ty__mashumaro-146
diff --git a/mashumaro/core/meta/code/builder.py b/mashumaro/core/meta/code/builder.py index 7ba9d0e..00c16db 100644 --- a/mashumaro/core/meta/code/builder.py +++ b/mashumaro/core/meta/code/builder.py @@ -330,6 +330,7 @@ class CodeBuilder: # prevent RecursionError field=discr.f...
Fatal1ty/mashumaro
8c32badea5a5005e2243fd8c0ec8aa0dcc6b8c5d
diff --git a/tests/test_discriminated_unions/test_parent_by_field.py b/tests/test_discriminated_unions/test_parent_by_field.py index 1f0b7d0..d1a9b5b 100644 --- a/tests/test_discriminated_unions/test_parent_by_field.py +++ b/tests/test_discriminated_unions/test_parent_by_field.py @@ -145,6 +145,33 @@ class Bar(DataClas...
Allow discrimination based on a key that is not part of the model **Is your feature request related to a problem? Please describe.** I'am using mashumaro as (de)serialization backend of my [AST library](https://github.com/mishamsk/pyoak/) What this means is that I (de)serialize huge (millions of nodes) nested datac...
0.0
8c32badea5a5005e2243fd8c0ec8aa0dcc6b8c5d
[ "tests/test_discriminated_unions/test_parent_by_field.py::test_by_subtypes[variant_data0-variant0]", "tests/test_discriminated_unions/test_parent_by_field.py::test_by_subtypes[variant_data1-variant1]", "tests/test_discriminated_unions/test_parent_by_field.py::test_by_subtypes[variant_data2-variant2]", "tests/...
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_issue_reference", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2023-08-23 20:11:28+00:00
apache-2.0
251
Fatal1ty__mashumaro-185
diff --git a/README.md b/README.md index e224048..3dc602a 100644 --- a/README.md +++ b/README.md @@ -2020,7 +2020,7 @@ It has the following parameters that affects class selection rules: by which all the variants can be distinguished * `include_subtypes` — allow to deserialize subclasses * `include_supertypes` — a...
Fatal1ty/mashumaro
6cd3924476872a913faf68b5165e2620c645abbd
diff --git a/tests/test_discriminated_unions/test_parent_via_config.py b/tests/test_discriminated_unions/test_parent_via_config.py index 6b9dd90..d73f4db 100644 --- a/tests/test_discriminated_unions/test_parent_via_config.py +++ b/tests/test_discriminated_unions/test_parent_via_config.py @@ -426,6 +426,52 @@ class _Var...
Allow for more complex logic for subclass Discrimnator field matching **Is your feature request related to a problem? Please describe.** In building a deserializer for a large complex configuration file, some subclasses have identical shapes, but it would still be useful to distinguish by a `type` field. Unfortunately...
0.0
6cd3924476872a913faf68b5165e2620c645abbd
[ "tests/test_discriminated_unions/test_parent_via_config.py::test_by_subtypes_with_custom_variant_tagger_and_multiple_tags", "tests/test_discriminated_unions/test_union_by_field.py::test_by_field_with_subtypes_with_custom_variant_tagger_and_multiple_tags" ]
[ "tests/test_discriminated_unions/test_parent_via_config.py::test_by_subtypes", "tests/test_discriminated_unions/test_parent_via_config.py::test_by_supertypes", "tests/test_discriminated_unions/test_parent_via_config.py::test_by_field_with_subtypes", "tests/test_discriminated_unions/test_parent_via_config.py::...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2023-12-23 12:39:31+00:00
apache-2.0
252
Fatal1ty__mashumaro-94
diff --git a/mashumaro/config.py b/mashumaro/config.py index 719e249..6c8bad4 100644 --- a/mashumaro/config.py +++ b/mashumaro/config.py @@ -10,6 +10,15 @@ else: from typing_extensions import Literal # type: ignore +__all__ = [ + "BaseConfig", + "TO_DICT_ADD_BY_ALIAS_FLAG", + "TO_DICT_ADD_OMIT_NONE_F...
Fatal1ty/mashumaro
76381804fe0ddd6eec7b9aabb7dddb950eca2b47
diff --git a/tests/test_config.py b/tests/test_config.py index 17f0abb..c7ffa68 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -142,6 +142,7 @@ def test_serialization_strategy(): class DataClass(DataClassDictMixin): a: int b: str + c: int class Config(BaseConfig...
Inconsistent Application of serialization_strategy * mashumaro version: 3.2 and 3.3 * Python version: 3.10 * Operating System: macOS ### Description There is an apparent regression in serialization behavior when the serialization_strategy object is being used and there are multiple properties of the same type o...
0.0
76381804fe0ddd6eec7b9aabb7dddb950eca2b47
[ "tests/test_config.py::test_serialization_strategy", "tests/test_forward_refs/test_baz.py::test_class_with_base_in_another_module" ]
[ "tests/test_config.py::test_config_without_base_config_base", "tests/test_config.py::test_debug_false_option", "tests/test_config.py::test_omit_none_code_generation_flag", "tests/test_config.py::test_no_omit_none_code_generation_flag", "tests/test_config.py::test_omit_none_flag_for_inner_class_without_it", ...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2023-01-06 19:50:23+00:00
apache-2.0
253
GAA-UAM__scikit-fda-142
diff --git a/skfda/representation/_functional_data.py b/skfda/representation/_functional_data.py index a1458587..e423b205 100644 --- a/skfda/representation/_functional_data.py +++ b/skfda/representation/_functional_data.py @@ -6,16 +6,15 @@ objects of the package and contains some commons methods. from abc import AB...
GAA-UAM/scikit-fda
2e5f88a3ba9c97696fabcf44b86579d879a851d3
diff --git a/tests/test_grid.py b/tests/test_grid.py index 483a5cab..52a31d98 100644 --- a/tests/test_grid.py +++ b/tests/test_grid.py @@ -1,10 +1,10 @@ import unittest -import numpy as np import scipy.stats.mstats -from skfda.exploratory import stats +import numpy as np from skfda import FDataGrid +from skfda.e...
Problem with pandas methods After update the neighbors brach (#112), I have an error on this line: https://github.com/GAA-UAM/scikit-fda/blob/91d96eceee49400962515b8b10ee21d842fdc97f/examples/plot_k_neighbors_classification.py#L61 > Traceback (most recent call last): File "plot_k_neighbors_classification.py", ...
0.0
2e5f88a3ba9c97696fabcf44b86579d879a851d3
[ "tests/test_grid.py::TestFDataGrid::test_copy_equals", "tests/test_pandas.py::TestPandas::test_fdatagrid_series" ]
[ "tests/test_grid.py::TestFDataGrid::test_concatenate", "tests/test_grid.py::TestFDataGrid::test_concatenate_coordinates", "tests/test_grid.py::TestFDataGrid::test_coordinates", "tests/test_grid.py::TestFDataGrid::test_gmean", "tests/test_grid.py::TestFDataGrid::test_init", "tests/test_grid.py::TestFDataGr...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2019-07-25 13:46:16+00:00
bsd-3-clause
255
GIScience__openrouteservice-py-17
diff --git a/openrouteservice/isochrones.py b/openrouteservice/isochrones.py index 5e6850c..14a8d73 100644 --- a/openrouteservice/isochrones.py +++ b/openrouteservice/isochrones.py @@ -20,16 +20,17 @@ from openrouteservice import convert def isochrones(client, locations, - profile='driving-car',...
GIScience/openrouteservice-py
0d3a56f242f668429f91f87dc9b4e7baf4fc581c
diff --git a/test/test_client.py b/test/test_client.py index e45e60d..12aeb1a 100644 --- a/test/test_client.py +++ b/test/test_client.py @@ -74,19 +74,13 @@ class ClientTest(_test.TestCase): # Assume more queries_per_minute than allowed by API policy and # don't allow retries if API throws 'rate exce...
Implement smoothing parameter for isochrone endpoint
0.0
0d3a56f242f668429f91f87dc9b4e7baf4fc581c
[ "test/test_isochrones.py::DistanceMatrixTest::test_all_params" ]
[ "test/test_isochrones.py::DistanceMatrixTest::test_basic_params", "test/test_isochrones.py::DistanceMatrixTest::test_units_with_time", "test/test_distance_matrix.py::DistanceMatrixTest::test_basic_params", "test/test_distance_matrix.py::DistanceMatrixTest::test_all_params", "test/test_client.py::ClientTest:...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2018-09-27 08:53:08+00:00
apache-2.0
256
GIScience__openrouteservice-py-31
diff --git a/openrouteservice/__init__.py b/openrouteservice/__init__.py index 6f697ff..d88a857 100644 --- a/openrouteservice/__init__.py +++ b/openrouteservice/__init__.py @@ -17,7 +17,7 @@ # the License. # -__version__ = "1.1.6" +__version__ = "1.1.7" # Make sure QGIS plugin can import openrouteservice-py di...
GIScience/openrouteservice-py
a93c3ac62f31de39e92901598e779dde5ad7a306
diff --git a/test/test_geocode.py b/test/test_geocode.py index c4d8ab6..24ecc80 100644 --- a/test/test_geocode.py +++ b/test/test_geocode.py @@ -83,7 +83,7 @@ class GeocodingPeliasTest(_test.TestCase): self.assertEqual(1, len(responses.calls)) self.assertURLEqual( - 'https://api.openroute...
'Country' restriction has wrong parameter `boundary.country` instead of `country` for `/search` and `/reverse`, `/autocomplete` is fine.
0.0
a93c3ac62f31de39e92901598e779dde5ad7a306
[ "test/test_geocode.py::GeocodingPeliasTest::test_full_reverse", "test/test_geocode.py::GeocodingPeliasTest::test_full_search", "test/test_isochrones.py::IsochronesTest::test_all_params", "test/test_isochrones.py::IsochronesTest::test_basic_params" ]
[ "test/test_geocode.py::GeocodingPeliasTest::test_full_autocomplete", "test/test_geocode.py::GeocodingPeliasTest::test_full_structured" ]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2019-01-24 06:25:17+00:00
apache-2.0
257
GIScience__openrouteservice-py-42
diff --git a/docs/source/openrouteservice.rst b/docs/source/openrouteservice.rst index 0139f7b..fff8892 100644 --- a/docs/source/openrouteservice.rst +++ b/docs/source/openrouteservice.rst @@ -76,14 +76,6 @@ openrouteservice\.optimization module :undoc-members: :show-inheritance: -openrouteservice\.validato...
GIScience/openrouteservice-py
e8eb1e0ad4e13c810440c087512080b9ecf809b5
diff --git a/test/test_helper.py b/test/test_helper.py index 08afc2c..916002e 100644 --- a/test/test_helper.py +++ b/test/test_helper.py @@ -27,10 +27,16 @@ ENDPOINT_DICT = { 'suppress_warnings': False, 'instructions': 'false', 'instructions_format': 'html', + 'alternative_routes': { +...
Add skip_segments and alternative_routes parameters
0.0
e8eb1e0ad4e13c810440c087512080b9ecf809b5
[ "test/test_optimization.py::OptimizationTest::test_jobs_vehicles_classes", "test/test_optimization.py::OptimizationTest::test_full_optimization" ]
[]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-05-11 19:29:16+00:00
apache-2.0
258
GIScience__openrouteservice-py-67
diff --git a/openrouteservice/client.py b/openrouteservice/client.py index ea763c4..3711d80 100644 --- a/openrouteservice/client.py +++ b/openrouteservice/client.py @@ -20,6 +20,7 @@ from datetime import datetime from datetime import timedelta +import cgi import functools import requests import json @@ -257,10 +...
GIScience/openrouteservice-py
ed5e5cd8ec406fad05381bf7bda64a77ce4bfe89
diff --git a/test/test_directions.py b/test/test_directions.py index b6e2db8..6fb3b66 100644 --- a/test/test_directions.py +++ b/test/test_directions.py @@ -25,7 +25,7 @@ import test as _test from copy import deepcopy from openrouteservice import exceptions -from test.test_helper import ENDPOINT_DICT +from test.tes...
JSONDecodeError when requesting directions in gpx format <!-- If you have a question rather than an actual issue, pls use our forum:--> <!-- https://ask.openrouteservice.org/c/sdks--> #### Here's what I did <!-- best paste the results of 'dry_run' (see README.md), so we can see your configuration --> ```coord...
0.0
ed5e5cd8ec406fad05381bf7bda64a77ce4bfe89
[ "test/test_directions.py::DirectionsTest::test_directions_gpx", "test/test_directions.py::DirectionsTest::test_optimized_waypoints" ]
[ "test/test_directions.py::DirectionsTest::test_format_out_deprecation", "test/test_directions.py::DirectionsTest::test_optimized_waypoints_shuffle" ]
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2021-07-25 19:39:05+00:00
apache-2.0
259
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
GSTT-CSC__hazen-363
diff --git a/hazenlib/__init__.py b/hazenlib/__init__.py index dafcf1a..309c585 100644 --- a/hazenlib/__init__.py +++ b/hazenlib/__init__.py @@ -112,7 +112,7 @@ import importlib import inspect import logging import sys -import pprint +import json import os from docopt import docopt @@ -156,7 +156,6 @@ def init_t...
GSTT-CSC/hazen
5d9e4d747ccd1c908ac5cc0bfbbdb60c470e9bfb
diff --git a/tests/test_uniformity.py b/tests/test_uniformity.py index 8fe2611..2fa43ec 100644 --- a/tests/test_uniformity.py +++ b/tests/test_uniformity.py @@ -18,8 +18,8 @@ class TestUniformity(unittest.TestCase): def test_uniformity(self): results = self.uniformity_task.run() key = self.unifor...
Improve displaying results on terminal PrettyPrinter could be replaced with `json.dumps()` that can format and display the result dictionary in a simple structured way with less configuration needed. currently with PrettyPrint: (more compact) <img width="759" alt="Screenshot 2023-07-15 at 18 27 16" src="https://git...
0.0
5d9e4d747ccd1c908ac5cc0bfbbdb60c470e9bfb
[ "tests/test_uniformity.py::TestUniformity::test_uniformity", "tests/test_uniformity.py::TestSagUniformity::test_uniformity", "tests/test_uniformity.py::TestCorUniformity::test_uniformity" ]
[]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2023-07-28 18:22:43+00:00
apache-2.0
261
GazzolaLab__PyElastica-123
diff --git a/docs/api/damping.rst b/docs/api/damping.rst index 510496e..3daa919 100644 --- a/docs/api/damping.rst +++ b/docs/api/damping.rst @@ -15,6 +15,7 @@ Damping is used to numerically stabilize the simulations. DamperBase ExponentialDamper + LaplaceDissipationFilter Compatibility ~~~~~~~~~~~~~ @@ ...
GazzolaLab/PyElastica
2008f299028561d232f80e7bd993585e96615309
diff --git a/tests/test_dissipation.py b/tests/test_dissipation.py index cfa1637..9ea021a 100644 --- a/tests/test_dissipation.py +++ b/tests/test_dissipation.py @@ -1,11 +1,15 @@ __doc__ = """ Test Dissipation module for in Elastica implementation""" # System imports +from elastica.dissipation import DamperBase, Ex...
Filter Damping addition to the damping module The Filter Damping method (adapted from [here](https://aip.scitation.org/doi/full/10.1063/1.2728935?casa_token=9v62oae0XN0AAAAA%3AhfV-OcYFBb_uB6cE0yBfsdf9HMIem1vZ0JJVhoJT-WNgxoM5jPXAPfqctpkn3aXP5wN75sVnHLFw)), which basically damps velocities similar to a low pass filter, h...
0.0
2008f299028561d232f80e7bd993585e96615309
[ "tests/test_dissipation.py::test_exponential_damper", "tests/test_dissipation.py::test_laplace_dissipation_filter_for_constant_field[2]", "tests/test_dissipation.py::test_laplace_dissipation_filter_init[3]", "tests/test_dissipation.py::test_damper_base_properties_access", "tests/test_dissipation.py::test_la...
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_issue_reference", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-07-04 00:44:47+00:00
mit
262
GazzolaLab__PyElastica-249
diff --git a/elastica/__init__.py b/elastica/__init__.py index 7622bf2..f60bc90 100644 --- a/elastica/__init__.py +++ b/elastica/__init__.py @@ -71,3 +71,4 @@ from elastica.timestepper import ( ) from elastica.memory_block.memory_block_rigid_body import MemoryBlockRigidBody from elastica.memory_block.memory_block_ro...
GazzolaLab/PyElastica
b271ad41fbeaa78fbd03887573b9a364c949ef5b
diff --git a/tests/test_restart.py b/tests/test_restart.py index 0ba52df..0f814b2 100644 --- a/tests/test_restart.py +++ b/tests/test_restart.py @@ -12,6 +12,7 @@ from elastica.modules import ( CallBacks, ) from elastica.restart import save_state, load_state +import elastica as ea class GenericSimulatorClas...
Possible Bug: Test restart functionality and applying constrains We should test the below line in the restart code. We suspect it creates incorrect results, when we load and time-step. https://github.com/GazzolaLab/PyElastica/blob/7b3fe2d0204a175c9e5e64265c70b9577b4ca8c9/elastica/restart.py#L92-L93
0.0
b271ad41fbeaa78fbd03887573b9a364c949ef5b
[ "tests/test_restart.py::TestRestartFunctionsWithFeaturesUsingCosseratRod::test_save_restart_run_sim[1.0]", "tests/test_restart.py::TestRestartFunctionsWithFeaturesUsingCosseratRod::test_save_restart_run_sim[0.2]" ]
[ "tests/test_restart.py::TestRestartFunctionsWithFeaturesUsingRigidBodies::test_restart_save_load", "tests/test_restart.py::TestRestartFunctionsWithFeaturesUsingCosseratRod::test_restart_save_load" ]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2023-05-11 16:58:29+00:00
mit
263
GazzolaLab__PyElastica-98
diff --git a/elastica/interaction.py b/elastica/interaction.py index 7504670..587598d 100644 --- a/elastica/interaction.py +++ b/elastica/interaction.py @@ -8,14 +8,11 @@ __all__ = [ import numpy as np -from elastica.utils import MaxDimension from elastica.external_forces import NoForces -import numba from n...
GazzolaLab/PyElastica
cbc24d9865532d5dbc87e1c5bd18645a02e1c498
diff --git a/tests/test_interaction.py b/tests/test_interaction.py index 82ac01a..a7c7a84 100644 --- a/tests/test_interaction.py +++ b/tests/test_interaction.py @@ -8,6 +8,7 @@ from elastica.interaction import ( InteractionPlane, find_slipping_elements, AnisotropicFrictionalPlane, + node_to_element_ma...
Converting nodal velocities to element velocities In PyElastica we store `velocity` on nodes and for some computations (i.e. rod damping, plane damping or stokes flow) we have to convert `velocity` from `nodes` to `elements`. Currently we are averaging the neigboring node velocity to compute element velocity using the ...
0.0
cbc24d9865532d5dbc87e1c5bd18645a02e1c498
[ "tests/test_interaction.py::TestInteractionPlane::test_interaction_without_contact[2]", "tests/test_interaction.py::TestInteractionPlane::test_interaction_without_contact[3]", "tests/test_interaction.py::TestInteractionPlane::test_interaction_without_contact[5]", "tests/test_interaction.py::TestInteractionPla...
[]
{ "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-06-01 04:26:40+00:00
mit
264
GeneralMills__pytrends-409
diff --git a/README.md b/README.md index d348f16..3d4d350 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Only good until Google changes their backend again :-P. When that happens feel f ## Requirements -* Written for both Python 2.7+ and Python 3.3+ +* Written for Python 3.3+ * Requires Requests, lxml, ...
GeneralMills/pytrends
938ab0b7f71ce3827605322cf4475d1756f40909
diff --git a/pytrends/test_trendReq.py b/pytrends/test_trendReq.py index 80a4748..8c3efd3 100644 --- a/pytrends/test_trendReq.py +++ b/pytrends/test_trendReq.py @@ -1,4 +1,5 @@ from unittest import TestCase +import pandas.api.types as ptypes from pytrends.request import TrendReq @@ -29,6 +30,31 @@ class TestTrend...
Pytrends error 400 Hi all, I am trying to pull some data from Google Trends but I keep getting the error "The request failed: Google returned a response with code 400.". I think it might has something to do with pytrend.interest_over_time() but I haven't been able to fix it. import csv import time import pand...
0.0
938ab0b7f71ce3827605322cf4475d1756f40909
[ "pytrends/test_trendReq.py::TestTrendReq::test_interest_over_time_bad_gprop", "pytrends/test_trendReq.py::TestTrendReq::test_ispartial_dtype", "pytrends/test_trendReq.py::TestTrendReq::test_ispartial_dtype_timeframe_all" ]
[ "pytrends/test_trendReq.py::TestTrendReq::test__get_data", "pytrends/test_trendReq.py::TestTrendReq::test__tokens", "pytrends/test_trendReq.py::TestTrendReq::test_build_payload", "pytrends/test_trendReq.py::TestTrendReq::test_interest_by_region", "pytrends/test_trendReq.py::TestTrendReq::test_interest_over_...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2020-06-09 14:34:48+00:00
apache-2.0
265
GeneralMills__pytrends-410
diff --git a/README.md b/README.md index d348f16..3d4d350 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Only good until Google changes their backend again :-P. When that happens feel f ## Requirements -* Written for both Python 2.7+ and Python 3.3+ +* Written for Python 3.3+ * Requires Requests, lxml, ...
GeneralMills/pytrends
938ab0b7f71ce3827605322cf4475d1756f40909
diff --git a/pytrends/test_trendReq.py b/pytrends/test_trendReq.py index 80a4748..1a70d6b 100644 --- a/pytrends/test_trendReq.py +++ b/pytrends/test_trendReq.py @@ -1,4 +1,5 @@ from unittest import TestCase +import pandas.api.types as ptypes from pytrends.request import TrendReq @@ -47,14 +48,27 @@ class TestTren...
isPartial field dtype is "object" instead of "bool" for gprop='news' and timeframe='all' pytrends 4.7.2 from pytrends.request import TrendReq pytrend = TrendReq() pytrend.build_payload(kw_list=["apple"], gprop='news', timeframe='all') result = pytrend.interest_over_time() print(result.dtypes) Output: apple ...
0.0
938ab0b7f71ce3827605322cf4475d1756f40909
[ "pytrends/test_trendReq.py::TestTrendReq::test_ispartial_dtype", "pytrends/test_trendReq.py::TestTrendReq::test_ispartial_dtype_timeframe_all" ]
[ "pytrends/test_trendReq.py::TestTrendReq::test__get_data", "pytrends/test_trendReq.py::TestTrendReq::test__tokens", "pytrends/test_trendReq.py::TestTrendReq::test_build_payload", "pytrends/test_trendReq.py::TestTrendReq::test_interest_by_region", "pytrends/test_trendReq.py::TestTrendReq::test_interest_over_...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-06-09 15:05:02+00:00
apache-2.0
266
GeneralMills__pytrends-478
diff --git a/README.md b/README.md index 7515d36..d7cf567 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,10 @@ Unofficial API for Google Trends Allows simple interface for automating downloading of reports from Google Trends. Only good until Google changes their backend again :-P. When that happens feel free to ...
GeneralMills/pytrends
bac0caea18817630e98b503a38e9b445e7b5add1
diff --git a/pytrends/test_trendReq.py b/pytrends/test_trendReq.py index 8c3efd3..3e774b9 100644 --- a/pytrends/test_trendReq.py +++ b/pytrends/test_trendReq.py @@ -75,6 +75,11 @@ class TestTrendReq(TestCase): pytrend.build_payload(kw_list=['pizza', 'bagel']) self.assertIsNotNone(pytrend.trending_sear...
Example in readme for extracting topic doesn't work See [notebook](https://colab.research.google.com/drive/13tOcn6AyUGMBqRXcm6hcsVDT8qpEUOld#scrollTo=d057Oqr7GIE2), which follows the topic example in the readme: ``` from pytrends.request import TrendReq pytrend = TrendReq(hl='en-US', tz=360) pytrend.build_paylo...
0.0
bac0caea18817630e98b503a38e9b445e7b5add1
[ "pytrends/test_trendReq.py::TestTrendReq::test_realtime_trending_searches" ]
[ "pytrends/test_trendReq.py::TestTrendReq::test__get_data", "pytrends/test_trendReq.py::TestTrendReq::test__tokens", "pytrends/test_trendReq.py::TestTrendReq::test_build_payload", "pytrends/test_trendReq.py::TestTrendReq::test_interest_by_region", "pytrends/test_trendReq.py::TestTrendReq::test_interest_over_...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-06-02 05:08:47+00:00
apache-2.0
267
GeneralMills__pytrends-509
diff --git a/pytrends/request.py b/pytrends/request.py index 6cb9f8d..446cf41 100644 --- a/pytrends/request.py +++ b/pytrends/request.py @@ -299,13 +299,17 @@ class TrendReq(object): return df # rename the column with the search keyword - df = df[['geoName', 'geoCode', 'value']].set_index...
GeneralMills/pytrends
e1eec7a4822f1a2005a2ab12236c411a1b0ca3c7
diff --git a/pytrends/test_trendReq.py b/pytrends/test_trendReq.py index 3e774b9..6a9f178 100644 --- a/pytrends/test_trendReq.py +++ b/pytrends/test_trendReq.py @@ -60,6 +60,11 @@ class TestTrendReq(TestCase): pytrend.build_payload(kw_list=['pizza', 'bagel']) self.assertIsNotNone(pytrend.interest_by_r...
"['geoCode'] not in index" when request CITY LEVEL interest_by_region Google trends Hi, the pytrends API developers and maintainers, Thank you for developing this great API and I'm now just starting to use it for my research. I recently ran into a key error when I tried to get Google treands data on city level. M...
0.0
e1eec7a4822f1a2005a2ab12236c411a1b0ca3c7
[ "pytrends/test_trendReq.py::TestTrendReq::test_interest_by_region_city_resolution" ]
[ "pytrends/test_trendReq.py::TestTrendReq::test__get_data", "pytrends/test_trendReq.py::TestTrendReq::test__tokens", "pytrends/test_trendReq.py::TestTrendReq::test_build_payload", "pytrends/test_trendReq.py::TestTrendReq::test_interest_by_region", "pytrends/test_trendReq.py::TestTrendReq::test_interest_over_...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2022-02-18 20:36:49+00:00
apache-2.0
268
GeneralMills__pytrends-518
diff --git a/pytrends/request.py b/pytrends/request.py index 446cf41..4644102 100644 --- a/pytrends/request.py +++ b/pytrends/request.py @@ -428,8 +428,7 @@ class TrendReq(object): # forms = {'ajax': 1, 'pn': pn, 'htd': '', 'htv': 'l'} req_json = self._get_data( url=TrendReq.TRENDING_SEAR...
GeneralMills/pytrends
0e887b8510c3023fb57796cb253fef03d688b2f7
diff --git a/pytrends/test_trendReq.py b/pytrends/test_trendReq.py index 6a9f178..ee2253c 100644 --- a/pytrends/test_trendReq.py +++ b/pytrends/test_trendReq.py @@ -85,6 +85,15 @@ class TestTrendReq(TestCase): pytrend.build_payload(kw_list=['pizza', 'bagel']) self.assertIsNotNone(pytrend.realtime_tren...
Bug on "suggestions" when "requests_args" is not empty If requests_args is not empty, then in line 453 of the requests.py, the "self.requests_args" is included as kwargs and line 126 of the _get_data method includes it again. So it causes an error.
0.0
0e887b8510c3023fb57796cb253fef03d688b2f7
[ "pytrends/test_trendReq.py::TestTrendReq::test_interest_over_time_news", "pytrends/test_trendReq.py::TestTrendReq::test_interest_over_time_youtube", "pytrends/test_trendReq.py::TestTrendReq::test_ispartial_dtype", "pytrends/test_trendReq.py::TestTrendReq::test_ispartial_dtype_timeframe_all", "pytrends/test_...
[ "pytrends/test_trendReq.py::TestTrendReq::test__get_data", "pytrends/test_trendReq.py::TestTrendReq::test__tokens", "pytrends/test_trendReq.py::TestTrendReq::test_build_payload", "pytrends/test_trendReq.py::TestTrendReq::test_interest_over_time_bad_gprop", "pytrends/test_trendReq.py::TestTrendReq::test_inte...
{ "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-06-09 11:10:03+00:00
apache-2.0
269
GreenBuildingRegistry__usaddress-scourgify-12
diff --git a/scourgify/normalize.py b/scourgify/normalize.py index 4270b68..8827088 100644 --- a/scourgify/normalize.py +++ b/scourgify/normalize.py @@ -535,7 +535,8 @@ def normalize_occupancy_type(parsed_addr, default=None): default = default if default is not None else 'UNIT' occupancy_type_label = 'Occupan...
GreenBuildingRegistry/usaddress-scourgify
29912c8c00bbb3d5c899fb64772ecf07d9020b1e
diff --git a/scourgify/tests/test_address_normalization.py b/scourgify/tests/test_address_normalization.py index ac8ea09..66a9c42 100644 --- a/scourgify/tests/test_address_normalization.py +++ b/scourgify/tests/test_address_normalization.py @@ -263,6 +263,34 @@ class TestAddressNormalization(TestCase): result ...
Valid occupancy types replaced by 'UNIT' HI there, I appreciate your work on normalizing the US Address library! I notice the following issue: ``` >>> from scourgify import normalize_address_record >>> normalize_address_record('12345 Somewhere Street Apt 1, Town, MA 12345') {'address_line_1': '12345 SOMEWHERE...
0.0
29912c8c00bbb3d5c899fb64772ecf07d9020b1e
[ "scourgify/tests/test_address_normalization.py::TestAddressNormalization::test_normalize_occupancies" ]
[ "scourgify/tests/test_address_normalization.py::TestAddressNormalization::test_normalize_addr_dict", "scourgify/tests/test_address_normalization.py::TestAddressNormalization::test_normalize_addr_str", "scourgify/tests/test_address_normalization.py::TestAddressNormalization::test_normalize_address_record", "sc...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2020-05-14 16:25:16+00:00
mit
270
HBehrens__fixup_shaper_svg-3
diff --git a/fixup_shaper_svg.py b/fixup_shaper_svg.py index 2d304c5..0436b9c 100644 --- a/fixup_shaper_svg.py +++ b/fixup_shaper_svg.py @@ -61,13 +61,14 @@ def fixup_svg(infile, outfile): svg = xml.etree.ElementTree.parse(infile) for elem in svg.iter(): fixup_element(elem) - svg.write(outfile, en...
HBehrens/fixup_shaper_svg
f28e93229db60d18bf6520e900b0ab84da5b6da5
diff --git a/fixup_shaper_svg_tests.py b/fixup_shaper_svg_tests.py index 362aa80..9e91696 100644 --- a/fixup_shaper_svg_tests.py +++ b/fixup_shaper_svg_tests.py @@ -1,6 +1,7 @@ import unittest +import io -from fixup_shaper_svg import length_value_without_spaces, style_attribute_without_fill_rule +from fixup_shaper_s...
Improvement Request: Modification to get SVG preview working on the Origin The current script (fixup_shaper_svg.py) is working as such. Converted SVG files can be used and inserted on Origin. However the SVG image preview is not working. Reason for this is that in the output file the following information will be ...
0.0
f28e93229db60d18bf6520e900b0ab84da5b6da5
[ "fixup_shaper_svg_tests.py::XmlFileEncoding::test_does_force_utf8" ]
[ "fixup_shaper_svg_tests.py::LengthWithUnit::test_ignore_invalid_numbers", "fixup_shaper_svg_tests.py::LengthWithUnit::test_ignores_complex_attributes", "fixup_shaper_svg_tests.py::LengthWithUnit::test_number_formats", "fixup_shaper_svg_tests.py::LengthWithUnit::test_spacing", "fixup_shaper_svg_tests.py::Sty...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2024-04-21 16:45:13+00:00
mit
271
HDembinski__jacobi-16
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d7ba3ca..d787190 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -47,5 +47,12 @@ repos: rev: 'v0.971' hooks: - id: mypy - args: [--allow-redefinition, --ignore-missing-imports, src] + args: [src] pass_filename...
HDembinski/jacobi
9b3811bb96b43f2a28f0d2c05ef570214ce50bf1
diff --git a/test/test_propagate.py b/test/test_propagate.py index 4975c5e..3f2e139 100644 --- a/test/test_propagate.py +++ b/test/test_propagate.py @@ -75,3 +75,66 @@ def test_11(): else: xcov2 = xcov assert_allclose(ycov, np.linalg.multi_dot([jac, xcov2, jac.T])) + + +@pytest.mark.param...
propagate: support functions with multiple independent arguments Often, one has a function that takes independent arguments. Propagating this currently is a bit cumbersome, one has to combine the arguments into a vector and the covariances into joint block covariance matrix. `propagate` could be made more flexible to m...
0.0
9b3811bb96b43f2a28f0d2c05ef570214ce50bf1
[ "test/test_propagate.py::test_two_arguments_1", "test/test_propagate.py::test_two_arguments_2" ]
[ "test/test_propagate.py::test_00", "test/test_propagate.py::test_01", "test/test_propagate.py::test_10", "test/test_propagate.py::test_11", "test/test_propagate.py::test_cov_1d_2d[1]", "test/test_propagate.py::test_cov_1d_2d[2]" ]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-08-14 11:00:32+00:00
mit
272
HEPCloud__decisionengine-391
diff --git a/package/rpm/install_section b/package/rpm/install_section index 82c2966f..aa7d0ad1 100644 --- a/package/rpm/install_section +++ b/package/rpm/install_section @@ -28,3 +28,7 @@ echo "%dir %attr(0750,decisionengine,decisionengine) %{_sysconfdir}/decisionengi mkdir -p %{buildroot}/%{_sysconfdir}/sysconfig t...
HEPCloud/decisionengine
f6258c09a6452e1e2de324c828d8f4c990bd9664
diff --git a/src/decisionengine/framework/modules/tests/test_translate_product_name.py b/src/decisionengine/framework/modules/tests/test_translate_product_name.py new file mode 100644 index 00000000..cae42936 --- /dev/null +++ b/src/decisionengine/framework/modules/tests/test_translate_product_name.py @@ -0,0 +1,24 @@ ...
Add postgresql.sql to distributed decisionengine rpm There is a file src/decisionengine/framework/dataspace/datasources/postgresql.sql which is needed to initialize the Postgres database. This is not currently packaged with the RPM. Please add it to the RPM again. Steve Timm
0.0
f6258c09a6452e1e2de324c828d8f4c990bd9664
[ "src/decisionengine/framework/modules/tests/test_translate_product_name.py::test_translate_none", "src/decisionengine/framework/modules/tests/test_translate_product_name.py::test_translate_simple", "src/decisionengine/framework/modules/tests/test_translate_product_name.py::test_translate_with_underscores", "s...
[]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_added_files", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2021-06-17 19:27:53+00:00
bsd-3-clause
273
HEPData__hepdata_lib-259
diff --git a/README.md b/README.md index 6f9ba74..4b716ce 100644 --- a/README.md +++ b/README.md @@ -72,8 +72,8 @@ There are a few more examples available that can directly be run using the [bind - [Reading TGraph and TGraphError from '.C' files](https://github.com/HEPData/hepdata_lib/blob/main/examples/read_c_file.ip...
HEPData/hepdata_lib
db53815f4963bd11cc62f88c9111f45134ccac67
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 251d276..b560594 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,7 +25,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - root-version: ["6.24", "6.26", "6.28", "6.30"] + roo...
Add flag to disable features requiring ROOT There are use cases where the tool is used but no ROOT installation is available. We should add an option that disables all features that use ROOT to make the other features work independently (e.g. reading in a text file). For ROOT TTrees, we could fall back to uproot.
0.0
db53815f4963bd11cc62f88c9111f45134ccac67
[ "tests/test_cfilereader.py::TestCFileReader::test_cfile_setter", "tests/test_cfilereader.py::TestCFileReader::test_check_for_comments", "tests/test_cfilereader.py::TestCFileReader::test_find_graphs", "tests/test_cfilereader.py::TestCFileReader::test_read_graph", "tests/test_notebooks.py::test_scikithep_hist...
[]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2024-03-15 04:27:20+00:00
mit
274
HK3-Lab-Team__pytrousse-66
diff --git a/src/trousse/dataset.py b/src/trousse/dataset.py index 450f923..ce949a1 100644 --- a/src/trousse/dataset.py +++ b/src/trousse/dataset.py @@ -141,7 +141,6 @@ class Dataset: feature_cols: Tuple = None, data_file: str = None, df_object: pd.DataFrame = None, - nan_percentage_th...
HK3-Lab-Team/pytrousse
28ae6abc5c1c743050789c0e2be66161e8ee3073
diff --git a/tests/integration/test_dataset.py b/tests/integration/test_dataset.py index bfcb88a..6b4111d 100644 --- a/tests/integration/test_dataset.py +++ b/tests/integration/test_dataset.py @@ -25,7 +25,7 @@ from ..fixtures import CSV class Describe_Dataset: @pytest.mark.parametrize( - "nan_ratio, n_c...
Dataset method: nan_columns nan_columns(tolerance) [2c] Tolerance is a (optional, default=1) float number (0 to 1) representing the ratio “nan samples”/”total samples” for the column to be considered a “nan column”.
0.0
28ae6abc5c1c743050789c0e2be66161e8ee3073
[ "tests/integration/test_dataset.py::Describe_Dataset::test_nan_columns[0.8-2-expected_nan_columns0]", "tests/integration/test_dataset.py::Describe_Dataset::test_nan_columns[0.8-1-expected_nan_columns1]", "tests/integration/test_dataset.py::Describe_Dataset::test_nan_columns[0.8-0-expected_nan_columns2]", "tes...
[ "tests/integration/test_dataset.py::Describe_Dataset::test_get_categorical_cols[50-expected_categ_cols0]", "tests/integration/test_dataset.py::Describe_Dataset::test_get_categorical_cols[100-expected_categ_cols1]", "tests/integration/test_dataset.py::Describe_Dataset::test_get_categorical_cols[3000-expected_cat...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-09-21 16:04:46+00:00
mit
275
HTTP-APIs__hydra-python-core-91
diff --git a/hydra_python_core/doc_maker.py b/hydra_python_core/doc_maker.py index 31996c4..aa80d4a 100644 --- a/hydra_python_core/doc_maker.py +++ b/hydra_python_core/doc_maker.py @@ -332,6 +332,17 @@ def create_property(supported_property: Dict[str, Any]) -> Union[HydraLink, Hydr prop_require = supported_propert...
HTTP-APIs/hydra-python-core
f191e9e58a7ab81552814303031aaa3bf90ff514
diff --git a/tests/test_doc_writer.py b/tests/test_doc_writer.py index e37e805..d497658 100644 --- a/tests/test_doc_writer.py +++ b/tests/test_doc_writer.py @@ -23,6 +23,7 @@ class TestDocWriter(unittest.TestCase): 'supportedOperation': 'hydra:supportedOperation', 'label': 'rdfs:label', ...
Implement copying of data types properties ### I'm submitting a - [x ] feature request. If the declaration of a type for a field is present in the original ontology, it should be copied in the ApiDoc to allow `hydrus` to read it and genreate the right column type. Necessary for https://github.com/HTTP-APIs/hydr...
0.0
f191e9e58a7ab81552814303031aaa3bf90ff514
[ "tests/test_doc_writer.py::TestDocWriter::test_context_with_nothing" ]
[ "tests/test_doc_writer.py::TestDocWriter::test_context_with_class", "tests/test_doc_writer.py::TestDocWriter::test_context_with_collection" ]
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-07-01 13:33:02+00:00
mit
276
IAMconsortium__nomenclature-9
diff --git a/nomenclature/core.py b/nomenclature/core.py index 93180ed..cb40464 100644 --- a/nomenclature/core.py +++ b/nomenclature/core.py @@ -7,10 +7,13 @@ from nomenclature.validation import validate class Nomenclature: """A nomenclature with codelists for all dimensions used in the IAMC data format""" - ...
IAMconsortium/nomenclature
979ce2aeb281396110ab2a08ed734cf075fca8b6
diff --git a/tests/test_core.py b/tests/test_core.py new file mode 100644 index 0000000..58e5d9c --- /dev/null +++ b/tests/test_core.py @@ -0,0 +1,8 @@ +import pytest +import nomenclature as nc + + +def test_nonexisting_path_raises(): + """Check that initializing a Nomenclature with a non-existing path raises""" + ...
Relative definition of path in Nomenclature The relative definition of the `path` variable in the `__init__` of `Nomenclature` `def __init__(self, path="definitions")` can lead to problems when the workflow where it is used is not started from the parent directory of `definitions`. One possible fix would be to remo...
0.0
979ce2aeb281396110ab2a08ed734cf075fca8b6
[ "tests/test_core.py::test_nonexisting_path_raises" ]
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2021-06-29 09:08:32+00:00
apache-2.0
277
IAMconsortium__pyam-697
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 1f98daf..757e2f8 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -2,6 +2,7 @@ ## Individual updates +- [#697](https://github.com/IAMconsortium/pyam/pull/697) Add warning if IIASA API returns empty result - [#695](https://github.com/IAMconsortium/pyam/...
IAMconsortium/pyam
7f00c7951f5aae42238461506572163adb0697e2
diff --git a/tests/test_iiasa.py b/tests/test_iiasa.py index 8478e09..727e643 100644 --- a/tests/test_iiasa.py +++ b/tests/test_iiasa.py @@ -167,39 +167,71 @@ def test_meta_columns(conn): npt.assert_array_equal(conn.meta_columns, META_COLS) +@pytest.mark.parametrize("kwargs", [{}, dict(model="model_a")]) @pyt...
Unexpected failures with incorrect permissions in the IIASA database system When a user has access to a Scenario Explorer database instance but no permission to view any models (or no scenarios exist), querying data from the API fails with an error similar to ``` if nmissing == len(indexer): if use_interva...
0.0
7f00c7951f5aae42238461506572163adb0697e2
[ "tests/test_iiasa.py::test_index[True-kwargs1]", "tests/test_iiasa.py::test_index[False-kwargs1]", "tests/test_iiasa.py::test_index_empty", "tests/test_iiasa.py::test_index_illegal_column", "tests/test_iiasa.py::test_meta[True-kwargs1]", "tests/test_iiasa.py::test_meta[False-kwargs1]", "tests/test_iiasa...
[ "tests/test_iiasa.py::test_unknown_conn", "tests/test_iiasa.py::test_valid_connections", "tests/test_iiasa.py::test_anon_conn", "tests/test_iiasa.py::test_conn_nonexisting_creds_file", "tests/test_iiasa.py::test_conn_invalid_creds_file[creds0-Credentials", "tests/test_iiasa.py::test_conn_invalid_creds_fil...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2022-08-31 13:12:38+00:00
apache-2.0
278
ICB-DCM__pyABC-295
diff --git a/pyabc/acceptor/acceptor.py b/pyabc/acceptor/acceptor.py index cc8ca36..3c6acac 100644 --- a/pyabc/acceptor/acceptor.py +++ b/pyabc/acceptor/acceptor.py @@ -19,7 +19,7 @@ import pandas as pd from typing import Callable import logging -from ..distance import Distance, SCALE_LIN +from ..distance import Di...
ICB-DCM/pyABC
45369a69df3fbb982529f5b2188e64783efe613a
diff --git a/test/test_distance_function.py b/test/test_distance_function.py index e40c2fc..ef95c37 100644 --- a/test/test_distance_function.py +++ b/test/test_distance_function.py @@ -1,5 +1,8 @@ import numpy as np import scipy as sp +import scipy.stats +import tempfile + from pyabc.distance import ( Percentil...
Log distance weights Until the near future, the distance weights will not be stored in the history due to legacy reasons. Thus, it may be good to add a callback function which is called after each update method. Sidenote: Always possible by creating a SubClass, or, to some degree, using the `logging.getLogger("Dista...
0.0
45369a69df3fbb982529f5b2188e64783efe613a
[ "test/test_distance_function.py::test_store_weights" ]
[ "test/test_distance_function.py::test_single_parameter", "test/test_distance_function.py::test_two_parameters_but_only_one_used", "test/test_distance_function.py::test_two_parameters_and_two_used", "test/test_distance_function.py::test_single_parameter_percentile", "test/test_distance_function.py::test_pnor...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-05-07 22:33:57+00:00
bsd-3-clause
279
ICB-DCM__pyABC-367
diff --git a/.github/workflows/ci_push.yml b/.github/workflows/ci_push.yml index 52bc7d5..635cb1d 100644 --- a/.github/workflows/ci_push.yml +++ b/.github/workflows/ci_push.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8] + python-version: [3.8, 3...
ICB-DCM/pyABC
70e669604c57e4f0a9d4bfad441aefcae4c3266a
diff --git a/test/base/test_transition.py b/test/base/test_transition.py index 2aad858..c0632c7 100644 --- a/test/base/test_transition.py +++ b/test/base/test_transition.py @@ -265,16 +265,16 @@ def test_discrete_jump_transition(): def freq(weight): return p_stay * weight + p_move * (1 - weight) - as...
Cloudpickle >=1.5.0 breaks on python<=3.7 TBD what changed in 1.5.0 https://github.com/cloudpipe/cloudpickle Also, add a base test on legacy python versions as these are still quite popular.
0.0
70e669604c57e4f0a9d4bfad441aefcae4c3266a
[ "test/base/test_transition.py::test_rvs_return_type[LocalTransition]", "test/base/test_transition.py::test_rvs_return_type[MultivariateNormalTransition]", "test/base/test_transition.py::test_rvs_return_type[SimpleAggregatedTransition]", "test/base/test_transition.py::test_rvs_return_type[SimpleAggregatedTrans...
[]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-11-27 21:44:03+00:00
bsd-3-clause
280
ICB-DCM__pyPESTO-658
diff --git a/pypesto/problem.py b/pypesto/problem.py index d43693f..445a0bc 100644 --- a/pypesto/problem.py +++ b/pypesto/problem.py @@ -200,10 +200,11 @@ class Problem: raise AssertionError(f"{attr} dimension invalid.") if self.x_guesses_full.shape[1] != self.dim_full: - x_guesse...
ICB-DCM/pyPESTO
69e834d8df4863becac9d92edfc6d70bf45df28b
diff --git a/test/profile/test_validation_intervals.py b/test/profile/test_validation_intervals.py new file mode 100644 index 0000000..623153c --- /dev/null +++ b/test/profile/test_validation_intervals.py @@ -0,0 +1,64 @@ +""" +This is for testing profile based validation intervals. +""" + +import numpy as np +import u...
Prediction profiles At some point in the more or less near future, we will want to have prediction profiles in pyPESTO. Pretty much of the parameter profiling code could be reused, I think/hope...
0.0
69e834d8df4863becac9d92edfc6d70bf45df28b
[ "test/profile/test_validation_intervals.py::ValidationIntervalTest::test_validation_intervals" ]
[]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_added_files", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2021-05-07 12:28:41+00:00
bsd-3-clause
281
ICB-DCM__pyPESTO-676
diff --git a/pypesto/profile/validation_intervals.py b/pypesto/profile/validation_intervals.py index 15de409..c60a437 100644 --- a/pypesto/profile/validation_intervals.py +++ b/pypesto/profile/validation_intervals.py @@ -125,13 +125,13 @@ def validation_profile_significance( # => survival function chi.sf if r...
ICB-DCM/pyPESTO
5cce409f5c053ed257329f74c31f050bfcfe938c
diff --git a/test/profile/test_validation_intervals.py b/test/profile/test_validation_intervals.py index 623153c..a129b19 100644 --- a/test/profile/test_validation_intervals.py +++ b/test/profile/test_validation_intervals.py @@ -16,18 +16,18 @@ class ValidationIntervalTest(unittest.TestCase): @classmethod def...
Add more tests to validation intervals **Feature description** It would be nice to check, if the prediction for `x_opt` leads to the significance `1` and if the significance approaches zero for larger and larger deviations. (I had some problems with that for one application of mine, but I would not exclude that the i...
0.0
5cce409f5c053ed257329f74c31f050bfcfe938c
[ "test/profile/test_validation_intervals.py::ValidationIntervalTest::test_validation_intervals" ]
[]
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2021-05-25 13:56:38+00:00
bsd-3-clause
282
INCATools__ontology-access-kit-183
diff --git a/src/__init__.py b/src/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/src/oaklib/cli.py b/src/oaklib/cli.py index 1f3b0fc5..f92e7dd5 100644 --- a/src/oaklib/cli.py +++ b/src/oaklib/cli.py @@ -2354,10 +2354,25 @@ def apply_obsolete(output, output_type, terms): show_default=Tr...
INCATools/ontology-access-kit
98812ee4d1046f10938704b303d870a3ecf77b75
diff --git a/tests/test_utilities/test_cross_ontology_diff.py b/tests/test_utilities/test_cross_ontology_diff.py index 33a3e800..09ace3de 100644 --- a/tests/test_utilities/test_cross_ontology_diff.py +++ b/tests/test_utilities/test_cross_ontology_diff.py @@ -4,6 +4,7 @@ import yaml from linkml_runtime.dumpers import y...
--verbose option no longer working Previously `-v` logged at INFO level, `-vv` at debug, but now this has stopped working
0.0
98812ee4d1046f10938704b303d870a3ecf77b75
[ "tests/test_utilities/test_cross_ontology_diff.py::TestStructuralDiff::test_restrict_to_sources", "tests/test_utilities/test_cross_ontology_diff.py::TestStructuralDiff::test_structural_diff_with_preds" ]
[ "tests/test_utilities/test_cross_ontology_diff.py::TestStructuralDiff::test_structural_diff" ]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-07-12 02:45:06+00:00
apache-2.0
283
INM-6__python-odmltables-120
diff --git a/odmltables/odml_table.py b/odmltables/odml_table.py index 7ac58aa..f6bf460 100644 --- a/odmltables/odml_table.py +++ b/odmltables/odml_table.py @@ -399,6 +399,8 @@ class OdmlTable(object): # create a inverted header_titles dictionary for an inverted lookup inv_header_titles = {v: k for (k...
INM-6/python-odmltables
f9787990e4865f222fb072e8c5c84f96a2bada6c
diff --git a/odmltables/tests/test_odml_csv_table.py b/odmltables/tests/test_odml_csv_table.py index aee45c0..9d07022 100644 --- a/odmltables/tests/test_odml_csv_table.py +++ b/odmltables/tests/test_odml_csv_table.py @@ -76,6 +76,22 @@ class TestOdmlCsvTable(unittest.TestCase): self.assertEqual(len(table._odml...
Error when converting empty (apart from header) csv file 'row_id' is undefined here when the csv file only contains a header: https://github.com/INM-6/python-odmltables/blob/f9787990e4865f222fb072e8c5c84f96a2bada6c/odmltables/odml_table.py#L492
0.0
f9787990e4865f222fb072e8c5c84f96a2bada6c
[ "odmltables/tests/test_odml_csv_table.py::TestOdmlCsvTable::test_saveload_empty_header" ]
[ "odmltables/tests/test_odml_xls_table.py::TestShowallOdmlXlsTable::test_tf", "odmltables/tests/test_odml_xls_table.py::TestShowallOdmlXlsTable::test_ft", "odmltables/tests/test_odml_xls_table.py::TestShowallOdmlXlsTable::test_tt", "odmltables/tests/test_odml_xls_table.py::TestShowallOdmlXlsTable::test_ff", ...
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2020-12-11 08:57:12+00:00
bsd-3-clause
284
ImagingDataCommons__highdicom-211
diff --git a/src/highdicom/content.py b/src/highdicom/content.py index 844cdee..ddbed2a 100644 --- a/src/highdicom/content.py +++ b/src/highdicom/content.py @@ -1867,7 +1867,7 @@ class VOILUTTransformation(Dataset): ) for exp in window_explanation: _check_long_...
ImagingDataCommons/highdicom
eea1f075a5bf5159e80b4cd16a9a19aa295b2719
diff --git a/tests/test_pr.py b/tests/test_pr.py index 8139f1b..b77007d 100644 --- a/tests/test_pr.py +++ b/tests/test_pr.py @@ -1348,6 +1348,73 @@ class TestXSoftcopyPresentationState(unittest.TestCase): assert gsps.SoftcopyVOILUTSequence[1].WindowWidth == expected_width assert gsps.SoftcopyVOILUTSeq...
Failure to create GSPS when reference DICOM uses "MultiValue" for WindowCenter, WindowWidth When I go to create a GSPS using hd.pr.GrayscaleSoftcopyPresentationState() I get an error for certain DICOM where WindowWidth and WindowCenter are not floats in the reference DICOM. Here's the error I get: ``` ~/anaconda3...
0.0
eea1f075a5bf5159e80b4cd16a9a19aa295b2719
[ "tests/test_pr.py::TestXSoftcopyPresentationState::test_construction_with_copy_voi_lut_multival", "tests/test_pr.py::TestXSoftcopyPresentationState::test_construction_with_copy_voi_lut_multival_with_expl" ]
[ "tests/test_pr.py::TestSoftcopyVOILUTTransformation::test_construction_basic", "tests/test_pr.py::TestSoftcopyVOILUTTransformation::test_construction_both", "tests/test_pr.py::TestSoftcopyVOILUTTransformation::test_construction_explanation", "tests/test_pr.py::TestSoftcopyVOILUTTransformation::test_constructi...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2022-12-28 18:49:28+00:00
mit
285
ImagingDataCommons__highdicom-226
diff --git a/src/highdicom/sr/coding.py b/src/highdicom/sr/coding.py index d4305b6..3301e86 100644 --- a/src/highdicom/sr/coding.py +++ b/src/highdicom/sr/coding.py @@ -126,7 +126,14 @@ class CodedConcept(Dataset): raise TypeError( 'Dataset must be a pydicom.dataset.Dataset.' ...
ImagingDataCommons/highdicom
5cb05291d59378919de3c53f9c315f38c51121ce
diff --git a/tests/test_sr.py b/tests/test_sr.py index e1ccb7c..d4b94aa 100644 --- a/tests/test_sr.py +++ b/tests/test_sr.py @@ -444,6 +444,12 @@ class TestCodedConcept(unittest.TestCase): def setUp(self): super().setUp() self._value = '373098007' + self._long_code_value = 'some_code_value...
Coded Concept with Long Code Value The CodedConcept `__init()` assigns the value to a LongCodeValue tag if it is >16 characters, and the `value()` method also supports retrieving the value from either CodeValue, LongCodeValue, or URNCodeValue. But the `from_dataset()` classmethod raises an attribute error if the passe...
0.0
5cb05291d59378919de3c53f9c315f38c51121ce
[ "tests/test_sr.py::TestCodedConcept::test_from_dataset_long_value", "tests/test_sr.py::TestCodedConcept::test_from_dataset_multiple_value", "tests/test_sr.py::TestCodedConcept::test_from_dataset_urn_value" ]
[ "tests/test_sr.py::TestImageRegion::test_construction_ct_image", "tests/test_sr.py::TestImageRegion::test_construction_sm_image_with_pixel_origin_interpretation", "tests/test_sr.py::TestImageRegion::test_construction_sm_image_with_wrong_pixel_origin_interpretation", "tests/test_sr.py::TestImageRegion::test_co...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2023-04-24 21:16:46+00:00
mit
286
ImperialCollegeLondon__django-drf-filepond-54
diff --git a/django_drf_filepond/apps.py b/django_drf_filepond/apps.py index 4309bc3..c5904ca 100644 --- a/django_drf_filepond/apps.py +++ b/django_drf_filepond/apps.py @@ -14,9 +14,20 @@ class DjangoDrfFilepondConfig(AppConfig): verbose_name = 'FilePond Server-side API' def ready(self): + # Get BASE...
ImperialCollegeLondon/django-drf-filepond
5cb99531523609c77762288ac09552651e431688
diff --git a/tests/settings.py b/tests/settings.py index 5c29306..892b914 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -14,6 +14,12 @@ import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +# For testing ...
Problem with Pathlib based paths Hello and thanks a lot for this awesome app. it makes lives so much easier! I recently started a new django project (Django 3.1) and as you know, django has moved from **os.path** to **Pathlib**. unfortunately, this breaks this app's functionality. It throws an error in : django_drf_...
0.0
5cb99531523609c77762288ac09552651e431688
[ "tests/test_utils.py::UtilsTestCase::test_get_file_id", "tests/test_utils.py::UtilsTestCase::test_get_base_dir_with_path", "tests/test_utils.py::UtilsTestCase::test_get_base_dir_with_str", "tests/test_utils.py::UtilsTestCase::test_get_user_anonymous", "tests/test_utils.py::UtilsTestCase::test_get_user_regul...
[]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-06-23 18:38:27+00:00
bsd-3-clause
287
Infinidat__munch-52
diff --git a/CHANGELOG.md b/CHANGELOG.md index 424148a..8823bcc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ Changelog Next Version ------------ +* Support ``fromYAML`` classmethod for all Munch subclasses (PR [#52](https://github.com/Infinidat/munch/pull/52) fixes [#34](https://github.com/Infinidat...
Infinidat/munch
dede29c5e8bde7ca575365d50dd44f8fc12a5991
diff --git a/tests/test_yaml.py b/tests/test_yaml.py index 92054a8..6d15261 100644 --- a/tests/test_yaml.py +++ b/tests/test_yaml.py @@ -1,5 +1,5 @@ import pytest -from munch import Munch +from munch import Munch, DefaultMunch def test_from_yaml(yaml): @@ -39,7 +39,22 @@ def test_toYAML(yaml): @pytest.mark.use...
DefaultMunch.fromYAML should take default argument Currently, `DefaultMunch.fromYAML` is the same as `Munch.fromYAML`. This is confusing, and it is a pitty because a real `DefaultMunch.fromYAML` would add functionality which, FWIW, I could use. Thus, I propose to create a dedicated `DefaultMunch.fromYAML` function wit...
0.0
dede29c5e8bde7ca575365d50dd44f8fc12a5991
[ "tests/test_yaml.py::test_fromYAML_default_munch" ]
[ "tests/test_yaml.py::test_to_yaml", "tests/test_yaml.py::test_fromYAML", "tests/test_yaml.py::test_to_yaml_safe", "tests/test_yaml.py::test_from_yaml", "tests/test_yaml.py::test_toYAML" ]
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2019-10-29 15:16:08+00:00
mit
288
Infinidat__munch-54
diff --git a/CHANGELOG.md b/CHANGELOG.md index 424148a..3f5a26d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ Changelog Next Version ------------ +* Fix return value of DefaultMunch and DefaultFactoryMunch's get method (fixes [#53](https://github.com/Infinidat/munch/issues/53)) + +* Support ``fromYAM...
Infinidat/munch
dede29c5e8bde7ca575365d50dd44f8fc12a5991
diff --git a/tests/conftest.py b/tests/conftest.py index 259071a..45d6b23 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,5 @@ import pytest +import munch @pytest.fixture(name='yaml') @@ -9,3 +10,12 @@ def yaml_module(): except ImportError: pass pytest.skip("Module 'PyYAML' is...
DefaultMunch getter now returns None instead of DefaultValue If a DefaultMunch has a default value of None, munch.get(attr_name, default_value) will now return None instead of default_value ``` >>> from munch import DefaultMunch >>> d = DefaultMunch(None, {'a': 1}) >>> d.get('a') 1 >>> d.get('b') >>> d.get('b'...
0.0
dede29c5e8bde7ca575365d50dd44f8fc12a5991
[ "tests/test_munch.py::test_get_default_value[DefaultFactoryMunch]", "tests/test_munch.py::test_get_default_value[DefaultMunch]", "tests/test_yaml.py::test_fromYAML_default_munch" ]
[ "tests/test_munch.py::test_repr_default", "tests/test_munch.py::test_getattr_default_factory", "tests/test_munch.py::test_reserved_attributes[__getitem__]", "tests/test_munch.py::test_reserved_attributes[__iter__]", "tests/test_munch.py::test_reserved_attributes[__contains__]", "tests/test_munch.py::test_...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2019-10-29 17:36:12+00:00
mit
289
Infinidat__munch-93
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3880744..64954bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,11 +40,15 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - # Install the testing ...
Infinidat/munch
28c1256e76c00f42aa9315015283f0bba8819c4c
diff --git a/tests/test_munch.py b/tests/test_munch.py index 9114e3d..c80b757 100644 --- a/tests/test_munch.py +++ b/tests/test_munch.py @@ -557,3 +557,17 @@ def test_get_default_value(munch_obj): munch_cls = type(munch_obj) kwargs = {} if munch_cls != DefaultFactoryMunch else {"default_factory": munch_obj.de...
munchify broken? Here is a minimal working example, which is broken. Is this already fixed? `munchify((1,2,[{'A': 'B'}])) Result: (1, 2, [Munch({'A': 'B'}), Munch({'A': 'B'})]) Expected: (1, 2, [Munch({'A': 'B'})])`
0.0
28c1256e76c00f42aa9315015283f0bba8819c4c
[ "tests/test_munch.py::test_munchify_tuple_list", "tests/test_munch.py::test_munchify_tuple_list_more_elements" ]
[ "tests/test_munch.py::test_copy", "tests/test_munch.py::test_reserved_attributes[__getattribute__]", "tests/test_munch.py::test_dict_property", "tests/test_munch.py::test_get_default_value[Munch]", "tests/test_munch.py::test_reserved_attributes[fromYAML]", "tests/test_munch.py::test_pickling_unpickling_ne...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2023-01-17 07:12:19+00:00
mit
290
Informasjonsforvaltning__datacatalogtordf-69
diff --git a/src/datacatalogtordf/dataset.py b/src/datacatalogtordf/dataset.py index 419f9be..92eb7bb 100644 --- a/src/datacatalogtordf/dataset.py +++ b/src/datacatalogtordf/dataset.py @@ -54,7 +54,8 @@ class Dataset(Resource): spatial_resolution (Decimal): Minimum spatial separation resolvable \ ...
Informasjonsforvaltning/datacatalogtordf
20d2ddbf36c19a2bd6621dec3ecf64e50d021866
diff --git a/tests/test_dataset.py b/tests/test_dataset.py index 0a8c0c9..c7467cf 100644 --- a/tests/test_dataset.py +++ b/tests/test_dataset.py @@ -311,7 +311,7 @@ def test_to_graph_should_return_temporal_resolution() -> None: """It returns a temporal resolution graph isomorphic to spec.""" dataset = Dataset...
temporal_resolution property should be a list
0.0
20d2ddbf36c19a2bd6621dec3ecf64e50d021866
[ "tests/test_dataset.py::test_to_graph_should_return_temporal_resolution", "tests/test_distribution.py::test_to_graph_should_return_temporal_resolution" ]
[ "tests/test_dataset.py::test_to_graph_should_return_identifier_set_at_constructor", "tests/test_dataset.py::test_to_graph_should_return_skolemization", "tests/test_dataset.py::test_to_graph_should_return_distribution_as_graph", "tests/test_dataset.py::test_to_graph_should_return_distribution_skolemized", "t...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-05-23 09:01:29+00:00
apache-2.0
291
Instagram__LibCST-356
diff --git a/libcst/matchers/_matcher_base.py b/libcst/matchers/_matcher_base.py index 27475d5..0cf281c 100644 --- a/libcst/matchers/_matcher_base.py +++ b/libcst/matchers/_matcher_base.py @@ -932,6 +932,24 @@ def SaveMatchedNode(matcher: _OtherNodeT, name: str) -> _OtherNodeT: return cast(_OtherNodeT, _ExtractMat...
Instagram/LibCST
3ada79ebcb14224e0c0cd4e40a622540656cc0e3
diff --git a/libcst/matchers/tests/test_extract.py b/libcst/matchers/tests/test_extract.py index 5c3cf12..77c134a 100644 --- a/libcst/matchers/tests/test_extract.py +++ b/libcst/matchers/tests/test_extract.py @@ -322,6 +322,34 @@ class MatchersExtractTest(UnitTest): ) self.assertEqual(nodes, {}) + ...
[BUG] SavedMatchedNode affects matching Wrapping a matcher with `SaveMatchedNode` sometimes breaks the matching. `libcst` version: 0.3.7 (installed with pip) See the test below ```py import libcst.matchers as m import libcst node = libcst.parse_expression("[1, 2, 3]") matcher = m.List( elements=[ ...
0.0
3ada79ebcb14224e0c0cd4e40a622540656cc0e3
[ "libcst/matchers/tests/test_extract.py::MatchersExtractTest::test_extract_optional_wildcard_tail" ]
[ "libcst/matchers/tests/test_extract.py::MatchersExtractTest::test_extract_precedence_sequence_wildcard", "libcst/matchers/tests/test_extract.py::MatchersExtractTest::test_extract_sequence", "libcst/matchers/tests/test_extract.py::MatchersExtractTest::test_extract_sentinel", "libcst/matchers/tests/test_extract...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2020-08-02 14:27:42+00:00
mit
292
Instagram__LibCST-417
diff --git a/libcst/_parser/conversions/expression.py b/libcst/_parser/conversions/expression.py index 8edbf26..e66f836 100644 --- a/libcst/_parser/conversions/expression.py +++ b/libcst/_parser/conversions/expression.py @@ -1441,8 +1441,16 @@ def convert_arg_assign_comp_for( elt, for_in = children re...
Instagram/LibCST
7478d738ea4911b51fe8c0758a6a405f7ce9c98a
diff --git a/libcst/_nodes/tests/test_namedexpr.py b/libcst/_nodes/tests/test_namedexpr.py index 4ba1485..3949bbe 100644 --- a/libcst/_nodes/tests/test_namedexpr.py +++ b/libcst/_nodes/tests/test_namedexpr.py @@ -101,6 +101,71 @@ class NamedExprTest(CSTNodeTest): "parser": _parse_statement_force_38, ...
Function call with walrus loses colon in roundtrip This input ``` f(x:=1) ``` is roundtripped as ``` f(x=1) ``` due to a parse error. I'm fairly certain the problem is the grammar on https://github.com/Instagram/LibCST/blob/master/libcst/_parser/conversions/expression.py#L1430 not matching namedexpr_...
0.0
7478d738ea4911b51fe8c0758a6a405f7ce9c98a
[ "libcst/_nodes/tests/test_namedexpr.py::NamedExprTest::test_valid_8", "libcst/_nodes/tests/test_namedexpr.py::NamedExprTest::test_valid_6", "libcst/_nodes/tests/test_namedexpr.py::NamedExprTest::test_valid_7" ]
[ "libcst/_nodes/tests/test_namedexpr.py::NamedExprTest::test_invalid_1", "libcst/_nodes/tests/test_namedexpr.py::NamedExprTest::test_valid_1", "libcst/_nodes/tests/test_namedexpr.py::NamedExprTest::test_valid_4", "libcst/_nodes/tests/test_namedexpr.py::NamedExprTest::test_invalid_0", "libcst/_nodes/tests/tes...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2020-11-11 22:25:05+00:00
mit
293
Instagram__LibCST-419
diff --git a/libcst/_parser/conversions/expression.py b/libcst/_parser/conversions/expression.py index 8edbf26..b7e5c18 100644 --- a/libcst/_parser/conversions/expression.py +++ b/libcst/_parser/conversions/expression.py @@ -1038,12 +1038,12 @@ def convert_fstring_equality( @with_production( "fstring_expr", - ...
Instagram/LibCST
7478d738ea4911b51fe8c0758a6a405f7ce9c98a
diff --git a/libcst/_nodes/tests/test_atom.py b/libcst/_nodes/tests/test_atom.py index 452c9f7..1a14e37 100644 --- a/libcst/_nodes/tests/test_atom.py +++ b/libcst/_nodes/tests/test_atom.py @@ -668,6 +668,35 @@ class AtomTest(CSTNodeTest): "parser": parse_expression, "expected_position"...
parse error for comprehensions in f-strings ``` ❯ cat test.py x = [1, 2] print(f"List of: {y for y in x}") ❯ python3 test.py ...
0.0
7478d738ea4911b51fe8c0758a6a405f7ce9c98a
[ "libcst/_nodes/tests/test_atom.py::AtomTest::test_valid_68", "libcst/_nodes/tests/test_namedexpr.py::NamedExprTest::test_valid_7", "libcst/_nodes/tests/test_namedexpr.py::NamedExprTest::test_valid_8", "libcst/_nodes/tests/test_namedexpr.py::NamedExprTest::test_valid_6" ]
[ "libcst/_nodes/tests/test_atom.py::AtomTest::test_invalid_7", "libcst/_nodes/tests/test_atom.py::AtomTest::test_valid_57", "libcst/_nodes/tests/test_atom.py::AtomTest::test_invalid_23", "libcst/_nodes/tests/test_atom.py::AtomTest::test_invalid_18", "libcst/_nodes/tests/test_atom.py::AtomTest::test_invalid_8...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2020-11-13 03:15:50+00:00
mit
294
Instagram__LibCST-429
diff --git a/libcst/matchers/_visitors.py b/libcst/matchers/_visitors.py index 301e675..be50edf 100644 --- a/libcst/matchers/_visitors.py +++ b/libcst/matchers/_visitors.py @@ -79,8 +79,18 @@ def _get_possible_match_classes(matcher: BaseMatcherNode) -> List[Type[cst.CSTNo return [getattr(cst, matcher.__class__...
Instagram/LibCST
2f117f0bc3f718b9cc203dfbd6c9f0530ec043c1
diff --git a/libcst/matchers/tests/test_decorators.py b/libcst/matchers/tests/test_decorators.py index c102f2a..b1ff3d0 100644 --- a/libcst/matchers/tests/test_decorators.py +++ b/libcst/matchers/tests/test_decorators.py @@ -6,6 +6,7 @@ from ast import literal_eval from textwrap import dedent from typing import List...
make @m.leave() recognize function return using new Union syntax | `@m.leave` throws an exception when function return use new union syntax: ``` @m.call_if_inside(m.ImportFrom(module=m.Name(value="typing"))) @m.leave(m.ImportFrom(module=m.Name(value="typing"))) def test( self, original_node:...
0.0
2f117f0bc3f718b9cc203dfbd6c9f0530ec043c1
[ "libcst/matchers/tests/test_decorators.py::MatchersUnionDecoratorsTest::test_init_with_new_union_annotation", "libcst/metadata/tests/test_scope_provider.py::ScopeProviderTest::test_for_scope_ordering", "libcst/metadata/tests/test_scope_provider.py::ScopeProviderTest::test_no_out_of_order_references_in_global_sc...
[ "libcst/matchers/tests/test_decorators.py::MatchersGatingDecoratorsTest::test_call_if_inside_collect_simple", "libcst/matchers/tests/test_decorators.py::MatchersGatingDecoratorsTest::test_call_if_inside_transform_simple", "libcst/matchers/tests/test_decorators.py::MatchersGatingDecoratorsTest::test_call_if_insi...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2020-12-08 17:56:12+00:00
mit
295
Instagram__LibCST-626
diff --git a/libcst/_nodes/statement.py b/libcst/_nodes/statement.py index ded7c7c..e4b8d28 100644 --- a/libcst/_nodes/statement.py +++ b/libcst/_nodes/statement.py @@ -2687,11 +2687,6 @@ class Match(BaseCompoundStatement): if len(self.cases) == 0: raise CSTValidationError("A match statement must ...
Instagram/LibCST
2345848d4a0f92af27f292befaccb11f87b7caa1
diff --git a/libcst/_nodes/tests/test_match.py b/libcst/_nodes/tests/test_match.py index edf51d8..a203ffe 100644 --- a/libcst/_nodes/tests/test_match.py +++ b/libcst/_nodes/tests/test_match.py @@ -39,6 +39,39 @@ class MatchTest(CSTNodeTest): + ' case "foo": pass\n', "parser": parser...
CST node validation is broken for parenthesized MatchAs objects Simple reproducer: ```py match x: case (1) as z: pass ``` ``` thread '<unnamed>' panicked at 'conversion failed for MatchValue: PyErr { type: <class 'libcst._nodes.base.CSTValidationError'>, value: CSTValidationError('Cannot have left ...
0.0
2345848d4a0f92af27f292befaccb11f87b7caa1
[ "libcst/_nodes/tests/test_match.py::MatchTest::test_valid_0", "libcst/_nodes/tests/test_match.py::MatchTest::test_valid_1", "libcst/_nodes/tests/test_match.py::MatchTest::test_valid_2", "libcst/_nodes/tests/test_match.py::MatchTest::test_valid_3", "libcst/_nodes/tests/test_match.py::MatchTest::test_valid_4"...
[]
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2022-01-23 15:59:56+00:00
mit
296
Instagram__LibCST-628
diff --git a/libcst/_nodes/statement.py b/libcst/_nodes/statement.py index ded7c7c..0e1cefe 100644 --- a/libcst/_nodes/statement.py +++ b/libcst/_nodes/statement.py @@ -2687,11 +2687,6 @@ class Match(BaseCompoundStatement): if len(self.cases) == 0: raise CSTValidationError("A match statement must ...
Instagram/LibCST
2345848d4a0f92af27f292befaccb11f87b7caa1
diff --git a/libcst/_nodes/tests/test_match.py b/libcst/_nodes/tests/test_match.py index edf51d8..5ceea72 100644 --- a/libcst/_nodes/tests/test_match.py +++ b/libcst/_nodes/tests/test_match.py @@ -425,6 +425,34 @@ class MatchTest(CSTNodeTest): + " case None | False | True: pass\n", ...
CST node validation error for match without whitespace Short reproducer: ``` match(x): case(y): pass ``` Crash: ``` thread '<unnamed>' panicked at 'conversion failed for Match: PyErr { type: <class 'libcst._nodes.base.CSTValidationError'>, value: CSTValidationError("Must have at least one space af...
0.0
2345848d4a0f92af27f292befaccb11f87b7caa1
[ "libcst/_nodes/tests/test_match.py::MatchTest::test_valid_0", "libcst/_nodes/tests/test_match.py::MatchTest::test_valid_1", "libcst/_nodes/tests/test_match.py::MatchTest::test_valid_2", "libcst/_nodes/tests/test_match.py::MatchTest::test_valid_3", "libcst/_nodes/tests/test_match.py::MatchTest::test_valid_4"...
[]
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2022-01-23 19:55:45+00:00
mit
297
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
J535D165__pyalex-13
diff --git a/pyalex/api.py b/pyalex/api.py index 034bafe..c2e95b4 100644 --- a/pyalex/api.py +++ b/pyalex/api.py @@ -21,21 +21,55 @@ class AlexConfig(dict): config = AlexConfig(email=None, api_key=None, openalex_url="https://api.openalex.org") -def _flatten_kv(k, v): +def _flatten_kv(d, prefix=""): - if isins...
J535D165/pyalex
c16060b29717b364be52bf4c2f935926c6b3b4f9
diff --git a/tests/test_pyalex.py b/tests/test_pyalex.py index 54a01ef..2ba60a8 100644 --- a/tests/test_pyalex.py +++ b/tests/test_pyalex.py @@ -348,3 +348,35 @@ def test_ngrams_with_metadata(): def test_random_publishers(): assert isinstance(Publishers().random(), dict) + + +def test_and_operator(): + + # h...
Add example for boolean operators to documentation Thanks for providing pyalex! It would be helpful to have an example for the use of different boolean filters in the Readme. Example URL: https://api.openalex.org/works?filter=institutions.country_code:tw,institutions.country_code:hk
0.0
c16060b29717b364be52bf4c2f935926c6b3b4f9
[ "tests/test_pyalex.py::test_and_operator" ]
[ "tests/test_pyalex.py::test_config", "tests/test_pyalex.py::test_meta_entities", "tests/test_pyalex.py::test_works_params", "tests/test_pyalex.py::test_works", "tests/test_pyalex.py::test_per_page", "tests/test_pyalex.py::test_W4238809453_works", "tests/test_pyalex.py::test_W4238809453_works_abstract", ...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2023-03-27 11:45:10+00:00
mit
299
Jc2k__aiohomekit-233
diff --git a/aiohomekit/zeroconf.py b/aiohomekit/zeroconf.py index 51b6b48..030b99c 100644 --- a/aiohomekit/zeroconf.py +++ b/aiohomekit/zeroconf.py @@ -25,7 +25,7 @@ from ipaddress import ip_address import logging import async_timeout -from zeroconf import ServiceListener, ServiceStateChange, Zeroconf +from zeroco...
Jc2k/aiohomekit
0b846304e45bb9b8b6118abedddadac4e8d938ff
diff --git a/tests/conftest.py b/tests/conftest.py index 7472d30..2fbb52f 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -10,7 +10,7 @@ from unittest import mock from unittest.mock import AsyncMock, MagicMock, patch import pytest -from zeroconf import SignalRegistrationInterface +from zeroconf import DNS...
Invalid HomeKit Zeroconf record Getting the following in home assistant logs... 022-11-02 17:33:30.752 DEBUG (MainThread) [aiohomekit.protocol.tlv] sending [ 1 (Identifier): (2 bytes/<class 'bytes'>) b'\x01\x00' 2 (Salt): (1 bytes/<class 'bytes'>) b'\x01' ] 2022-11-02 17:33:33.767 DEBUG (MainThread) [aiohomekit....
0.0
0b846304e45bb9b8b6118abedddadac4e8d938ff
[ "tests/test_controller_ip_controller.py::test_discover_find_one", "tests/test_controller_ip_controller.py::test_discover_find_one_unpaired", "tests/test_controller_ip_controller.py::test_find_device_id_case_lower", "tests/test_controller_ip_controller.py::test_find_device_id_case_upper", "tests/test_control...
[ "tests/test_controller_ip_controller.py::test_discover_find_none", "tests/test_controller_ip_controller.py::test_discover_none" ]
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2022-11-03 00:42:54+00:00
apache-2.0
300
JelleZijlstra__ast_decompiler-34
diff --git a/CHANGELOG b/CHANGELOG index 62b8063..3d37564 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,4 +1,5 @@ unreleased +- Preserve literal newlines in docstrings - Fix decompilation of complex infinity - Add support for Python 3.10 pattern matching - Fix incorrect decompilation of lambdas in comprehension guar...
JelleZijlstra/ast_decompiler
f347ea7ddf9162d5b0e89edec73b4af0fa5fc9f7
diff --git a/tests/test_basic.py b/tests/test_basic.py index 5b39dbc..72a8ecb 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -1,6 +1,6 @@ import ast from ast_decompiler import decompile -from .tests import check, only_on_version +from .tests import assert_decompiles, check, only_on_version def tes...
Docstrings are not preserved correctly. Currently it's impossible to correctly preserve docstrings. This test shows the issue: ``` from .tests import assert_decompiles def test_docstrings(): assert_decompiles(''' def a(): """ Docstring. """ return 1 ''', '''def a(): """ Docstring. ...
0.0
f347ea7ddf9162d5b0e89edec73b4af0fa5fc9f7
[ "tests/test_basic.py::test_Str" ]
[ "tests/test_basic.py::test_non_module", "tests/test_basic.py::test_FunctionDef", "tests/test_basic.py::test_ClassDef", "tests/test_basic.py::test_Return", "tests/test_basic.py::test_Delete", "tests/test_basic.py::test_Assign", "tests/test_basic.py::test_AugAssign", "tests/test_basic.py::test_Print", ...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2022-05-11 03:53:35+00:00
apache-2.0
301
JeschkeLab__DeerLab-88
diff --git a/deerlab/fitsignal.py b/deerlab/fitsignal.py index f1e66978..61466142 100644 --- a/deerlab/fitsignal.py +++ b/deerlab/fitsignal.py @@ -16,7 +16,7 @@ from deerlab.utils import isempty, goodness_of_fit, Jacobian def fitsignal(Vexp, t, r, dd_model='P', bg_model=bg_hom3d, ex_model=ex_4pdeer, dd...
JeschkeLab/DeerLab
182ef2fef45d98c19cf436b2388f0d96b135922e
diff --git a/test/test_fitsignal.py b/test/test_fitsignal.py index 2d66362b..a5101f1a 100644 --- a/test/test_fitsignal.py +++ b/test/test_fitsignal.py @@ -332,28 +332,30 @@ def assert_confidence_intervals(pci50,pci95,pfit,lb,ub): assert not errors, "Errors occured:\n{}".format("\n".join(errors)) #---------------...
Internalize bootstrapping for fitsignal quantities At the moment `fitsignal` does only return uncertainty quantification based on asymptotic approximation (covariance-based). If the user wants to get bootstrapped confidence intervals the `bootan` must be used. While for advanced users this might be simple: ```` python...
0.0
182ef2fef45d98c19cf436b2388f0d96b135922e
[ "test/test_fitsignal.py::test_4pdeer", "test/test_fitsignal.py::test_5pdeer", "test/test_fitsignal.py::test_7pdeer", "test/test_fitsignal.py::test_ovl4pdeer", "test/test_fitsignal.py::test_ridme1", "test/test_fitsignal.py::test_ridme3", "test/test_fitsignal.py::test_ridme5", "test/test_fitsignal.py::t...
[]
{ "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-03-12 10:46:14+00:00
mit
302
JoshData__python-email-validator-58
diff --git a/README.md b/README.md index 2ef35de..929b525 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Key features: login forms or other uses related to identifying users. * Gives friendly error messages when validation fails (appropriate to show to end users). -* (optionally) Checks deliverability:...
JoshData/python-email-validator
ad53fb4166a10a09b76b4a9861a305017a98f5fc
diff --git a/tests/test_main.py b/tests/test_main.py index af975ba..d2fd923 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -1,7 +1,9 @@ +from unittest import mock +import dns.resolver import pytest from email_validator import EmailSyntaxError, EmailUndeliverableError, \ valid...
Idea: cache successful dns lookups? Would it make sense to cache (in memory) dns records that got a match to prevent a large amount of dns lookups for common email providers like gmail.com, hotmail.com etc? If also caching non matches is fine `functools.lru_cache` decorator could be added to validate_email_deliverab...
0.0
ad53fb4166a10a09b76b4a9861a305017a98f5fc
[ "tests/test_main.py::test_email_valid[Abc@example.com-output0]", "tests/test_main.py::test_email_valid[Abc.123@example.com-output1]", "tests/test_main.py::test_email_valid[user+mailbox/department=shipping@example.com-output2]", "tests/test_main.py::test_email_valid[!#$%&'*+-/=?^_`.{|}~@example.com-output3]", ...
[]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-11-14 22:04:36+00:00
cc0-1.0
303
JrGoodle__clowder-224
diff --git a/clowder/cmd.py b/clowder/cmd.py index cf55992f..940b8ff6 100644 --- a/clowder/cmd.py +++ b/clowder/cmd.py @@ -646,7 +646,7 @@ def exit_unrecognized_command(parser): def exit_clowder_not_found(): """Print clowder not found message and exit""" - cprint('No clowder found in the current directory\n'...
JrGoodle/clowder
ba94600aa61ce6bc866644c461c89fe9ca67375b
diff --git a/test/test_git_utilities.py b/test/test_git_utilities.py index 8b887c39..4bab4333 100644 --- a/test/test_git_utilities.py +++ b/test/test_git_utilities.py @@ -3,9 +3,9 @@ import os import unittest from clowder.utility.git_utilities import ( git_current_branch, - git_current_sha, git_is_detach...
Support short commit hashes Use for output display
0.0
ba94600aa61ce6bc866644c461c89fe9ca67375b
[ "test/test_git_utilities.py::GitUtilitiesTest::test_ref_type_branch", "test/test_git_utilities.py::GitUtilitiesTest::test_ref_type_sha", "test/test_git_utilities.py::GitUtilitiesTest::test_ref_type_tag", "test/test_git_utilities.py::GitUtilitiesTest::test_ref_type_unknown", "test/test_git_utilities.py::GitU...
[]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2017-09-16 23:42:03+00:00
mit
304