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
0b01001001__spectree-64
diff --git a/setup.py b/setup.py index 1b3cb64..4ef21e6 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ with open(path.join(here, 'requirements.txt'), encoding='utf-8') as f: setup( name='spectree', - version='0.3.7', + version='0.3.8', author='Keming Yang', author_email='kemingy94@gmail....
0b01001001/spectree
a091fab020ac26548250c907bae0855273a98778
diff --git a/tests/common.py b/tests/common.py index 0f2d696..83b4140 100644 --- a/tests/common.py +++ b/tests/common.py @@ -1,7 +1,7 @@ from enum import IntEnum, Enum from typing import List -from pydantic import BaseModel, root_validator +from pydantic import BaseModel, root_validator, Field class Order(IntE...
[BUG]description for query paramters can not show in swagger ui Hi, when I add a description for a schema used in query, it can not show in swagger ui but can show in Redoc ```py @HELLO.route('/', methods=['GET']) @api.validate(query=HelloForm) def hello(): """ hello 注释 :return: """ return '...
0.0
a091fab020ac26548250c907bae0855273a98778
[ "tests/test_utils.py::test_parse_params" ]
[ "tests/test_utils.py::test_comments", "tests/test_utils.py::test_parse_code", "tests/test_utils.py::test_parse_name", "tests/test_utils.py::test_has_model", "tests/test_utils.py::test_parse_resp", "tests/test_utils.py::test_parse_request" ]
{ "failed_lite_validators": [ "has_hyperlinks", "has_media", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-10-12 13:21:50+00:00
apache-2.0
0
12rambau__sepal_ui-644
diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 9fc498b3..fc69f702 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -72,17 +72,19 @@ jobs: assert len(unexpected) == 0 - name: test with pytest - run: coverage run -m pytest --color=yes...
12rambau/sepal_ui
8a8196e3c7893b7a0aebdb4910e83054f59e0374
diff --git a/tests/test_Btn.py b/tests/test_Btn.py index fcaed760..4e3cb9b5 100644 --- a/tests/test_Btn.py +++ b/tests/test_Btn.py @@ -11,7 +11,7 @@ class TestBtn: btn = sw.Btn() assert btn.color == "primary" assert btn.v_icon.children[0] == "" - assert btn.children[1] == "Click" + ...
sepal_ui.Btn does't work as expected I want to create a simple Icon button, to do so: ```python sw.Btn(icon=True, gliph ="mdi-plus") ``` Doing this, without "msg" parameter will add the default text to the button which is "click", I think is worthless having that value. So if I want to remove the default text...
0.0
8a8196e3c7893b7a0aebdb4910e83054f59e0374
[ "tests/test_Btn.py::TestBtn::test_init", "tests/test_Btn.py::TestBtn::test_set_gliph" ]
[ "tests/test_Btn.py::TestBtn::test_toggle_loading", "tests/test_Btn.py::TestBtn::test_set_msg" ]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-11-29 14:42:21+00:00
mit
1
15five__scim2-filter-parser-13
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 12a5d4f..178f172 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,10 @@ CHANGE LOG ========== +0.3.5 +----- +- Update the sql.Transpiler to collect namedtuples rather than tuples for attr paths + 0.3.4 ----- - Update tox.ini and clean up linting errors di...
15five/scim2-filter-parser
3ed1858b492542d0bc9b9e9ab9547641595e28c1
diff --git a/tests/test_transpiler.py b/tests/test_transpiler.py index b8e1bb4..280c2d3 100644 --- a/tests/test_transpiler.py +++ b/tests/test_transpiler.py @@ -36,6 +36,16 @@ class RFCExamples(TestCase): self.assertEqual(expected_sql, sql, query) self.assertEqual(expected_params, params, query) + ...
Return NamedTuple rather than tuple. It would be nice to return a NamedTuple instead of a tuple here: https://github.com/15five/scim2-filter-parser/blob/7ddc216f8c3dd1cdb2152944187e8f7f5ee07be2/src/scim2_filter_parser/transpilers/sql.py#L148 This way parts of each path could be accessed by name rather than by in...
0.0
3ed1858b492542d0bc9b9e9ab9547641595e28c1
[ "tests/test_transpiler.py::RFCExamples::test_attr_paths_are_created" ]
[ "tests/test_transpiler.py::CommandLine::test_command_line", "tests/test_transpiler.py::AzureQueries::test_email_type_eq_primary_value_eq_uuid", "tests/test_transpiler.py::AzureQueries::test_parse_simple_email_filter_with_uuid", "tests/test_transpiler.py::AzureQueries::test_external_id_from_azure", "tests/te...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-07-30 14:25:04+00:00
mit
2
15five__scim2-filter-parser-20
diff --git a/src/scim2_filter_parser/parser.py b/src/scim2_filter_parser/parser.py index 516f65d..12c693e 100644 --- a/src/scim2_filter_parser/parser.py +++ b/src/scim2_filter_parser/parser.py @@ -110,9 +110,8 @@ class SCIMParser(Parser): # which takes precedence over "or" # 3. Attribute operators ...
15five/scim2-filter-parser
08de23c5626556a37beced764a22a2fa7021989b
diff --git a/tests/test_parser.py b/tests/test_parser.py index 4ff562c..19aa198 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -47,6 +47,24 @@ class BuggyQueries(TestCase): with self.assertRaises(parser.SCIMParserError): self.parser.parse(token_stream) + def test_g17_1_log_ex...
Issue when using multiple "or" or "and" Hi, I am facing an issue, where the query having two or more "and" or more than two "or" is failing. Have a look at examples below: - 1)```"displayName co \"username\" or nickName co \"username\" or userName co \"username\""``` ```"displayName co \"username\" and nick...
0.0
08de23c5626556a37beced764a22a2fa7021989b
[ "tests/test_parser.py::BuggyQueries::test_g17_2_log_exp_order", "tests/test_parser.py::BuggyQueries::test_g17_1_log_exp_order" ]
[ "tests/test_parser.py::BuggyQueries::test_g17_3_log_exp_order", "tests/test_parser.py::BuggyQueries::test_no_quotes_around_comp_value", "tests/test_parser.py::RegressionTestQueries::test_command_line", "tests/test_parser.py::CommandLine::test_command_line" ]
{ "failed_lite_validators": [ "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2020-10-18 03:21:13+00:00
mit
3
20c__ctl-3
diff --git a/src/ctl/plugins/pypi.py b/src/ctl/plugins/pypi.py index 5d979af..a6117af 100644 --- a/src/ctl/plugins/pypi.py +++ b/src/ctl/plugins/pypi.py @@ -32,7 +32,7 @@ class PyPIPluginConfig(release.ReleasePluginConfig): config_file = confu.schema.Str(help="path to pypi config file (e.g. ~/.pypirc)") # P...
20c/ctl
879af37647e61767a1ede59ffd353e4cfd27cd6f
diff --git a/tests/test_plugin_pypi.py b/tests/test_plugin_pypi.py index 20315ad..19813e2 100644 --- a/tests/test_plugin_pypi.py +++ b/tests/test_plugin_pypi.py @@ -53,35 +53,35 @@ def test_init(): -def test_set_target_git_path(tmpdir, ctlr): +def test_set_repository_git_path(tmpdir, ctlr): """ - Test set...
PyPI plugin: `target` config attribute should be `repository` This is so it's in line with the version plugin, which currently uses `repository` to specify the target repository The pypi plugin currently uses `repository` to specify which PyPI repository to use, this should change to `pypi_repository` as well. Sh...
0.0
879af37647e61767a1ede59ffd353e4cfd27cd6f
[ "tests/test_plugin_pypi.py::test_set_repository_git_path[standard]", "tests/test_plugin_pypi.py::test_set_repository_error[standard]", "tests/test_plugin_pypi.py::test_set_repository_git_plugin[standard]" ]
[ "tests/test_plugin_pypi.py::test_init" ]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2019-10-08 09:23:56+00:00
apache-2.0
4
20c__ctl-7
diff --git a/Ctl/Pipfile b/Ctl/Pipfile index 0c7a304..1bd6308 100644 --- a/Ctl/Pipfile +++ b/Ctl/Pipfile @@ -14,7 +14,7 @@ tmpl = "==0.3.0" [packages] munge = "<1,>=0.4" -cfu = ">=1.2.0,<2" +cfu = ">=1.3.0,<2" grainy = ">=1.4.0,<2" git-url-parse = ">=1.1.0,<2" pluginmgr = ">=0.6" diff --git a/Ctl/requirements.tx...
20c/ctl
be7f350f8f2d92918922d82fce0266fcd72decd2
diff --git a/tests/test_plugin_version.py b/tests/test_plugin_version.py index 6745c78..4b9617a 100644 --- a/tests/test_plugin_version.py +++ b/tests/test_plugin_version.py @@ -138,6 +138,30 @@ def test_bump(tmpdir, ctlr): plugin.bump(version="invalid", repo="dummy_repo") +def test_bump_truncated(tmpdir, c...
Better error handling for config errors outside of `plugins` Example: having a schema error in `permissions` exits ctl with traceback that's not very telling as to what is failing reproduce: ``` permissions: namespace: ctl permission: crud ```
0.0
be7f350f8f2d92918922d82fce0266fcd72decd2
[ "tests/test_util_versioning.py::test_validate_semantic[1.0-expected4-None]", "tests/test_plugin_version.py::test_bump_truncated[standard]" ]
[ "tests/test_util_versioning.py::test_bump_semantic[1.2.3-minor-expected1]", "tests/test_util_versioning.py::test_validate_semantic[1.0.0-expected0-None]", "tests/test_util_versioning.py::test_validate_semantic[version3-expected3-None]", "tests/test_util_versioning.py::test_validate_semantic[version1-expected1...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2019-10-21 11:05:40+00:00
apache-2.0
5
3YOURMIND__django-migration-linter-186
diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 085b32c..fef9e0e 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -28,7 +28,7 @@ jobs: strategy: matrix: - python-version: ['2.7', '3.5', '3.6', '3.7', '3.8', '3.9'] + python...
3YOURMIND/django-migration-linter
aef3db3e4198d06c38bc4b0874e72ed657891eea
diff --git a/tests/unit/test_sql_analyser.py b/tests/unit/test_sql_analyser.py index 00dd50e..65ab7f0 100644 --- a/tests/unit/test_sql_analyser.py +++ b/tests/unit/test_sql_analyser.py @@ -233,6 +233,23 @@ class PostgresqlAnalyserTestCase(SqlAnalyserTestCase): sql = "CREATE UNIQUE INDEX title_idx ON films (tit...
Linter fails on CREATE INDEX when creating a new table Here is an example `CreateModel` from Django: ```python migrations.CreateModel( name='ShipmentMetadataAlert', fields=[ ('deleted_at', models.DateTimeField(blank=True, db_index=True, null=True)), ('created_at', common.fields.CreatedFi...
0.0
aef3db3e4198d06c38bc4b0874e72ed657891eea
[ "tests/unit/test_sql_analyser.py::PostgresqlAnalyserTestCase::test_create_index_non_concurrently_with_table_creation" ]
[ "tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_many_to_many_field", "tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_not_null", "tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_not_null_followed_by_default", "tests/unit/test_sql_analyser.py::MySqlAnalyserTe...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2021-12-20 21:27:38+00:00
apache-2.0
6
3YOURMIND__django-migration-linter-258
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3069d91..beafd65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,21 @@ Instead, the linter crashes and lets the `sqlmigrate` error raise, in order to avoid letting a problematic migration pass. One common reason for such an error is the SQL generation which requ...
3YOURMIND/django-migration-linter
366d16b01a72d0baa54fef55761d846b0f05b8dd
diff --git a/tests/unit/test_sql_analyser.py b/tests/unit/test_sql_analyser.py index d7349fc..012d53c 100644 --- a/tests/unit/test_sql_analyser.py +++ b/tests/unit/test_sql_analyser.py @@ -297,6 +297,10 @@ class PostgresqlAnalyserTestCase(SqlAnalyserTestCase): sql = "CREATE UNIQUE INDEX CONCURRENTLY title_idx ...
Adding an index with a NOT NULL condition incorrectly triggers NOT_NULL rule Adding an index with a `WHERE` clause including `NOT NULL` gets flagged as a `NOT NULL constraint on columns` error. ## Steps to reproduce The follow migration operation: ```python AddIndexConcurrently( model_name="prediction", ...
0.0
366d16b01a72d0baa54fef55761d846b0f05b8dd
[ "tests/unit/test_sql_analyser.py::PostgresqlAnalyserTestCase::test_create_index_concurrently_where" ]
[ "tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_many_to_many_field", "tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_not_null", "tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_not_null_followed_by_default", "tests/unit/test_sql_analyser.py::MySqlAnalyserTe...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2023-07-03 18:35:18+00:00
apache-2.0
7
3YOURMIND__django-migration-linter-47
diff --git a/django_migration_linter/migration_linter.py b/django_migration_linter/migration_linter.py index f9c0ab1..03c2054 100644 --- a/django_migration_linter/migration_linter.py +++ b/django_migration_linter/migration_linter.py @@ -20,7 +20,7 @@ from subprocess import Popen, PIPE import sys from .cache import ...
3YOURMIND/django-migration-linter
fbf0f4419336fcb1235fa57f5575ad2593354e44
diff --git a/tests/functional/test_cmd_line_call.py b/tests/functional/test_cmd_line_call.py index a2861fa..47d7944 100644 --- a/tests/functional/test_cmd_line_call.py +++ b/tests/functional/test_cmd_line_call.py @@ -16,7 +16,7 @@ import os import shutil import unittest from subprocess import Popen, PIPE -from djang...
Add --version option Pretty straightforward. Have a `--version` that prints the current version of the linter.
0.0
fbf0f4419336fcb1235fa57f5575ad2593354e44
[ "tests/functional/test_cmd_line_call.py::VersionOptionLinterFromCommandLineTest::test_call_with_version_option", "tests/functional/test_cmd_line_call.py::VersionOptionLinterFromCommandLineTest::test_call_with_short_version_option" ]
[ "tests/functional/test_cmd_line_call.py::VersionOptionLinterFromCommandLineTest::test_call_linter_cmd_line_cache", "tests/functional/test_cmd_line_call.py::CallLinterFromCommandLineTest::test_call_linter_cmd_line_cache" ]
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2019-01-21 21:29:34+00:00
apache-2.0
8
4degrees__clique-26
diff --git a/source/clique/collection.py b/source/clique/collection.py index 0c3b296..db9276c 100644 --- a/source/clique/collection.py +++ b/source/clique/collection.py @@ -251,15 +251,25 @@ class Collection(object): else: data['padding'] = '%d' - if self.indexes: + if '{holes}' in...
4degrees/clique
a89507304acce5931f940c34025a6547fa8227b5
diff --git a/test/unit/test_collection.py b/test/unit/test_collection.py index ce4daa7..11cb01e 100644 --- a/test/unit/test_collection.py +++ b/test/unit/test_collection.py @@ -2,6 +2,7 @@ # :copyright: Copyright (c) 2013 Martin Pengelly-Phillips # :license: See LICENSE.txt. +import sys import inspect import py...
collection.format hits maximum recursion depth for collections with lots of holes. The following code gives an example. ```python paths = ["name.{0:04d}.jpg".format(x) for x in range(2000)[::2]] collection = clique.assemble(paths)[0][0] collection.format("{head}####{tail}") ```
0.0
a89507304acce5931f940c34025a6547fa8227b5
[ "test/unit/test_collection.py::test_format_sparse_collection" ]
[ "test/unit/test_collection.py::test_remove_non_member", "test/unit/test_collection.py::test_separate[non-contiguous", "test/unit/test_collection.py::test_is_compatible[incompatible", "test/unit/test_collection.py::test_compatible_merge[complimentary]", "test/unit/test_collection.py::test_holes[range", "te...
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2016-04-30 17:21:04+00:00
apache-2.0
9
6si__shipwright-79
diff --git a/CHANGES.rst b/CHANGES.rst index f034d37..89cf5f1 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,7 +1,8 @@ 0.5.1 (unreleased) ------------------ -- Nothing changed yet. +- Add --pull-cache to pull images from repository before building. + (`Issue #49 <https://github.com/6si/shipwright/issues/49>`_). ...
6si/shipwright
7d3ccf39acc79bb6d33a787e773227358764dd2c
diff --git a/tests/integration/test_docker_builds.py b/tests/integration/test_docker_builds.py index 00aa6be..3a22616 100644 --- a/tests/integration/test_docker_builds.py +++ b/tests/integration/test_docker_builds.py @@ -12,7 +12,7 @@ from .utils import commit_untracked, create_repo, get_defaults def default_args(...
docker pull all images for current branch and master before building Because our buildserver forgets the docker cache between builds we pull the previous build for all the images. it would be great if we could get shipwright to do it. Otherwise a command like "shipright images" which lists all the images that shi...
0.0
7d3ccf39acc79bb6d33a787e773227358764dd2c
[ "tests/test_cli.py::test_args", "tests/test_cli.py::test_args_2", "tests/test_cli.py::test_args_base" ]
[ "tests/integration/test_docker_builds.py::test_dirty_fails_without_flag", "tests/test_cli.py::test_without_json_manifest", "tests/test_cli.py::test_push_also_builds", "tests/test_cli.py::test_assert_hostname" ]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2016-08-22 09:51:49+00:00
apache-2.0
10
ARM-software__mango-11
diff --git a/mango/domain/distribution.py b/mango/domain/distribution.py index 4f5b69d..bb9e14d 100644 --- a/mango/domain/distribution.py +++ b/mango/domain/distribution.py @@ -1,49 +1,5 @@ -# Defining loguniform distribution -""" -Credits: Extended from the original definition of rvs function in scipy/scipy/stats/_dis...
ARM-software/mango
e2d4fd8ae61d2ab8921c94fa2f4dafc1119dbab2
diff --git a/mango/tests/test_domain_space.py b/mango/tests/test_domain_space.py index f393f2b..58fcbc6 100644 --- a/mango/tests/test_domain_space.py +++ b/mango/tests/test_domain_space.py @@ -2,6 +2,7 @@ import numpy as np from scipy.stats import uniform, loguniform from mango.domain.domain_space import domain_spa...
Domain error in loguniform Hi, seems that there is a problem with `loguniform` when one of its argument is negative. For example, my code is runnable when the first argument of `loguniform` is positive and it generates domain error when the first argument is a negative number. Any thought on this?
0.0
e2d4fd8ae61d2ab8921c94fa2f4dafc1119dbab2
[ "mango/tests/test_domain_space.py::test_mango_loguniform" ]
[ "mango/tests/test_domain_space.py::test_domain", "mango/tests/test_domain_space.py::test_gp_samples_to_params", "mango/tests/test_domain_space.py::test_gp_space" ]
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2020-06-11 05:56:07+00:00
apache-2.0
11
ARM-software__mango-47
diff --git a/README.md b/README.md index 16b11cb..2f14c63 100644 --- a/README.md +++ b/README.md @@ -352,8 +352,9 @@ The configuration parameters are: ... return True/False ``` -Early stopping is one of Mango's important features that allow to early terminate the current parallel search based on the cu...
ARM-software/mango
a71bc007a0c4e39462fd1810cdbcf99c4e854679
diff --git a/tests/test_tuner.py b/tests/test_tuner.py index 24e7c99..98e5fbd 100644 --- a/tests/test_tuner.py +++ b/tests/test_tuner.py @@ -14,7 +14,6 @@ import numpy as np from mango.domain.domain_space import domain_space from mango import Tuner, scheduler from scipy.stats import uniform -from mango.domain.distri...
Is it possible to add an initial data point? The way Im currently using mango, I will always have a first run with good defaults. Is it possible to use this information somehow? I have quite wide ranges for my hyper parameters, and I think this would help a lot.
0.0
a71bc007a0c4e39462fd1810cdbcf99c4e854679
[ "tests/test_tuner.py::test_initial_custom" ]
[ "tests/test_tuner.py::test_domain", "tests/test_tuner.py::test_tuner", "tests/test_tuner.py::test_rosenbrock", "tests/test_tuner.py::test_config", "tests/test_tuner.py::test_convex", "tests/test_tuner.py::test_six_hump", "tests/test_tuner.py::test_celery_scheduler", "tests/test_tuner.py::test_custom_s...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2022-03-02 18:10:44+00:00
apache-2.0
12
ARMmbed__greentea-237
diff --git a/mbed_greentea/mbed_report_api.py b/mbed_greentea/mbed_report_api.py index da3f0d9..82acb5c 100644 --- a/mbed_greentea/mbed_report_api.py +++ b/mbed_greentea/mbed_report_api.py @@ -38,6 +38,13 @@ def exporter_json(test_result_ext, test_suite_properties=None): @details This is a machine friendly format ...
ARMmbed/greentea
86f5ec3211a8f7f324bcdd3201012945ee0534ac
diff --git a/test/report_api.py b/test/report_api.py new file mode 100644 index 0000000..122e26e --- /dev/null +++ b/test/report_api.py @@ -0,0 +1,56 @@ +#!/usr/bin/env python +""" +mbed SDK +Copyright (c) 2017 ARM Limited + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file exc...
mbedgt crash with float division by zero Hi Here is my command: mbedgt -V -v -t NUCLEO_F401RE-ARM,NUCLEO_F401RE-GCC_ARM,NUCLEO_F401RE-IAR,NUCLEO_F410RB-ARM,NUCLEO_F410RB-GCC_ARM,NUCLEO_F410RB-IAR,NUCLEO_F411RE-ARM,NUCLEO_F411RE-GCC_ARM,NUCLEO_F411RE-IAR --report-html=/c/xxx.html It has crashed: ... mbedgt: a...
0.0
86f5ec3211a8f7f324bcdd3201012945ee0534ac
[ "test/report_api.py::ReportEmitting::test_report_zero_testcases" ]
[ "test/report_api.py::ReportEmitting::test_report_zero_tests" ]
{ "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2017-09-25 13:51:40+00:00
apache-2.0
13
ARMmbed__greentea-243
diff --git a/mbed_greentea/mbed_report_api.py b/mbed_greentea/mbed_report_api.py index 166bc29..22a3778 100644 --- a/mbed_greentea/mbed_report_api.py +++ b/mbed_greentea/mbed_report_api.py @@ -42,7 +42,7 @@ def exporter_json(test_result_ext, test_suite_properties=None): for suite in target.values(): ...
ARMmbed/greentea
8f7b28f8ec739156d238304fa4f5f2e5156536f5
diff --git a/test/report_api.py b/test/report_api.py index 122e26e..2a4275f 100644 --- a/test/report_api.py +++ b/test/report_api.py @@ -45,7 +45,7 @@ class ReportEmitting(unittest.TestCase): u'build_path_abs': u'N/A', u'copy_method': u'N/A', u'image_path':...
mbedgt crash with UnicodeDecodeError Hi I am sorry, but I still get some crash with the new green tea version ... mbedgt: exporting to HTML file 'C:/mcu/reports/report__mbed_os5_release_non_regression_F756ZG_mbed-os-5.5.7__2017_09_28_00_06.html'... mbedgt: unexpected error: 'unicodeescape' codec can't decode b...
0.0
8f7b28f8ec739156d238304fa4f5f2e5156536f5
[ "test/report_api.py::ReportEmitting::test_report_zero_testcases" ]
[ "test/report_api.py::ReportEmitting::test_report_zero_tests" ]
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2017-09-29 17:09:53+00:00
apache-2.0
14
ARMmbed__greentea-250
diff --git a/mbed_greentea/mbed_target_info.py b/mbed_greentea/mbed_target_info.py index 356676b..c825bcf 100644 --- a/mbed_greentea/mbed_target_info.py +++ b/mbed_greentea/mbed_target_info.py @@ -20,6 +20,17 @@ Author: Przemyslaw Wirkus <Przemyslaw.Wirkus@arm.com> import os import re import json +from os import wal...
ARMmbed/greentea
b8bcffbb7aaced094f252a4ddfe930e8237fb484
diff --git a/test/mbed_gt_target_info.py b/test/mbed_gt_target_info.py index e3f0a6a..96cd1db 100644 --- a/test/mbed_gt_target_info.py +++ b/test/mbed_gt_target_info.py @@ -21,6 +21,8 @@ import shutil import tempfile import unittest +from six import StringIO + from mock import patch from mbed_greentea import mbed...
Target property priority incorrect Currently we have priority as follows: ``` internal yotta blob > targets.json > tool default ``` This is a bug. Instead the priority should be: ``` targets.json /w default > internal yotta blob > tool delaut ``` This implies a few test cases: In targets.json | I...
0.0
b8bcffbb7aaced094f252a4ddfe930e8237fb484
[ "test/mbed_gt_target_info.py::GreenteaTargetInfo::test_platform_property_from_targets_json_inherits", "test/mbed_gt_target_info.py::GreenteaTargetInfo::test_platform_property", "test/mbed_gt_target_info.py::GreenteaTargetInfo::test_get_platform_property_from_targets_invalid_json", "test/mbed_gt_target_info.py...
[ "test/mbed_gt_target_info.py::GreenteaTargetInfo::test_parse_mbed_target_from_target_json_missing_keywords", "test/mbed_gt_target_info.py::GreenteaTargetInfo::test_parse_yotta_search_cmd_output_new_style_text", "test/mbed_gt_target_info.py::GreenteaTargetInfo::test_get_mbed_targets_from_yotta_local_module_inval...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2017-10-20 19:13:58+00:00
apache-2.0
15
ARMmbed__greentea-263
diff --git a/mbed_greentea/mbed_greentea_cli.py b/mbed_greentea/mbed_greentea_cli.py index f6a13c4..446b965 100644 --- a/mbed_greentea/mbed_greentea_cli.py +++ b/mbed_greentea/mbed_greentea_cli.py @@ -23,6 +23,7 @@ import os import sys import random import optparse +import fnmatch from time import time try: f...
ARMmbed/greentea
68508c5f4d7cf0635c75399d0ff7cfa896fdf2cc
diff --git a/test/mbed_gt_cli.py b/test/mbed_gt_cli.py index 0646c20..8f4a1eb 100644 --- a/test/mbed_gt_cli.py +++ b/test/mbed_gt_cli.py @@ -21,6 +21,36 @@ import sys import unittest from mbed_greentea import mbed_greentea_cli +from mbed_greentea.tests_spec import TestSpec + +test_spec_def = { + "builds": { + ...
Test names are not correctly globbed Test names only respect a wildcard that is placed at the end of the string. Ex. "mbed-os-*". However, it does not respect the wildcard anywhere else. Ex. "*-timer" The build tools accept these wildcards, so greentea should as well. This is the line responsible: https://github....
0.0
68508c5f4d7cf0635c75399d0ff7cfa896fdf2cc
[ "test/mbed_gt_cli.py::GreenteaCliFunctionality::test_create_filtered_test_list" ]
[ "test/mbed_gt_cli.py::GreenteaCliFunctionality::test_get_local_host_tests_dir_invalid_path", "test/mbed_gt_cli.py::GreenteaCliFunctionality::test_get_hello_string", "test/mbed_gt_cli.py::GreenteaCliFunctionality::test_get_local_host_tests_dir_default_path", "test/mbed_gt_cli.py::GreenteaCliFunctionality::test...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2018-02-15 17:29:56+00:00
apache-2.0
16
ARMmbed__mbed-tools-138
diff --git a/news/20201201142709.bugfix b/news/20201201142709.bugfix new file mode 100644 index 0000000..0468f3e --- /dev/null +++ b/news/20201201142709.bugfix @@ -0,0 +1,1 @@ +Fix bug where we failed to handle config options that contain quotes (#125) diff --git a/src/mbed_tools/build/_internal/templates/mbed_config.t...
ARMmbed/mbed-tools
94a3bd761d6ab3305c81da93517767aafff58d7e
diff --git a/tests/build/_internal/test_cmake_file.py b/tests/build/_internal/test_cmake_file.py index 1f59cb3..b0247a8 100644 --- a/tests/build/_internal/test_cmake_file.py +++ b/tests/build/_internal/test_cmake_file.py @@ -2,67 +2,69 @@ # Copyright (C) 2020 Arm Mbed. All rights reserved. # SPDX-License-Identifier: ...
mbed-tools fails to handle config options that contain quotes ### Description From @rajkan01: For the below mbed_lib.json config ``` "iotc-mqtt-host": { "help": "IOTC MQTT host configuration. Defaults to mqtt.2030.ltsapis.goog host and port number 8883 if undefined", "value": "{\"mqtt.2030.lts...
0.0
94a3bd761d6ab3305c81da93517767aafff58d7e
[ "tests/build/_internal/test_cmake_file.py::TestRendersCMakeListsFile::test_returns_quoted_content" ]
[ "tests/build/_internal/test_cmake_file.py::TestGenerateCMakeListsFile::test_correct_arguments_passed", "tests/build/_internal/test_cmake_file.py::TestRendersCMakeListsFile::test_returns_rendered_content" ]
{ "failed_lite_validators": [ "has_hyperlinks", "has_added_files" ], "has_test_patch": true, "is_lite": false }
2020-12-01 14:33:04+00:00
apache-2.0
17
ARMmbed__mbed-tools-154
diff --git a/README.md b/README.md index fdd2e05..eff3449 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,10 @@ follows: ## Installation +`mbed-tools` relies on the Ninja build system and CMake. +- CMake. [Install version 3.19.0 or newer for all operating systems](https://cmake.org/install/). +- Ninja. [Instal...
ARMmbed/mbed-tools
9d6b2c71a7ddc93bd71279482a7572cac30ed745
diff --git a/tests/build/test_build.py b/tests/build/test_build.py index b9d32af..5293966 100644 --- a/tests/build/test_build.py +++ b/tests/build/test_build.py @@ -2,45 +2,60 @@ # Copyright (C) 2020 Arm Mbed. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # -import pathlib +import subprocess -from tem...
README.md : miss cmake and ninja information ### Description Hi This morning, I spent some time on a new PC to install this new mbed tool, This was not working, and I got several not friendly messages... ... till I remembered that I didn't install cmake yet... So my request would be: - to update tools when cm...
0.0
9d6b2c71a7ddc93bd71279482a7572cac30ed745
[ "tests/build/test_build.py::TestBuildProject::test_raises_build_error_if_cmake_invocation_fails", "tests/build/test_build.py::TestConfigureProject::test_raises_when_ninja_cannot_be_found", "tests/build/test_build.py::TestConfigureProject::test_raises_when_cmake_cannot_be_found" ]
[ "tests/build/test_build.py::TestBuildProject::test_invokes_cmake_with_correct_args", "tests/build/test_build.py::TestBuildProject::test_invokes_cmake_with_correct_args_if_no_target_passed", "tests/build/test_build.py::TestConfigureProject::test_invokes_cmake_with_correct_args" ]
{ "failed_lite_validators": [ "has_hyperlinks", "has_added_files", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2020-12-10 13:15:11+00:00
apache-2.0
18
ARMmbed__mbed-tools-190
diff --git a/news/169.bugfix b/news/169.bugfix new file mode 100644 index 0000000..78b6135 --- /dev/null +++ b/news/169.bugfix @@ -0,0 +1,1 @@ +Support use of user@host:directory syntax with the import subcommand. diff --git a/src/mbed_tools/project/mbed_program.py b/src/mbed_tools/project/mbed_program.py index d095e5b...
ARMmbed/mbed-tools
d4dd48ce58952851f9cb2a9e98b0f788a61a23a3
diff --git a/tests/project/test_mbed_program.py b/tests/project/test_mbed_program.py index 7f700f0..be83aa9 100644 --- a/tests/project/test_mbed_program.py +++ b/tests/project/test_mbed_program.py @@ -127,6 +127,12 @@ class TestParseURL(TestCase): self.assertEqual(data["url"], url) self.assertEqual(da...
mbed-tools import fails to import an example with ssh url ### Description <!-- A detailed description of what is being reported. Please include steps to reproduce the problem. Things to consider sharing: - What version of the package is being used (pip show mbed-tools)? - What is the host platform and version ...
0.0
d4dd48ce58952851f9cb2a9e98b0f788a61a23a3
[ "tests/project/test_mbed_program.py::TestParseURL::test_creates_valid_dst_dir_from_ssh_url" ]
[ "tests/project/test_mbed_program.py::TestInitialiseProgram::test_from_existing_raises_if_no_mbed_os_dir_found_and_check_mbed_os_is_true", "tests/project/test_mbed_program.py::TestInitialiseProgram::test_from_existing_raises_if_path_is_not_a_program", "tests/project/test_mbed_program.py::TestInitialiseProgram::t...
{ "failed_lite_validators": [ "has_hyperlinks", "has_added_files" ], "has_test_patch": true, "is_lite": false }
2021-02-15 13:43:30+00:00
apache-2.0
19
ARMmbed__mbed-tools-196
diff --git a/news/20210218112043.bugfix b/news/20210218112043.bugfix new file mode 100644 index 0000000..f595eac --- /dev/null +++ b/news/20210218112043.bugfix @@ -0,0 +1,1 @@ +Raise a nicer error from mbed-tools detect when running on an unrecognised OS. diff --git a/src/mbed_tools/devices/_internal/detect_candidate_d...
ARMmbed/mbed-tools
fe56531239ba0a1cbe2ce696f00f9b58889f05bc
diff --git a/tests/devices/_internal/test_detect_candidate_devices.py b/tests/devices/_internal/test_detect_candidate_devices.py index 75c5032..74137b3 100644 --- a/tests/devices/_internal/test_detect_candidate_devices.py +++ b/tests/devices/_internal/test_detect_candidate_devices.py @@ -2,39 +2,49 @@ # Copyright (c) ...
BSD: `mbed-tools detect` causes Python stack trace from mbed_tools/devices ### Description Desired behavior: - `mbed-tools detect` lists out USB-connected boards, or a friendly message if it can't Actual behavior: - `mbed-tools detect` causes a Python stack trace to be printed ``` [mbedtools] patater@exam...
0.0
fe56531239ba0a1cbe2ce696f00f9b58889f05bc
[ "tests/devices/_internal/test_detect_candidate_devices.py::TestDetectCandidateDevices::test_returns_candidates_using_os_specific_detector", "tests/devices/_internal/test_detect_candidate_devices.py::TestGetDetectorForCurrentOS::test_linux_uses_correct_module", "tests/devices/_internal/test_detect_candidate_devi...
[]
{ "failed_lite_validators": [ "has_added_files", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2021-02-18 11:23:15+00:00
apache-2.0
20
ARMmbed__mbed-tools-270
diff --git a/news/222.bugfix b/news/222.bugfix new file mode 100644 index 0000000..4bb5df6 --- /dev/null +++ b/news/222.bugfix @@ -0,0 +1,1 @@ +Add support for MBED_ROM_START, MBED_ROM_SIZE, MBED_RAM_START and MBED_RAM_SIZE in config system. diff --git a/src/mbed_tools/build/_internal/config/config.py b/src/mbed_tools/...
ARMmbed/mbed-tools
73fc6ed6fd728beea588e100c2de83c439c29228
diff --git a/tests/build/_internal/config/test_config.py b/tests/build/_internal/config/test_config.py index 980ed4d..c7e2e35 100644 --- a/tests/build/_internal/config/test_config.py +++ b/tests/build/_internal/config/test_config.py @@ -2,10 +2,11 @@ # Copyright (c) 2020-2021 Arm Limited and Contributors. All rights r...
MBED_ROM_START and friends unavailable on Mbed CLI2 ### Description <!-- A detailed description of what is being reported. Please include steps to reproduce the problem. Things to consider sharing: - What version of the package is being used (pip show mbed-tools)? - What is the host platform and version (e.g. ...
0.0
73fc6ed6fd728beea588e100c2de83c439c29228
[ "tests/build/_internal/config/test_config.py::TestConfig::test_target_overrides_separate_namespace", "tests/build/_internal/config/test_config.py::TestConfig::test_target_overrides_handled", "tests/build/_internal/config/test_config.py::TestConfig::test_macros_are_appended_to", "tests/build/_internal/config/t...
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_added_files", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2021-04-13 11:28:54+00:00
apache-2.0
21
ARMmbed__mbed-tools-284
diff --git a/CHANGELOG.md b/CHANGELOG.md index e61e039..29a1296 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,15 @@ beta releases are not included in this history. For a full list of all releases, [//]: # (begin_release_notes) +7.16.0 (2021-05-26) +=================== + +Features +-------- + +- Targets...
ARMmbed/mbed-tools
71e9707b908c393691a4e509ced90ce608e68b81
diff --git a/tests/build/_internal/config/test_config.py b/tests/build/_internal/config/test_config.py index c7e2e35..980ed4d 100644 --- a/tests/build/_internal/config/test_config.py +++ b/tests/build/_internal/config/test_config.py @@ -2,11 +2,10 @@ # Copyright (c) 2020-2021 Arm Limited and Contributors. All rights r...
mbed_rom_size values from mbed_app.json are ignored **Describe the bug** #270 has implemented mbed_rom_size support in targets.json file, But it seems that if values is overwritten in the local mbed_app.json file, value is ignored @wernerlewis **To Reproduce** Steps to reproduce the behavior: - choose ...
0.0
71e9707b908c393691a4e509ced90ce608e68b81
[ "tests/build/test_generate_config.py::test_overrides_target_non_config_params_from_app[target:" ]
[ "tests/build/_internal/config/test_config.py::TestConfig::test_config_updated", "tests/build/_internal/config/test_config.py::TestConfig::test_raises_when_trying_to_add_duplicate_config_setting", "tests/build/_internal/config/test_config.py::TestConfig::test_target_overrides_handled", "tests/build/_internal/c...
{ "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2021-05-24 11:45:52+00:00
apache-2.0
22
ARMmbed__mbed-tools-285
diff --git a/news/20210524175020.bugfix b/news/20210524175020.bugfix new file mode 100644 index 0000000..e9b7b63 --- /dev/null +++ b/news/20210524175020.bugfix @@ -0,0 +1,1 @@ +Avoid searching config file paths twice when mbed-os-path is used and it is a subdirectory of the project path. diff --git a/src/mbed_tools/bui...
ARMmbed/mbed-tools
ff2da40abec773902b6fda86d36de154d83a7d9f
diff --git a/tests/build/_internal/config/test_assemble_build_config.py b/tests/build/_internal/config/test_assemble_build_config.py index 79acb8d..47fcc5f 100644 --- a/tests/build/_internal/config/test_assemble_build_config.py +++ b/tests/build/_internal/config/test_assemble_build_config.py @@ -6,7 +6,7 @@ import json...
Does not compile with --mbed-os-path option **Describe the bug** As in title. **To Reproduce** Steps to reproduce the behavior: 1. Import an example project. 1. mbed-tools compile -m K64F -t GCC_ARM --mbed-os-path mbed-os Error: `ValueError: Setting storage_filesystem.rbp_internal_size already defined. You c...
0.0
ff2da40abec773902b6fda86d36de154d83a7d9f
[ "tests/build/_internal/config/test_assemble_build_config.py::TestAssembleConfigFromSourcesAndLibFiles::test_does_not_search_symlinks_in_proj_dir_twice", "tests/build/_internal/config/test_assemble_build_config.py::TestAssembleConfigFromSourcesAndLibFiles::test_ignores_duplicate_paths_to_lib_files" ]
[ "tests/build/_internal/config/test_assemble_build_config.py::TestAssembleConfigFromSourcesAndLibFiles::test_updates_target_labels_from_config", "tests/build/_internal/config/test_assemble_build_config.py::TestAssembleConfigFromSourcesAndLibFiles::test_assembles_config_using_all_relevant_files" ]
{ "failed_lite_validators": [ "has_added_files", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2021-05-24 18:08:57+00:00
apache-2.0
23
ARMmbed__mbed-tools-288
diff --git a/news/286.bugfix b/news/286.bugfix new file mode 100644 index 0000000..745bfb1 --- /dev/null +++ b/news/286.bugfix @@ -0,0 +1,1 @@ +Properly handle --custom-targets-json in configure sub command diff --git a/news/287.bugfix b/news/287.bugfix new file mode 100644 index 0000000..586d532 --- /dev/null +++ b/ne...
ARMmbed/mbed-tools
673552826ac7e1e60477e8a212a522412e45ef7e
diff --git a/tests/cli/test_configure.py b/tests/cli/test_configure.py index edb2341..a0c61fd 100644 --- a/tests/cli/test_configure.py +++ b/tests/cli/test_configure.py @@ -2,6 +2,8 @@ # Copyright (c) 2020-2021 Arm Limited and Contributors. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # +import pathlib...
Allow setting custom output directory in "configure" sub command **Is your feature request related to a problem? Please describe.** I use a custom build tool (that calls cmake under the hood) to build packages in my project. The fact mbed-tools use such an unusual build directory makes things awkward to integrate. ...
0.0
673552826ac7e1e60477e8a212a522412e45ef7e
[ "tests/cli/test_configure.py::TestConfigureCommand::test_custom_output_directory_used_when_passed", "tests/cli/test_configure.py::TestConfigureCommand::test_custom_targets_location_used_when_passed" ]
[ "tests/cli/test_configure.py::TestConfigureCommand::test_generate_config_called_with_correct_arguments", "tests/cli/test_configure.py::TestConfigureCommand::test_generate_config_called_with_mbed_os_path" ]
{ "failed_lite_validators": [ "has_added_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-05-25 13:50:10+00:00
apache-2.0
24
ARMmbed__mbed-tools-292
diff --git a/news/291.bugfix b/news/291.bugfix new file mode 100644 index 0000000..c7487e4 --- /dev/null +++ b/news/291.bugfix @@ -0,0 +1,1 @@ +Add an option `--app-config` to `configure` and `build` commands to allow users to specify an application configuration file. diff --git a/src/mbed_tools/cli/build.py b/src/mbe...
ARMmbed/mbed-tools
f55d2eb5f6aec73e33a85331c82d0d3d71cc09b4
diff --git a/tests/cli/test_build.py b/tests/cli/test_build.py index 860d275..d680ee9 100644 --- a/tests/cli/test_build.py +++ b/tests/cli/test_build.py @@ -116,18 +116,6 @@ class TestBuildCommand(TestCase): self.assertIsNotNone(result.exception) self.assertRegex(result.output, "--mbed-target"...
Missing `--app-config` option **Describe the bug** Mbed CLI 1 offers an `--app-config` option to let users specify the application configuration JSON instead of assuming `mbed_app.json`. This is not currently provided by mbed-tools, but useful when * one application provides multiple configurations for different use ...
0.0
f55d2eb5f6aec73e33a85331c82d0d3d71cc09b4
[ "tests/cli/test_build.py::TestBuildCommand::test_app_config_used_when_passed", "tests/cli/test_configure.py::TestConfigureCommand::test_app_config_used_when_passed" ]
[ "tests/cli/test_build.py::TestBuildCommand::test_build_flash_both_two_devices", "tests/cli/test_build.py::TestBuildCommand::test_build_flash_only_identifier_device", "tests/cli/test_build.py::TestBuildCommand::test_build_flash_options_bin_target", "tests/cli/test_build.py::TestBuildCommand::test_build_flash_o...
{ "failed_lite_validators": [ "has_hyperlinks", "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-06-22 11:53:33+00:00
apache-2.0
25
ARMmbed__mbed-tools-293
diff --git a/news/262.bugfix b/news/262.bugfix new file mode 100644 index 0000000..a438a13 --- /dev/null +++ b/news/262.bugfix @@ -0,0 +1,1 @@ +Add `-b`, `--profile` to the `configure` subcommand for specifying build profile. diff --git a/src/mbed_tools/cli/configure.py b/src/mbed_tools/cli/configure.py index 360c389.....
ARMmbed/mbed-tools
a97be74fef509c90c820c9a96961377e14412c92
diff --git a/tests/cli/test_build.py b/tests/cli/test_build.py index d680ee9..42e5852 100644 --- a/tests/cli/test_build.py +++ b/tests/cli/test_build.py @@ -186,6 +186,29 @@ class TestBuildCommand(TestCase): generate_config.assert_called_once_with(target.upper(), toolchain.upper(), program) se...
`mbed-tools configure` generates `mbed_config.cmake` under `develop`, and doesn't have a `-b` option From the PR description and commit msg, it says that configs and builds should now live under `cmake_build/TARGET/PROFILE/TOOLCHAIN`, but this line makes `mbed-tools configure` always generate the `mbed_config.cmake` un...
0.0
a97be74fef509c90c820c9a96961377e14412c92
[ "tests/cli/test_configure.py::TestConfigureCommand::test_profile_used_when_passed" ]
[ "tests/cli/test_build.py::TestBuildCommand::test_raises_if_target_identifier_not_int", "tests/cli/test_build.py::TestBuildCommand::test_build_flash_options_bin_target", "tests/cli/test_build.py::TestBuildCommand::test_build_flash_only_identifier_device", "tests/cli/test_build.py::TestBuildCommand::test_calls_...
{ "failed_lite_validators": [ "has_added_files" ], "has_test_patch": true, "is_lite": false }
2021-06-30 14:52:52+00:00
apache-2.0
26
ARMmbed__mbed-tools-309
diff --git a/news/233.bugfix b/news/233.bugfix new file mode 100644 index 0000000..dc0a11e --- /dev/null +++ b/news/233.bugfix @@ -0,0 +1,1 @@ +Generate .mbedignore in a project's build directory, to prevent Mbed CLI 1 from picking up CMake build files. diff --git a/src/mbed_tools/build/config.py b/src/mbed_tools/build...
ARMmbed/mbed-tools
ec83fe02e2ce63938f6262c69b6f95019e5d7d03
diff --git a/tests/build/test_generate_config.py b/tests/build/test_generate_config.py index e7d7eb7..9e94993 100644 --- a/tests/build/test_generate_config.py +++ b/tests/build/test_generate_config.py @@ -4,11 +4,12 @@ # import json +import os import pytest from mbed_tools.project import MbedProgram from mbed_...
Users are building cli1 and cli2 within the same app **Describe the bug** A clear and concise description of what the bug is. I've received 2 questions with the similar topic within the last 24 hours - "my build is failing with a weird error" - a user first run cli2 and then later another day switched to cli1 and r...
0.0
ec83fe02e2ce63938f6262c69b6f95019e5d7d03
[ "tests/build/test_generate_config.py::test_overrides_target_non_config_params_from_app[target:", "tests/build/test_generate_config.py::test_macros_from_lib_collected[single]", "tests/build/test_generate_config.py::test_target_list_params_can_be_added_to[target:", "tests/build/test_generate_config.py::test_tar...
[]
{ "failed_lite_validators": [ "has_added_files" ], "has_test_patch": true, "is_lite": false }
2021-08-11 11:32:09+00:00
apache-2.0
27
ASFHyP3__hyp3-sdk-152
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c340f0..55972fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,14 @@ and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/) and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.4.1](https://github.com/ASFHyP3/...
ASFHyP3/hyp3-sdk
b3e64fdef9d76d7abb6bd762ae1b8429ebd1e3f5
diff --git a/tests/test_jobs.py b/tests/test_jobs.py index 35c409d..cdef7e5 100644 --- a/tests/test_jobs.py +++ b/tests/test_jobs.py @@ -228,60 +228,66 @@ def test_contains(get_mock_job): def test_delitem(): - j1 = Job.from_dict(SUCCEEDED_JOB) - j2 = Job.from_dict(FAILED_JOB) - batch = Batch([j1, j2]) + ...
slicing a Batch returns a list Should return a Batch instead. ``` >>> import hyp3_sdk >>> hyp3 = hyp3_sdk.HyP3() >>> jobs = hyp3.find_jobs() >>> type(jobs) <class 'hyp3_sdk.jobs.Batch'> >>> len(jobs) 955 >>> type(jobs[3:10]) <class 'list'> ```
0.0
b3e64fdef9d76d7abb6bd762ae1b8429ebd1e3f5
[ "tests/test_jobs.py::test_getitem" ]
[ "tests/test_jobs.py::test_batch_iter", "tests/test_jobs.py::test_contains", "tests/test_jobs.py::test_batch_len", "tests/test_jobs.py::test_delitem", "tests/test_jobs.py::test_job_expired", "tests/test_jobs.py::test_batch_add", "tests/test_jobs.py::test_batch_filter_jobs", "tests/test_jobs.py::test_ba...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2021-11-19 18:14:31+00:00
bsd-3-clause
28
ASFHyP3__hyp3-sdk-51
diff --git a/hyp3_sdk/hyp3.py b/hyp3_sdk/hyp3.py index 7d90095..baf69f4 100644 --- a/hyp3_sdk/hyp3.py +++ b/hyp3_sdk/hyp3.py @@ -6,6 +6,7 @@ from urllib.parse import urljoin from requests.exceptions import HTTPError, RequestException +import hyp3_sdk from hyp3_sdk.exceptions import HyP3Error, ValidationError fro...
ASFHyP3/hyp3-sdk
67e33235f7dc3b98241fe34d97a4fae58873590c
diff --git a/tests/test_hyp3.py b/tests/test_hyp3.py index 626ee05..9aa05e9 100644 --- a/tests/test_hyp3.py +++ b/tests/test_hyp3.py @@ -1,4 +1,3 @@ -import json from datetime import datetime, timedelta from urllib.parse import urljoin @@ -10,6 +9,18 @@ from hyp3_sdk import HyP3, Job hyp3_sdk.TESTING = True +@...
Add custom User Agent header to hyp3 api session e.g. `User-Agent: hyp3-sdk v0.1.2` so we can identify SDK-generated requests in the API access logs, separate from other requests made via `requests`.
0.0
67e33235f7dc3b98241fe34d97a4fae58873590c
[ "tests/test_hyp3.py::test_session_headers" ]
[ "tests/test_hyp3.py::test_submit_insar_job", "tests/test_hyp3.py::test_find_jobs", "tests/test_hyp3.py::test_watch", "tests/test_hyp3.py::test_submit_autorift_job", "tests/test_hyp3.py::test_get_job_by_id", "tests/test_hyp3.py::test_submit_job_dict", "tests/test_hyp3.py::test_refresh", "tests/test_hyp...
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2020-12-07 19:19:41+00:00
bsd-3-clause
29
ASFHyP3__hyp3-sdk-53
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8905268..ddcacaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/) and uses [Semantic Versioning...
ASFHyP3/hyp3-sdk
56cfb700341a0de44ee0f2f3548d5ed6c534d659
diff --git a/tests/test_jobs.py b/tests/test_jobs.py index 6d25cec..400f2d8 100644 --- a/tests/test_jobs.py +++ b/tests/test_jobs.py @@ -119,8 +119,10 @@ def test_job_download_files(tmp_path, get_mock_job): def test_batch_len(): - with pytest.warns(UserWarning): - batch = Batch([]) + batch = Batch() +...
Batch constructor should create an empty batch by default Currently, calling `jobs = Batch()` raises `TypeError: __init__() missing 1 required positional argument: 'jobs'`. To construct an empty batch, the user has to write `jobs = Batch([])`. It would be more intuitive if this were the default behavior without hav...
0.0
56cfb700341a0de44ee0f2f3548d5ed6c534d659
[ "tests/test_jobs.py::test_batch_len" ]
[ "tests/test_jobs.py::test_batch_download", "tests/test_jobs.py::test_batch_complete_succeeded", "tests/test_jobs.py::test_job_complete_succeeded_failed_running", "tests/test_jobs.py::test_batch_filter_jobs", "tests/test_jobs.py::test_job_dict_transforms", "tests/test_jobs.py::test_batch_add", "tests/tes...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2020-12-08 01:14:31+00:00
bsd-3-clause
30
ASFHyP3__hyp3-sdk-71
diff --git a/CHANGELOG.md b/CHANGELOG.md index 620eb3f..38529ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - `HyP3.prepare_insar_job` ### Changed +- HyP3 `Batch` objects are now iterable - HyP3 submit methods will always...
ASFHyP3/hyp3-sdk
b8011c957ce5759bd64007c2116d202fdb5a6dae
diff --git a/tests/test_jobs.py b/tests/test_jobs.py index 400f2d8..dab034b 100644 --- a/tests/test_jobs.py +++ b/tests/test_jobs.py @@ -118,17 +118,6 @@ def test_job_download_files(tmp_path, get_mock_job): assert contents == 'foobar2' -def test_batch_len(): - batch = Batch() - assert len(batch) == 0 - -...
Batch should be iterable Attempting to iterate over a Batch object currently fails with `TypeError: 'Batch' object is not iterable`. ``` > import hyp3_sdk > api = hyp3_sdk.HyP3() > jobs = api.find_jobs(name='refactor') > sizes = [job['files'][0]['size'] for job in jobs] Traceback (most recent call last): Fil...
0.0
b8011c957ce5759bd64007c2116d202fdb5a6dae
[ "tests/test_jobs.py::test_batch_iter" ]
[ "tests/test_jobs.py::test_job_download_files", "tests/test_jobs.py::test_batch_complete_succeeded", "tests/test_jobs.py::test_job_expired", "tests/test_jobs.py::test_job_complete_succeeded_failed_running", "tests/test_jobs.py::test_batch_add", "tests/test_jobs.py::test_batch_len", "tests/test_jobs.py::t...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2021-02-16 00:37:00+00:00
bsd-3-clause
31
ASPP__pelita-412
diff --git a/pelita/player/__init__.py b/pelita/player/__init__.py index cf429bca..bedaae24 100644 --- a/pelita/player/__init__.py +++ b/pelita/player/__init__.py @@ -1,7 +1,7 @@ from .base import AbstractTeam, SimpleTeam, AbstractPlayer -from .base import (StoppingPlayer, TestPlayer, SpeakingPlayer, +from .base i...
ASPP/pelita
002ae9e325b1608a324d02749205cd70b4f6da2b
diff --git a/test/test_game_master.py b/test/test_game_master.py index 2b164441..e943d70b 100644 --- a/test/test_game_master.py +++ b/test/test_game_master.py @@ -5,7 +5,7 @@ import collections from pelita.datamodel import CTFUniverse from pelita.game_master import GameMaster, ManhattanNoiser, PlayerTimeout -from p...
pytest warns about our TestPlayer WC1 /tmp/group1/test/test_drunk_player.py cannot collect test class 'TestPlayer' because it has a __init__ constructor Maybe rename it?
0.0
002ae9e325b1608a324d02749205cd70b4f6da2b
[ "test/test_game_master.py::TestAbstracts::test_AbstractViewer", "test/test_game_master.py::TestAbstracts::test_BrokenViewer", "test/test_game_master.py::TestGame::test_play_step", "test/test_game_master.py::TestGame::test_kill_count", "test/test_game_master.py::TestGame::test_failing_player", "test/test_g...
[]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2017-08-29 08:38:58+00:00
bsd-2-clause
32
ASPP__pelita-431
diff --git a/pelita/game_master.py b/pelita/game_master.py index 42490344..e73049f5 100644 --- a/pelita/game_master.py +++ b/pelita/game_master.py @@ -4,6 +4,7 @@ import abc import random import sys import time +from warnings import warn from . import datamodel from .datamodel import Bot, CTFUniverse @@ -19,6 +2...
ASPP/pelita
a412b067ac8ab680a3398f724ea6f97416de0ceb
diff --git a/test/test_game_master.py b/test/test_game_master.py index e943d70b..69277e31 100644 --- a/test/test_game_master.py +++ b/test/test_game_master.py @@ -4,7 +4,7 @@ import unittest import collections from pelita.datamodel import CTFUniverse -from pelita.game_master import GameMaster, ManhattanNoiser, Play...
Give a warning, when a layout without food is defined?
0.0
a412b067ac8ab680a3398f724ea6f97416de0ceb
[ "test/test_game_master.py::TestGame::test_lose_on_eating_all", "test/test_game_master.py::TestGame::test_lose_5_timeouts", "test/test_game_master.py::TestGame::test_draw_on_timeout", "test/test_game_master.py::TestGame::test_win_on_timeout_team_1", "test/test_game_master.py::TestGame::test_win_on_eating_all...
[]
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2017-10-26 20:25:33+00:00
bsd-2-clause
33
ASPP__pelita-601
diff --git a/pelita/game.py b/pelita/game.py index b42b52ae..1ecf0a00 100644 --- a/pelita/game.py +++ b/pelita/game.py @@ -13,7 +13,7 @@ from warnings import warn from . import layout from .exceptions import FatalException, NonFatalException, NoFoodWarning from .gamestate_filters import noiser -from .layout import i...
ASPP/pelita
a670c668257a371587a2abfe83acf12043d16aa1
diff --git a/test/test_game.py b/test/test_game.py index bc19a73f..1476a615 100644 --- a/test/test_game.py +++ b/test/test_game.py @@ -12,7 +12,7 @@ from textwrap import dedent import numpy as np from pelita import game, layout -from pelita.game import initial_positions, get_legal_moves, apply_move, run_game, setup...
[discussion] Is it possible to have more than one error per (round, turn)? If not, then I would suggest to change the error list to a dict with key (round, turn) as it would make checking for errors in the current round simpler. (And an error in the current round would always give you a random move.) Right now, we have...
0.0
a670c668257a371587a2abfe83acf12043d16aa1
[ "test/test_remote_game.py::test_remote_run_game", "test/test_remote_game.py::test_remote_call_pelita", "test/test_game_master.py::TestGameMaster::test_setup_game_with_wrong_bots_in_layout[\\n", "test/test_game_master.py::TestGameMaster::test_setup_game_with_different_number_of_bots[bots1]", "test/test_game_...
[]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2019-06-18 13:26:16+00:00
bsd-2-clause
34
ASPP__pelita-655
diff --git a/layouts/create_pelita_layouts.py b/layouts/create_pelita_layouts.py deleted file mode 100755 index 1dfb91da..00000000 --- a/layouts/create_pelita_layouts.py +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env python3 -# Use this script to update/regenerate the layouts strings in pelita.layouts.py - -import os -...
ASPP/pelita
1108fc71cdc9a7eeb4563149e9821255d6f56bf3
diff --git a/test/test_layout.py b/test/test_layout.py index 0039b6e2..6b15bf7d 100644 --- a/test/test_layout.py +++ b/test/test_layout.py @@ -402,6 +402,14 @@ def test_enemy_raises(): # # #### """, [None, None]), # this will set both to None + (""" + #### + # E# + ##...
print(bot) should show which enemies are noisy This will hopefully avoid confusion. One remark: since we got rid of set_initial in the new-style API, the teams never see their enemies sitting unnoised on their initial positions, which has been a nice (and easy) starting point for filtering. Question: Do we want to b...
0.0
1108fc71cdc9a7eeb4563149e9821255d6f56bf3
[ "test/test_layout.py::test_enemy_positions[\\n", "test/test_utils.py::test_setup_test_game[True]", "test/test_utils.py::test_setup_test_game[False]" ]
[ "test/test_layout.py::test_get_available_layouts", "test/test_layout.py::test_get_layout_by_name", "test/test_layout.py::test_get_random_layout", "test/test_layout.py::test_get_random_layout_returns_correct_layout", "test/test_layout.py::test_not_enclosed_by_walls", "test/test_layout.py::test_illegal_char...
{ "failed_lite_validators": [ "has_removed_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2019-08-08 14:56:42+00:00
bsd-2-clause
35
ASPP__pelita-696
diff --git a/pelita/layout.py b/pelita/layout.py index e5797adc..66fa2ebd 100644 --- a/pelita/layout.py +++ b/pelita/layout.py @@ -545,9 +545,9 @@ def layout_for_team(layout, is_blue=True, is_noisy=(False, False)): 'is_noisy' : is_noisy, } -def layout_agnostic(layout_for_team, is_blue=True): - """ Co...
ASPP/pelita
557c3a757a24e0f1abe25f7edf5c4ffee83a077e
diff --git a/test/test_layout.py b/test/test_layout.py index ff30905a..4d3d8638 100644 --- a/test/test_layout.py +++ b/test/test_layout.py @@ -454,3 +454,38 @@ def test_layout_for_team(): with pytest.raises(ValueError): layout_for_team(parse_layout(red1)) + +def test_layout_agnostic(): + """ + Tes...
layout_agnostic needs tests and fixes Currently broken. https://github.com/ASPP/pelita/blob/2f17db5355b4dffae8a130ede549ab869b2f1ce2/pelita/layout.py#L548-L566
0.0
557c3a757a24e0f1abe25f7edf5c4ffee83a077e
[ "test/test_layout.py::test_layout_agnostic" ]
[ "test/test_layout.py::test_get_available_layouts", "test/test_layout.py::test_get_layout_by_name", "test/test_layout.py::test_get_random_layout", "test/test_layout.py::test_get_random_layout_returns_correct_layout", "test/test_layout.py::test_not_enclosed_by_walls", "test/test_layout.py::test_illegal_char...
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2019-10-09 20:08:47+00:00
bsd-2-clause
36
Abjad__abjad-ext-nauert-24
diff --git a/abjadext/nauert/gracehandlers.py b/abjadext/nauert/gracehandlers.py index 8813e0f..a2dbdd3 100644 --- a/abjadext/nauert/gracehandlers.py +++ b/abjadext/nauert/gracehandlers.py @@ -199,8 +199,8 @@ class ConcatenatingGraceHandler(GraceHandler): .. container:: example - When ``replace_rest_wi...
Abjad/abjad-ext-nauert
520f389f06e21ee0a094016b4f1e2b0cb58263c1
diff --git a/tests/test_ConcatenatingGraceHandler___call__.py b/tests/test_ConcatenatingGraceHandler___call__.py index 75fa793..11424af 100644 --- a/tests/test_ConcatenatingGraceHandler___call__.py +++ b/tests/test_ConcatenatingGraceHandler___call__.py @@ -58,7 +58,9 @@ def test_ConcatenatingGraceHandler___call___02():...
Check gracehandlers behaviors There seem to be some odd behaviors in handling grace notes. The first odd behavior results in a "grace rest" attaching to a pitched note, as shown below: ``` import abjad from abjadext import nauert quantizer = nauert.Quantizer() durations = [1000, 1, 999] pitches = [0, None, 0...
0.0
520f389f06e21ee0a094016b4f1e2b0cb58263c1
[ "tests/test_ConcatenatingGraceHandler___init__.py::test_ConcatenatingGraceHandler___init___02", "tests/test_ConcatenatingGraceHandler___init__.py::test_ConcatenatingGraceHandler___init___03" ]
[ "tests/test_ConcatenatingGraceHandler___call__.py::test_ConcatenatingGraceHandler___call___01", "tests/test_ConcatenatingGraceHandler___call__.py::test_ConcatenatingGraceHandler___call___02", "tests/test_ConcatenatingGraceHandler___call__.py::test_ConcatenatingGraceHandler___call___03", "tests/test_Concatenat...
{ "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-03-15 03:29:50+00:00
mit
37
Adyen__adyen-python-api-library-102
diff --git a/Adyen/util.py b/Adyen/util.py index 580ff31..6156876 100644 --- a/Adyen/util.py +++ b/Adyen/util.py @@ -44,3 +44,53 @@ def is_valid_hmac(dict_object, hmac_key): merchant_sign = generate_hpp_sig(dict_object, hmac_key) merchant_sign_str = merchant_sign.decode("utf-8") r...
Adyen/adyen-python-api-library
7e539a538255450e1343bdc89ef18c1e354d4022
diff --git a/test/UtilTest.py b/test/UtilTest.py index acaf101..9cd9b33 100644 --- a/test/UtilTest.py +++ b/test/UtilTest.py @@ -1,15 +1,19 @@ import unittest import Adyen -from Adyen import generate_hpp_sig -from Adyen.util import is_valid_hmac +from Adyen.util import ( + generate_hpp_sig, + is_valid_hmac, +...
Util generate_hpp_sig() value and hmac do not correspond **Python version**: 2.7.16 **Library version**: 2.1.0 (and tested too with future 2.2.0) **Description** TEST ENVIRONMENT Implemented webhook for Adyen notifications (https://docs.adyen.com/development-resources/notifications) and using Test Configuration f...
0.0
7e539a538255450e1343bdc89ef18c1e354d4022
[ "test/UtilTest.py::UtilTest::test_hpp_request_item_hmac", "test/UtilTest.py::UtilTest::test_notification_request_item_hmac" ]
[]
{ "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2020-04-01 12:07:36+00:00
mit
38
Adyen__adyen-python-api-library-276
diff --git a/Adyen/__init__.py b/Adyen/__init__.py index 712155e..3e9a8a8 100644 --- a/Adyen/__init__.py +++ b/Adyen/__init__.py @@ -1,5 +1,3 @@ -#!/bin/python - from __future__ import absolute_import, division, unicode_literals from . import util diff --git a/Adyen/client.py b/Adyen/client.py index cd45b98..2e40e9...
Adyen/adyen-python-api-library
72bd79756c6fe5de567e7ca0e61b27d304d7e8c0
diff --git a/test/ConfigurationTest.py b/test/BalancePlatformTest.py similarity index 87% rename from test/ConfigurationTest.py rename to test/BalancePlatformTest.py index 3bbb9f0..fe29b68 100644 --- a/test/ConfigurationTest.py +++ b/test/BalancePlatformTest.py @@ -1,5 +1,6 @@ -import Adyen import unittest + +import A...
`TerminalsTerminalLevelApi.reassign_terminal` throws JSONDecodeError **Describe the bug** All calls to `TerminalsTerminalLevelApi.reassign_terminal` throw a JSONDecodeError **To Reproduce** ```python from Adyen import AdyenClient from Adyen.services.management import TerminalsTerminalLevelApi API_KEY = ...
0.0
72bd79756c6fe5de567e7ca0e61b27d304d7e8c0
[ "test/ManagementTest.py::TestManagement::test_reassign_terminal", "test/BalancePlatformTest.py::TestBalancePlatform::test_update_network_token" ]
[ "test/ManagementTest.py::TestManagement::test_create_a_user", "test/ManagementTest.py::TestManagement::test_update_store", "test/ManagementTest.py::TestManagement::test_no_content", "test/ManagementTest.py::TestManagement::test_get_list_of_android_apps", "test/ManagementTest.py::TestManagement::test_get_com...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2023-11-17 12:47:32+00:00
mit
39
Alexei-Kornienko__schematics_to_swagger-7
diff --git a/schematics_to_swagger/__init__.py b/schematics_to_swagger/__init__.py index d108f3f..d203de0 100644 --- a/schematics_to_swagger/__init__.py +++ b/schematics_to_swagger/__init__.py @@ -54,17 +54,24 @@ def _map_schematics_type(t): def model_to_definition(model): - fields = model.fields.items() + p...
Alexei-Kornienko/schematics_to_swagger
3ddc537a8ed7682e9bb709ebd749b99d7ef09473
diff --git a/tests/models.py b/tests/models.py index 5392711..7cd4582 100644 --- a/tests/models.py +++ b/tests/models.py @@ -16,3 +16,10 @@ class WeatherStats(Model): last_report = types.ModelType(WeatherReport) prev_reports = types.ListType(types.ModelType(WeatherReport)) date_list = types.ListType(type...
Hide private model fields in swagger doc
0.0
3ddc537a8ed7682e9bb709ebd749b99d7ef09473
[ "tests/test_model.py::test_private_fields", "tests/test_model.py::test_read_models_from_module" ]
[ "tests/test_model.py::test_model_to_definition", "tests/test_model.py::test_compound_type" ]
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2019-11-20 22:11:16+00:00
mit
40
AmiiThinks__driving_gridworld-13
diff --git a/driving_gridworld/road.py b/driving_gridworld/road.py index cb519ef..559362f 100644 --- a/driving_gridworld/road.py +++ b/driving_gridworld/road.py @@ -142,13 +142,12 @@ def combinations(iterable, r, collection=tuple): class Road(object): - def __init__(self, num_rows, car, obstacles, speed_limit):...
AmiiThinks/driving_gridworld
fbc47c68cfade4e7d95ba59a3990dfef196389a6
diff --git a/test/road_test.py b/test/road_test.py index ae22a47..d8aeb36 100644 --- a/test/road_test.py +++ b/test/road_test.py @@ -9,9 +9,8 @@ import pytest def test_transition_probs_without_obstacles_are_always_1(): num_rows = 4 obstacles = [] - speed_limit = 1 car_inst = Car(0, 0, 1) - road_te...
Enforce a hard limit on the speed limit in `Road` to the number of rows + 1 If the speed limit is larger than this, then the physical plausibility of the similar breaks, because the number of possible obstacle encounters across a fixed distance can depend on the car's speed and the range of its headlights (the number o...
0.0
fbc47c68cfade4e7d95ba59a3990dfef196389a6
[ "test/road_test.py::test_transition_probs_without_obstacles_are_always_1", "test/road_test.py::test_no_obstacles_revealed_is_the_only_valid_set_of_revealed_obstacles_when_all_obstacles_already_on_road[obst0]", "test/road_test.py::test_no_obstacles_revealed_is_the_only_valid_set_of_revealed_obstacles_when_all_ob...
[]
{ "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2018-06-12 21:08:06+00:00
mit
41
AnalogJ__lexicon-336
diff --git a/lexicon/cli.py b/lexicon/cli.py index dbef1ae2..0b5425ce 100644 --- a/lexicon/cli.py +++ b/lexicon/cli.py @@ -14,12 +14,10 @@ from lexicon.parser import generate_cli_main_parser logger = logging.getLogger(__name__) # pylint: disable=C0103 -def generate_table_result(lexicon_logger, output=None, withou...
AnalogJ/lexicon
27106bded0bfa8d44ffe3f449ca2e4871588be0f
diff --git a/tests/test_output.py b/tests/test_output.py index f95ffbd5..f5673110 100644 --- a/tests/test_output.py +++ b/tests/test_output.py @@ -1,12 +1,9 @@ +""" Ensure that stdout corresponds to the given reference output """ from __future__ import absolute_import -import importlib import json import logging -im...
Memset provider: TypeError: string indices must be integers Hi, When using the Memset provider with the default table formatting I get this error: ```bash $ lexicon memset create example.com TXT --name _acme-challenge.example.com --content BLAH --ttl 300 Traceback (most recent call last): File "/usr/local/bi...
0.0
27106bded0bfa8d44ffe3f449ca2e4871588be0f
[ "tests/test_output.py::test_output_function_outputs_json_as_json_string", "tests/test_output.py::test_output_function_outputs_json_as_table", "tests/test_output.py::test_output_function_outputs_nothing_with_not_a_json_serializable", "tests/test_output.py::test_output_function_outputs_json_as_table_with_no_hea...
[]
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2018-12-27 22:27:28+00:00
mit
42
AngryMaciek__angry-moran-simulator-25
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index db7d90e..b0d5816 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -40,6 +40,7 @@ jobs: black --check moranpycess/MoranProcess.py black --check moranpycess/MoranProcess2D.py black --chec...
AngryMaciek/angry-moran-simulator
3f82c988f0bb53365081ef437914c0286b200b49
diff --git a/tests/unit/MoranProcess.py b/tests/unit/MoranProcess.py index 7c8acd1..a987f5a 100644 --- a/tests/unit/MoranProcess.py +++ b/tests/unit/MoranProcess.py @@ -213,7 +213,7 @@ def test_classMoranProcessWrongInit(self): label_list = ["A", "B", "C"] BirthPayoffMatrix = np.array([[10, 20], [30, ...
Custom exceptions * add exceptions file with custom exceptsions as in the `mlem` project
0.0
3f82c988f0bb53365081ef437914c0286b200b49
[ "tests/unit/MoranProcess.py::TestClass::test_classMoranProcessWrongInit", "tests/unit/MoranProcess2D.py::TestClass::test_classMoranProcess2DWrongInit", "tests/unit/MoranProcess3D.py::TestClass::test_classMoranProcess3DWrongInit" ]
[ "tests/unit/MoranProcess.py::TestClass::test_classMoranProcessInit", "tests/unit/MoranProcess.py::TestClass::test_classMoranProcess_roulette_wheel_selection_Birth", "tests/unit/MoranProcess.py::TestClass::test_classMoranProcess_roulette_wheel_selection_Death", "tests/unit/MoranProcess.py::TestClass::test_clas...
{ "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-04-02 00:11:14+00:00
mit
43
AnthonyBloomer__daftlistings-122
diff --git a/README.md b/README.md index 4fcc162..16ed94f 100644 --- a/README.md +++ b/README.md @@ -179,6 +179,29 @@ dublin_map.add_colorbar() dublin_map.save("ireland_rent.html") print("Done, please checkout the html file") ``` + +Search for apartments for rent in Dublin with an alarm and parking. + +```python +fr...
AnthonyBloomer/daftlistings
bf730db6d229d0e76d9c773cf807022bc6045fa6
diff --git a/tests/test_daft_search.py b/tests/test_daft_search.py index 9942827..f14bbbb 100644 --- a/tests/test_daft_search.py +++ b/tests/test_daft_search.py @@ -10,6 +10,7 @@ from daftlistings import ( Listing, AddedSince, PropertyType, + Facility ) @@ -18,7 +19,8 @@ class DaftTest(unittest.T...
Facility SearchType Combos The facility options available for filtering are heavily dependent on the `SearchType`. In my local version I have facilities filtering added and functioning but without any checking related to this. I was planning to resolve this issue before pushing it. It will probably make sense to solve ...
0.0
bf730db6d229d0e76d9c773cf807022bc6045fa6
[ "tests/test_daft_search.py::DaftTest::test_listing", "tests/test_daft_search.py::DaftTest::test_search" ]
[]
{ "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-04-05 12:36:54+00:00
mit
44
AppImageCrafters__appimage-builder-98
diff --git a/appimagebuilder/builder/runtime/executables_wrapper.py b/appimagebuilder/builder/runtime/executables_wrapper.py index 05033e7..949c8ae 100644 --- a/appimagebuilder/builder/runtime/executables_wrapper.py +++ b/appimagebuilder/builder/runtime/executables_wrapper.py @@ -27,6 +27,8 @@ from appimagebuilder.comm...
AppImageCrafters/appimage-builder
cbc972cf65630312aab2cc814edf5d55acec3ac1
diff --git a/tests/builder/runtime/test_executables_wrapper.py b/tests/builder/runtime/test_executables_wrapper.py index c8a1068..b9edf2e 100644 --- a/tests/builder/runtime/test_executables_wrapper.py +++ b/tests/builder/runtime/test_executables_wrapper.py @@ -89,6 +89,22 @@ class TestExecutablesWrapper(TestCase): ...
Properly handle shebangs set in previous builds WARNING:root:Required interpreter 'appimage-f5d659fa-db6f-4a84-b46b-8893153ca973-env' could not be found in the AppDir while processing /home/msalvatore/appimage/../monkey-appdir/usr/src/monkey_island/cc/ui/node_modules/node-sass/src/libsass/script/ci-install-compiler
0.0
cbc972cf65630312aab2cc814edf5d55acec3ac1
[ "tests/builder/runtime/test_executables_wrapper.py::TestExecutablesWrapper::test_wrap_previously_wrpped_interpreted_executable" ]
[ "tests/builder/runtime/test_executables_wrapper.py::TestExecutablesWrapper::test_generate_executable_env", "tests/builder/runtime/test_executables_wrapper.py::TestExecutablesWrapper::test_wrap_binary_executable", "tests/builder/runtime/test_executables_wrapper.py::TestExecutablesWrapper::test_wrap_interpreted_e...
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2021-02-19 02:39:17+00:00
mit
45
Axelrod-Python__Axelrod-590
diff --git a/CHANGES.txt b/CHANGES.md similarity index 98% rename from CHANGES.txt rename to CHANGES.md index 083c60a5..c4b07ffe 100644 --- a/CHANGES.txt +++ b/CHANGES.md @@ -3,7 +3,7 @@ Internal improvements, progress bar, minor interface change Here are all the commits for this PR: -https://github.com/Axelrod-Pyt...
Axelrod-Python/Axelrod
49f83b97c668fae0f11dd54e5db5b286d830c8f3
diff --git a/axelrod/tests/unit/test_plot.py b/axelrod/tests/unit/test_plot.py index d30026c6..9f936627 100644 --- a/axelrod/tests/unit/test_plot.py +++ b/axelrod/tests/unit/test_plot.py @@ -184,6 +184,8 @@ class TestPlot(unittest.TestCase): self.assertIsInstance( plot.stackplot(eco, title...
Make log scale in eco plot optional Just nice to be able to change it back to a normal scale if we don't want to reproduce for a power of ten turns. (PR incoming, it's a 1 liner.)
0.0
49f83b97c668fae0f11dd54e5db5b286d830c8f3
[ "axelrod/tests/unit/test_plot.py::TestPlot::test_boxplot_dataset", "axelrod/tests/unit/test_plot.py::TestPlot::test_boxplot_xticks_labels", "axelrod/tests/unit/test_plot.py::TestPlot::test_boxplot_xticks_locations", "axelrod/tests/unit/test_plot.py::TestPlot::test_init", "axelrod/tests/unit/test_plot.py::Te...
[]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2016-05-13 16:32:21+00:00
mit
46
Axelrod-Python__Axelrod-638
diff --git a/axelrod/strategies/finite_state_machines.py b/axelrod/strategies/finite_state_machines.py index defc4770..1c231d43 100644 --- a/axelrod/strategies/finite_state_machines.py +++ b/axelrod/strategies/finite_state_machines.py @@ -54,6 +54,7 @@ class FSMPlayer(Player): initial_state = 1 ...
Axelrod-Python/Axelrod
89651f45910f4b41a79c58358d9f5beca4197fc1
diff --git a/axelrod/tests/integration/test_matches.py b/axelrod/tests/integration/test_matches.py new file mode 100644 index 00000000..b6241145 --- /dev/null +++ b/axelrod/tests/integration/test_matches.py @@ -0,0 +1,25 @@ +"""Tests for some expected match behaviours""" +import unittest +import axelrod + +from hypothe...
Finite state machine players don't reset properly ``` >>> import axelrod as axl >>> tft = axl.TitForTat() >>> predator = axl.Predator() >>> predator.fsm.state 1 >>> m = axl.Match((tft, predator), 2) >>> m.play() [('C', 'C'), ('C', 'D')] >>> predator.fsm.state 2 >>> predator.reset() >>> predator.fsm.state ...
0.0
89651f45910f4b41a79c58358d9f5beca4197fc1
[ "axelrod/tests/integration/test_matches.py::TestMatchOutcomes::test_outcome_repeats", "axelrod/tests/unit/test_finite_state_machines.py::TestFSMPlayer::test_reset_initial_state", "axelrod/tests/unit/test_finite_state_machines.py::TestFortress3::test_reset_initial_state", "axelrod/tests/unit/test_finite_state_...
[ "axelrod/tests/unit/test_finite_state_machines.py::TestPlayer::test_clone", "axelrod/tests/unit/test_finite_state_machines.py::TestPlayer::test_initialisation", "axelrod/tests/unit/test_finite_state_machines.py::TestPlayer::test_match_attributes", "axelrod/tests/unit/test_finite_state_machines.py::TestPlayer:...
{ "failed_lite_validators": [ "has_issue_reference" ], "has_test_patch": true, "is_lite": false }
2016-06-19 20:45:17+00:00
mit
47
Axelrod-Python__Axelrod-653
diff --git a/axelrod/__init__.py b/axelrod/__init__.py index 7cb2ebda..482df852 100644 --- a/axelrod/__init__.py +++ b/axelrod/__init__.py @@ -2,7 +2,7 @@ from __future__ import absolute_import # The order of imports matters! from .actions import Actions, flip_action -from .random_ import random_choice +from .rando...
Axelrod-Python/Axelrod
bc333844e10e389f9818e615bcc28c5c69daee94
diff --git a/axelrod/tests/integration/test_matches.py b/axelrod/tests/integration/test_matches.py index b6241145..d0018132 100644 --- a/axelrod/tests/integration/test_matches.py +++ b/axelrod/tests/integration/test_matches.py @@ -11,6 +11,10 @@ C, D = axelrod.Actions.C, axelrod.Actions.D deterministic_strategies = [s...
Add tests for reproducibility of stochastic results I'd like to add a property based test similar to https://github.com/Nikoleta-v3/Axelrod/blob/635/axelrod/tests/integration/test_matches.py but that checks that when setting a seed we get the same results for stochastic strategies (those tests there only check for 'wel...
0.0
bc333844e10e389f9818e615bcc28c5c69daee94
[ "axelrod/tests/integration/test_matches.py::TestMatchOutcomes::test_outcome_repeats", "axelrod/tests/integration/test_matches.py::TestMatchOutcomes::test_outcome_repeats_stochastic", "axelrod/tests/integration/test_tournament.py::TestTournament::test_full_tournament", "axelrod/tests/integration/test_tournamen...
[]
{ "failed_lite_validators": [ "has_hyperlinks", "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2016-07-08 16:35:13+00:00
mit
48
AzureAD__azure-activedirectory-library-for-python-120
diff --git a/adal/wstrust_response.py b/adal/wstrust_response.py index ecdc398..5b2f5ee 100644 --- a/adal/wstrust_response.py +++ b/adal/wstrust_response.py @@ -55,6 +55,35 @@ def scrub_rstr_log_message(response_str): return 'RSTR Response: ' + scrubbed_rstr +def findall_content(xml_string, tag): + """ ...
AzureAD/azure-activedirectory-library-for-python
f8fd8ef1f45a4502209e5777f4cdea8397038a1e
diff --git a/tests/test_wstrust_response.py b/tests/test_wstrust_response.py index e0b1288..913ed87 100644 --- a/tests/test_wstrust_response.py +++ b/tests/test_wstrust_response.py @@ -36,6 +36,7 @@ except ImportError: from adal.constants import XmlNamespaces, Errors, WSTrustVersion from adal.wstrust_response impor...
Issue with authenticating to Dynamics 365 CRM I am having issues authenticating to the Dynamics 365 CRM Web API via the Python ADAL library. Particularly, the acquire_token_with_username_password function. I can't seem to acquire an access token. Full error message below. The only "wrinkle" in my configuration is th...
0.0
f8fd8ef1f45a4502209e5777f4cdea8397038a1e
[ "tests/test_wstrust_response.py::Test_wstrustresponse::test_findall_content_for_real", "tests/test_wstrust_response.py::Test_wstrustresponse::test_findall_content_with_comparison", "tests/test_wstrust_response.py::Test_wstrustresponse::test_parse_error_happy_path", "tests/test_wstrust_response.py::Test_wstrus...
[]
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2018-02-21 01:10:22+00:00
mit
49
AzureAD__azure-activedirectory-library-for-python-57
diff --git a/adal/authentication_context.py b/adal/authentication_context.py index 9e8ac06..6557bf3 100644 --- a/adal/authentication_context.py +++ b/adal/authentication_context.py @@ -26,6 +26,7 @@ #------------------------------------------------------------------------------ import os import threading +import ...
AzureAD/azure-activedirectory-library-for-python
b9affeb5035e41a80e56053c054ce22ea3039b37
diff --git a/tests/test_api_version.py b/tests/test_api_version.py new file mode 100644 index 0000000..2a94873 --- /dev/null +++ b/tests/test_api_version.py @@ -0,0 +1,79 @@ +#------------------------------------------------------------------------------ +# +# Copyright (c) Microsoft Corporation. +# All rights reserve...
retrieved token does not grant access to related resource (401 Error) Hi, we stumbled over what we think can be categorized as a bug in the library. We are able to successfully obtain a token for a given resource and client id. However, the token does not grant us access to the resource. Whenever we call the resource...
0.0
b9affeb5035e41a80e56053c054ce22ea3039b37
[ "tests/test_api_version.py::TestAuthenticationContextApiVersionBehavior::test_api_version_default_value", "tests/test_api_version.py::TestAuthenticationContextApiVersionBehavior::test_explicitly_turn_off_api_version", "tests/test_api_version.py::TestOAuth2ClientApiVersionBehavior::test_api_version_is_not_set" ]
[ "tests/test_api_version.py::TestOAuth2ClientApiVersionBehavior::test_api_version_is_set" ]
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2016-11-17 18:24:15+00:00
mit
50
AzureAD__azure-activedirectory-library-for-python-87
diff --git a/adal/cache_driver.py b/adal/cache_driver.py index fba053b..9683dca 100644 --- a/adal/cache_driver.py +++ b/adal/cache_driver.py @@ -164,11 +164,19 @@ class CacheDriver(object): now_plus_buffer = now + timedelta(minutes=Misc.CLOCK_BUFFER) if is_resource_specific and now_plus_buffer > exp...
AzureAD/azure-activedirectory-library-for-python
006b8b7749ede41c2f28530134b151a957ab5689
diff --git a/tests/test_cache_driver.py b/tests/test_cache_driver.py new file mode 100644 index 0000000..b3c4e07 --- /dev/null +++ b/tests/test_cache_driver.py @@ -0,0 +1,58 @@ +#------------------------------------------------------------------------------ +# +# Copyright (c) Microsoft Corporation. +# All rights reser...
Issue while trying to obtain a token using client credentials once the token has expired I am able to obtain a valid access token by issuing the following command ``` >>> token = context.acquire_token_with_client_credentials(RESOURCE, client_id, client_secret) ``` However, when I issue the same command after the ...
0.0
006b8b7749ede41c2f28530134b151a957ab5689
[ "tests/test_cache_driver.py::TestCacheDriver::test_rt_less_item_wont_cause_exception" ]
[]
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2017-05-23 18:47:18+00:00
mit
51
AzureAD__microsoft-authentication-library-for-python-236
diff --git a/msal/application.py b/msal/application.py index 0d38a1a..e8bf71b 100644 --- a/msal/application.py +++ b/msal/application.py @@ -554,7 +554,9 @@ class ClientApplication(object): for alias in self._get_authority_aliases(self.authority.instance): if not self.token_cache.find( ...
AzureAD/microsoft-authentication-library-for-python
283bdd8c40037f752a69c9bb93a3067126dd53e9
diff --git a/tests/test_application.py b/tests/test_application.py index 65b36b3..1716470 100644 --- a/tests/test_application.py +++ b/tests/test_application.py @@ -240,21 +240,30 @@ class TestClientApplicationForAuthorityMigration(unittest.TestCase): uid=uid, utid=utid, access_token=s...
MSAL python 1.4.2 is no longer able to read from other MSAL caches **Describe the bug** MSAL.NET maintains cache consistency tests between libraries. It looks like MSAL.py 1.4.2 update brakes the tests which ensure MSAL .py is able to read the token cache produced by .NET and Java. After downgrading to MSAL py 1.4...
0.0
283bdd8c40037f752a69c9bb93a3067126dd53e9
[ "tests/test_application.py::TestClientApplicationForAuthorityMigration::test_acquire_token_silent_should_find_rt_under_different_alias" ]
[ "tests/test_application.py::TokenCacheTestCase::testAddByAad", "tests/test_application.py::TokenCacheTestCase::testAddByAdfs", "tests/test_application.py::TokenCacheTestCase::test_key_id_is_also_recorded", "tests/test_application.py::TestHelperExtractCerts::test_extract_a_tag_enclosed_cert", "tests/test_app...
{ "failed_lite_validators": [ "has_hyperlinks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2020-07-25 00:11:01+00:00
mit
52
AzureAD__microsoft-authentication-library-for-python-312
diff --git a/msal/application.py b/msal/application.py index a1f5003..9fcad59 100644 --- a/msal/application.py +++ b/msal/application.py @@ -822,6 +822,7 @@ class ClientApplication(object): force_refresh=False, # type: Optional[boolean] claims_challenge=None, **kwargs): + ...
AzureAD/microsoft-authentication-library-for-python
34e0b820c2e7324fbdf2c5d6042beb5817a03075
diff --git a/tests/test_application.py b/tests/test_application.py index 8d48a0a..3c3b464 100644 --- a/tests/test_application.py +++ b/tests/test_application.py @@ -319,3 +319,83 @@ class TestApplicationForClientCapabilities(unittest.TestCase): def test_both_claims_and_capabilities_none(self): self.asse...
[Feature Request] refresh_in Refresh_In (token response) support. This feature allows the service to control when MSAL should attempt to refresh the access token (ahead of its expiration) [API Review](https://identitydivision.visualstudio.com/DevEx/_git/AuthLibrariesApiReview?path=%2FRefreshAtExpirationPercentage...
0.0
34e0b820c2e7324fbdf2c5d6042beb5817a03075
[ "tests/test_application.py::TokenCacheTestCase::test_refresh_in_should_be_recorded_as_refresh_on", "tests/test_application.py::TestApplicationForRefreshInBehaviors::test_aging_token_and_available_aad_should_return_new_token", "tests/test_token_cache.py::TokenCacheTestCase::test_refresh_in_should_be_recorded_as_...
[ "tests/test_application.py::TokenCacheTestCase::testAddByAad", "tests/test_application.py::TokenCacheTestCase::testAddByAdfs", "tests/test_application.py::TokenCacheTestCase::test_key_id_is_also_recorded", "tests/test_application.py::TokenCacheTestCase::test_old_rt_data_with_wrong_key_should_still_be_salvaged...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-02-18 01:44:30+00:00
mit
53
AzureAD__microsoft-authentication-library-for-python-433
diff --git a/msal/application.py b/msal/application.py index 05b77fc..04ad5fd 100644 --- a/msal/application.py +++ b/msal/application.py @@ -231,8 +231,23 @@ class ClientApplication(object): :param str authority: A URL that identifies a token authority. It should be of the format - ht...
AzureAD/microsoft-authentication-library-for-python
23e5341acf2118686fd95c11e81d7ffbbde9f367
diff --git a/tests/http_client.py b/tests/http_client.py index a5587b7..5adbbde 100644 --- a/tests/http_client.py +++ b/tests/http_client.py @@ -20,6 +20,9 @@ class MinimalHttpClient: return MinimalResponse(requests_resp=self.session.get( url, params=params, headers=headers, timeout=self.timeout))...
Add public convenience string constants for endpoints of each cloud (sovereign and public) **Context** Customers have had difficulty finding the right documentation pages: https://docs.microsoft.com/en-us/azure/azure-government/documentation-government-developer-guide#endpoint-mapping https://docs.microsoft.com/en-u...
0.0
23e5341acf2118686fd95c11e81d7ffbbde9f367
[ "tests/test_authority.py::TestAuthority::test_wellknown_host_and_tenant_using_new_authority_builder" ]
[ "tests/test_authority.py::TestAuthority::test_invalid_host_skipping_validation_can_be_turned_off", "tests/test_authority.py::TestAuthority::test_unknown_host_wont_pass_instance_discovery", "tests/test_authority.py::TestAuthorityInternalHelperCanonicalize::test_canonicalize_rejects_non_https", "tests/test_auth...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-11-02 19:48:19+00:00
mit
54
Azure__WALinuxAgent-1105
diff --git a/azurelinuxagent/pa/provision/cloudinit.py b/azurelinuxagent/pa/provision/cloudinit.py index 60d42fd2..de07ea93 100644 --- a/azurelinuxagent/pa/provision/cloudinit.py +++ b/azurelinuxagent/pa/provision/cloudinit.py @@ -64,7 +64,7 @@ class CloudInitProvisionHandler(ProvisionHandler): logger.info...
Azure/WALinuxAgent
fb7d6c51dac236538a8c9eb8e752159d5e3f54b8
diff --git a/tests/pa/test_provision.py b/tests/pa/test_provision.py index 1004547b..52098f2f 100644 --- a/tests/pa/test_provision.py +++ b/tests/pa/test_provision.py @@ -146,8 +146,12 @@ class TestProvision(AgentTestCase): ph.run() - call1 = call("Provisioning succeeded", duration=ANY, is_success=T...
Track Boot Time in Provision Event To better understand and break down the provision process please include the boot time in the provision event, or emit a boot event with an appropriate duration.
0.0
fb7d6c51dac236538a8c9eb8e752159d5e3f54b8
[ "tests/pa/test_provision.py::TestProvision::test_provision_telemetry_success" ]
[ "tests/pa/test_provision.py::TestProvision::test_customdata", "tests/pa/test_provision.py::TestProvision::test_is_provisioned_is_provisioned", "tests/pa/test_provision.py::TestProvision::test_is_provisioned_not_deprovisioned", "tests/pa/test_provision.py::TestProvision::test_is_provisioned_not_provisioned", ...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2018-04-06 15:03:47+00:00
apache-2.0
55
Azure__WALinuxAgent-1317
diff --git a/azurelinuxagent/ga/monitor.py b/azurelinuxagent/ga/monitor.py index c1215806..d6b66921 100644 --- a/azurelinuxagent/ga/monitor.py +++ b/azurelinuxagent/ga/monitor.py @@ -406,7 +406,11 @@ class MonitorHandler(object): CGroupsTelemetry.track_cgroup(CGroups.for_extension("")) CGroups...
Azure/WALinuxAgent
ae2aec6fc31a4742c139d93cfc5e571e7afc741b
diff --git a/tests/pa/test_provision.py b/tests/pa/test_provision.py index 0335bc9c..27f75266 100644 --- a/tests/pa/test_provision.py +++ b/tests/pa/test_provision.py @@ -268,8 +268,8 @@ class TestProvision(AgentTestCase): fileutil.write_file(ovfenv_file, ovfenv_data) ph.run() - ph.report_eve...
CGroups error in Ubuntu 14.04 ``` 2018/07/31 11:41:06.400633 ERROR ExtHandler monitor: Exception tracking wrapper and agent: 'Hierarchy memory is not mounted' [Traceback (most recent call last): File "bin/WALinuxAgent-2.2.30-py2.7.egg/azurelinuxagent/ga/monitor.py", line 397, in init_cgroups CGroupsTelemetry.t...
0.0
ae2aec6fc31a4742c139d93cfc5e571e7afc741b
[ "tests/pa/test_provision.py::TestProvision::test_provision_telemetry_fail" ]
[ "tests/pa/test_provision.py::TestProvision::test_customdata", "tests/pa/test_provision.py::TestProvision::test_handle_provision_guest_agent", "tests/pa/test_provision.py::TestProvision::test_is_provisioned_is_provisioned", "tests/pa/test_provision.py::TestProvision::test_is_provisioned_not_deprovisioned", "...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2018-08-23 18:52:01+00:00
apache-2.0
56
Azure__WALinuxAgent-1318
diff --git a/azurelinuxagent/pa/provision/cloudinit.py b/azurelinuxagent/pa/provision/cloudinit.py index 9609d7da..3f3cdb04 100644 --- a/azurelinuxagent/pa/provision/cloudinit.py +++ b/azurelinuxagent/pa/provision/cloudinit.py @@ -69,9 +69,10 @@ class CloudInitProvisionHandler(ProvisionHandler): durati...
Azure/WALinuxAgent
ae2aec6fc31a4742c139d93cfc5e571e7afc741b
diff --git a/tests/pa/test_provision.py b/tests/pa/test_provision.py index 0335bc9c..27f75266 100644 --- a/tests/pa/test_provision.py +++ b/tests/pa/test_provision.py @@ -268,8 +268,8 @@ class TestProvision(AgentTestCase): fileutil.write_file(ovfenv_file, ovfenv_data) ph.run() - ph.report_eve...
Record OS boot time for Failed Provisions Too The OS boot time is recorded in the Provision event **only** in the case of a successful provision. The OS boot time should be recorded in the case of a failed provision too.
0.0
ae2aec6fc31a4742c139d93cfc5e571e7afc741b
[ "tests/pa/test_provision.py::TestProvision::test_provision_telemetry_fail" ]
[ "tests/pa/test_provision.py::TestProvision::test_customdata", "tests/pa/test_provision.py::TestProvision::test_handle_provision_guest_agent", "tests/pa/test_provision.py::TestProvision::test_is_provisioned_is_provisioned", "tests/pa/test_provision.py::TestProvision::test_is_provisioned_not_deprovisioned", "...
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2018-08-23 19:52:31+00:00
apache-2.0
57
Azure__azure-functions-python-worker-890
diff --git a/CODEOWNERS b/CODEOWNERS index 8d5a9d3..9dd0e16 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -7,6 +7,7 @@ # # AZURE FUNCTIONS TEAM -# For all file changes, github would automatically include the following people in the PRs. +# For all file changes, github would automatically +# include the following peop...
Azure/azure-functions-python-worker
f5a68bd2039b892ce4c899aa181de593eaf273b6
diff --git a/tests/unittests/test_dispatcher.py b/tests/unittests/test_dispatcher.py index cb90ab8..2d5960a 100644 --- a/tests/unittests/test_dispatcher.py +++ b/tests/unittests/test_dispatcher.py @@ -11,8 +11,7 @@ from azure_functions_worker import protos from azure_functions_worker import testutils from azure_funct...
Allow specifying PYTHON_THREADPOOL_THREAD_COUNT larger than 32 Currently, the worker limits the maximum value of `PYTHON_THREADPOOL_THREAD_COUNT` to 32. Any value larger than that is ignored. There is no good reason for this in general case: if someone/something decided a larger number works better for a specific use c...
0.0
f5a68bd2039b892ce4c899aa181de593eaf273b6
[ "tests/unittests/test_dispatcher.py::TestThreadPoolSettingsPython39::test_dispatcher_sync_threadpool_set_worker", "tests/unittests/test_dispatcher.py::TestThreadPoolSettingsPython39::test_dispatcher_sync_threadpool_in_placeholder_below_min", "tests/unittests/test_dispatcher.py::TestThreadPoolSettingsPython39::t...
[]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-09-14 05:57:33+00:00
mit
58
Azure__iotedgedev-173
diff --git a/iotedgedev/azurecli.py b/iotedgedev/azurecli.py index c5bce70..6bce331 100644 --- a/iotedgedev/azurecli.py +++ b/iotedgedev/azurecli.py @@ -226,10 +226,10 @@ class AzureCli: return result - def apply_configuration(self, deviceId, connection_string, config): - self.output.status(f("De...
Azure/iotedgedev
ce59bad1286bf650d442b2b7fbe16a3db676a497
diff --git a/tests/test_connectionstring.py b/tests/test_connectionstring.py new file mode 100644 index 0000000..21d0dc9 --- /dev/null +++ b/tests/test_connectionstring.py @@ -0,0 +1,78 @@ +import os +import pytest +from dotenv import load_dotenv +from iotedgedev.connectionstring import ConnectionString, IoTHubConnecti...
AZ IOT HUB apply-configuration needs hubname. If user has old version of az cli iot extension installed they get this: `az iot hub apply-configuration: error: argument --hub-name/-n is required ` - add the -n parameter to the apply-configuration call. you can get it in IOTHUB_CONNECTION_INFO.HostName apply-...
0.0
ce59bad1286bf650d442b2b7fbe16a3db676a497
[ "tests/test_connectionstring.py::test_valid_connectionstring", "tests/test_connectionstring.py::test_valid_iothub_connectionstring", "tests/test_connectionstring.py::test_valid_devicehub_connectionstring", "tests/test_connectionstring.py::test_invalid_connectionstring", "tests/test_connectionstring.py::test...
[ "tests/test_connectionstring.py::test_empty_connectionstring", "tests/test_connectionstring.py::test_empty_iothub_connectionstring", "tests/test_connectionstring.py::test_empty_device_connectionstring", "tests/test_connectionstring.py::test_invalid_iothub_connectionstring" ]
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2018-05-16 17:52:55+00:00
mit
59
Azure__iotedgedev-267
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..76cd57b --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,16 @@ +--- +name: Bug report +about: Create a issue to help us improve +--- + +<!-- Fill in the information needed --> ...
Azure/iotedgedev
3b26b6495293607b3752f83fe412c84d7da4fc23
diff --git a/tests/test_envvars.py b/tests/test_envvars.py index 038da27..49be0f3 100644 --- a/tests/test_envvars.py +++ b/tests/test_envvars.py @@ -75,49 +75,49 @@ def test_envvar_clean(): def test_in_command_list_true_1(): output = Output() envvars = EnvVars(output) - assert envvars.in_command_list("sol...
Renaming `iotedgedev create` to `iotedgedev new` I am thinking about renaming the command `iotedgedev create` to `iotedgedev new` for the sake of simplicity and aligning with common practices (as how the command to create new projects is called in VS and VS Code). @jongio, do you think this is a good idea?
0.0
3b26b6495293607b3752f83fe412c84d7da4fc23
[ "tests/test_envvars.py::test_is_bypass_command_true" ]
[ "tests/test_envvars.py::test_valid_get_envvar", "tests/test_envvars.py::test_invalid_get_envvar", "tests/test_envvars.py::test_valid_load", "tests/test_envvars.py::test_valid_verify_envvar_has_val", "tests/test_envvars.py::test_valid_get_envvar_key_if_val", "tests/test_envvars.py::test_invalid_get_envvar_...
{ "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2018-08-20 06:58:26+00:00
mit
60
Azure__iotedgehubdev-159
diff --git a/README.md b/README.md index 23ad402..db93bf4 100644 --- a/README.md +++ b/README.md @@ -32,20 +32,42 @@ The following table compares the steps needed to run the solution on the IoT Edg ## Quickstart 1. Setup + + Windows ``` - iotedgehubdev setup -c <edge-device-connection-string> + iotedg...
Azure/iotedgehubdev
a6fb00a5109860f12bec2b386f368abb20f8d979
diff --git a/tests/test_utils.py b/tests/test_utils.py index f063596..69e1880 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -265,9 +265,9 @@ class TestUtilAPIs(unittest.TestCase): assert Utils.get_sha256_hash("foo") == "2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae" de...
Provide more friendly information when starting if the user has not setup From https://github.com/Azure/iotedgedev/pull/233#issuecomment-410917902 > @LazarusX - In start, can you automatically detect if setup hasn't been called and call it for the user? > > In start can you detect that it hasn't been build and let...
0.0
a6fb00a5109860f12bec2b386f368abb20f8d979
[ "tests/test_utils.py::TestUtilAPIs::test_hash_connection_str_hostname" ]
[ "tests/test_utils.py::TestUtilAPIs::test_check_if_dir_exists_returns_false_path_is_none", "tests/test_utils.py::TestUtilAPIs::test_get_hostname_raises_ioerror_when_getfqdn_raises_ioerror", "tests/test_utils.py::TestUtilAPIs::test_get_hostname_valid", "tests/test_utils.py::TestUtilAPIs::test_check_if_dir_exist...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2019-01-18 02:06:37+00:00
mit
61
Azure__msrest-for-python-12
diff --git a/doc/operation_config.rst b/doc/operation_config.rst index 5482a9c..fc0a478 100644 --- a/doc/operation_config.rst +++ b/doc/operation_config.rst @@ -5,17 +5,17 @@ Operation config Methods on operations have extra parameters which can be provided in the kwargs. This is called `operation_config`. -The li...
Azure/msrest-for-python
cef4818746df436465cfc810723f79aa3a72da89
diff --git a/test/unittest_serialization.py b/test/unittest_serialization.py index 166a375..6a93723 100644 --- a/test/unittest_serialization.py +++ b/test/unittest_serialization.py @@ -158,6 +158,11 @@ class TestRuntimeSerialized(unittest.TestCase): self.s = Serializer() return super(TestRuntimeSerial...
Support building instance from dict with polymorphic object Currently the SDKs can accept a dict instead of a model and transform it to the right model automatically. This is not available if there is at any level a polymorphic object. This should be possible looking at `_subtype_map` to identify the right instance ...
0.0
cef4818746df436465cfc810723f79aa3a72da89
[ "test/unittest_serialization.py::TestRuntimeDeserialized::test_polymorphic_deserialization_with_escape", "test/unittest_serialization.py::TestRuntimeDeserialized::test_polymorphic_deserialization", "test/unittest_serialization.py::TestRuntimeSerialized::test_polymorphic_serialization" ]
[ "test/unittest_serialization.py::TestModelDeserialization::test_response", "test/unittest_serialization.py::TestRuntimeDeserialized::test_deserialize_object", "test/unittest_serialization.py::TestRuntimeDeserialized::test_obj_with_malformed_map", "test/unittest_serialization.py::TestRuntimeDeserialized::test_...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2017-01-31 01:03:14+00:00
mit
62
Azure__msrest-for-python-167
diff --git a/msrest/pipeline/universal.py b/msrest/pipeline/universal.py index f124ea7..b8dc40c 100644 --- a/msrest/pipeline/universal.py +++ b/msrest/pipeline/universal.py @@ -32,6 +32,7 @@ import os import xml.etree.ElementTree as ET import platform import codecs +import re from typing import Mapping, Any, Opti...
Azure/msrest-for-python
c4086bfac4e45b11b6bd4267cff62aa302a51877
diff --git a/tests/test_universal_pipeline.py b/tests/test_universal_pipeline.py index 2568e34..cd92ca7 100644 --- a/tests/test_universal_pipeline.py +++ b/tests/test_universal_pipeline.py @@ -151,6 +151,12 @@ def test_raw_deserializer(): result = response.context["deserialized_data"] assert result["success"]...
Response content type json parser Currently the deserializer only supports a list of content type values like "application/json" and "text/json". Based on HTTP spec, "application/<randomtext>+json" is also json. So we should have a type parser to accept this syntax.
0.0
c4086bfac4e45b11b6bd4267cff62aa302a51877
[ "tests/test_universal_pipeline.py::test_raw_deserializer" ]
[ "tests/test_universal_pipeline.py::test_no_log", "tests/test_universal_pipeline.py::test_user_agent" ]
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2019-07-05 19:26:19+00:00
mit
63
Azure__msrest-for-python-188
diff --git a/msrest/exceptions.py b/msrest/exceptions.py index 31bedf0..dcd14d2 100644 --- a/msrest/exceptions.py +++ b/msrest/exceptions.py @@ -107,6 +107,13 @@ class ValidationError(ClientException): "type": "must be of type {!r}" } + @staticmethod + def _format_message(rule, reason, value): + ...
Azure/msrest-for-python
4a0a44ae6d1a0d8a196a7809d54f2a52c2c27479
diff --git a/tests/test_serialization.py b/tests/test_serialization.py index 399d963..00d253c 100644 --- a/tests/test_serialization.py +++ b/tests/test_serialization.py @@ -709,6 +709,10 @@ class TestRuntimeSerialized(unittest.TestCase): with self.assertRaises(SerializationError): self.s._serializ...
Improve msrest exception message msrest.exceptions : Parameter 'tags' must be of type '{str}'
0.0
4a0a44ae6d1a0d8a196a7809d54f2a52c2c27479
[ "tests/test_serialization.py::TestRuntimeSerialized::test_attr_dict_simple" ]
[ "tests/test_serialization.py::TestModelInstanceEquality::test_model_instance_equality", "tests/test_serialization.py::TestRuntimeDeserialized::test_obj_with_no_attr", "tests/test_serialization.py::TestRuntimeDeserialized::test_attr_int", "tests/test_serialization.py::TestRuntimeDeserialized::test_deserialize_...
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2019-12-26 21:51:25+00:00
mit
64
Azure__msrest-for-python-189
diff --git a/msrest/serialization.py b/msrest/serialization.py index 1da64ae..7abaf70 100644 --- a/msrest/serialization.py +++ b/msrest/serialization.py @@ -217,6 +217,9 @@ class Model(object): try: debug_name = "{}.{}".format(self.__class__.__name__, attr_name) + # https:...
Azure/msrest-for-python
c2249d459e8af8912c5da4cd728c8201066b9304
diff --git a/tests/test_serialization.py b/tests/test_serialization.py index 00d253c..46df7f9 100644 --- a/tests/test_serialization.py +++ b/tests/test_serialization.py @@ -245,6 +245,32 @@ class TestRuntimeSerialized(unittest.TestCase): self.s = Serializer({'TestObj': self.TestObj}) return super(Test...
Validation failed if string is valid integer, but minimum/maximum is used. Example from @derekbekoe ```python >>> ExpressRouteCircuitPeering(peer_asn='10002').validate() [ValidationError("Parameter 'ExpressRouteCircuitPeering.peer_asn' failed to meet validation requirement.",)] ``` I see no reason to refuse tha...
0.0
c2249d459e8af8912c5da4cd728c8201066b9304
[ "tests/test_serialization.py::TestRuntimeSerialized::test_validation_type" ]
[ "tests/test_serialization.py::TestRuntimeDeserialized::test_attr_list_complex", "tests/test_serialization.py::TestRuntimeDeserialized::test_attr_str", "tests/test_serialization.py::TestRuntimeDeserialized::test_additional_properties_flattening", "tests/test_serialization.py::TestRuntimeDeserialized::test_obj_...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2019-12-26 22:49:23+00:00
mit
65
Azure__msrest-for-python-198
diff --git a/msrest/serialization.py b/msrest/serialization.py index 27fb7e9..59187e1 100644 --- a/msrest/serialization.py +++ b/msrest/serialization.py @@ -1108,6 +1108,11 @@ def rest_key_extractor(attr, attr_desc, data): break working_key = _decode_attribute_map_key(dict_keys[0]) workin...
Azure/msrest-for-python
df4cea0e45976951700e21d5c192da372754443c
diff --git a/tests/test_serialization.py b/tests/test_serialization.py index 4b3f537..12a0042 100644 --- a/tests/test_serialization.py +++ b/tests/test_serialization.py @@ -1527,6 +1527,46 @@ class TestRuntimeDeserialized(unittest.TestCase): obj = TestObj.from_dict({'name': 'ab'}) self.assertEqual('ab...
Error when serializing flattened properties with null value as the container object i found the msrest will report error when serializing flattened properties with null value as the container object, could you help to check? I tried to look at the msrest code, and seems the situation when 'data' is null is not handled ...
0.0
df4cea0e45976951700e21d5c192da372754443c
[ "tests/test_serialization.py::TestRuntimeDeserialized::test_deserialize_flattening" ]
[ "tests/test_serialization.py::TestModelDeserialization::test_empty_enum_logs", "tests/test_serialization.py::TestModelDeserialization::test_model_kwargs", "tests/test_serialization.py::TestModelDeserialization::test_model_kwargs_logs", "tests/test_serialization.py::TestModelDeserialization::test_response", ...
{ "failed_lite_validators": [ "has_hyperlinks", "has_media" ], "has_test_patch": true, "is_lite": false }
2020-04-07 17:03:45+00:00
mit
66
Azure__msrest-for-python-201
diff --git a/msrest/serialization.py b/msrest/serialization.py index 59187e1..0e65d8e 100644 --- a/msrest/serialization.py +++ b/msrest/serialization.py @@ -28,6 +28,7 @@ from base64 import b64decode, b64encode import calendar import datetime import decimal +import email from enum import Enum import json import l...
Azure/msrest-for-python
9e2e6529ac3cc91454a859c01775493872b20e92
diff --git a/tests/test_serialization.py b/tests/test_serialization.py index 12a0042..fffd8a9 100644 --- a/tests/test_serialization.py +++ b/tests/test_serialization.py @@ -1974,6 +1974,55 @@ class TestRuntimeDeserialized(unittest.TestCase): self.assertEqual(utc.tm_sec, 52) self.assertEqual(a.microsec...
Parsing RFC date assumes current local is English Example, trying to parse `Fri, 28 Feb 2020 19:04:06 GMT` with a spanish locale will fail, since "Fri" or "Feb" is not spanish. This is because this parser uses `strptime` which is local dependent. Python doesn't support configuration for locale. The only reliable wa...
0.0
9e2e6529ac3cc91454a859c01775493872b20e92
[ "tests/test_serialization.py::TestRuntimeDeserialized::test_deserialize_datetime_rfc" ]
[ "tests/test_serialization.py::TestModelDeserialization::test_model_kwargs_logs", "tests/test_serialization.py::TestModelDeserialization::test_model_kwargs", "tests/test_serialization.py::TestModelDeserialization::test_response", "tests/test_serialization.py::TestModelDeserialization::test_empty_enum_logs", ...
{ "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2020-05-06 23:57:23+00:00
mit
67
Azure__msrest-for-python-208
diff --git a/msrest/serialization.py b/msrest/serialization.py index b3519f1..a8abd9a 100644 --- a/msrest/serialization.py +++ b/msrest/serialization.py @@ -79,26 +79,32 @@ class UTC(datetime.tzinfo): """No daylight saving for UTC.""" return datetime.timedelta(hours=1) -class _FixedOffset(datetime.t...
Azure/msrest-for-python
053469458820db6a33b2cb55b3f9a5e55a2f9716
diff --git a/tests/test_serialization.py b/tests/test_serialization.py index 5991753..cb41372 100644 --- a/tests/test_serialization.py +++ b/tests/test_serialization.py @@ -29,6 +29,7 @@ import sys import json import isodate import logging +import pickle from enum import Enum from datetime import datetime, timedel...
datetime returned by Deserializer.deserialize_rfc() is not picklable ### Repro ```python import pickle from msrest.serialization import Deserializer datetime_rfc = "Mon, 25 May 2020 11:00:00 GMT" datetime1 = Deserializer.deserialize_rfc(datetime_rfc) print("datetime1: %s" % datetime1) pickled = pickle.dumps(...
0.0
053469458820db6a33b2cb55b3f9a5e55a2f9716
[ "tests/test_serialization.py::TestRuntimeDeserialized::test_rfc_pickable" ]
[ "tests/test_serialization.py::TestModelDeserialization::test_empty_enum_logs", "tests/test_serialization.py::TestModelDeserialization::test_model_kwargs", "tests/test_serialization.py::TestModelDeserialization::test_model_kwargs_logs", "tests/test_serialization.py::TestModelDeserialization::test_response", ...
{ "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2020-06-02 20:55:10+00:00
mit
68
Azure__msrest-for-python-222
diff --git a/README.rst b/README.rst index 94950c2..ebce1fb 100644 --- a/README.rst +++ b/README.rst @@ -26,6 +26,7 @@ Release History **Bugfixes** - Fix serialization of random Model object #220 +- Fix serialization of unicode string in Py2 and object mode #221 2020-07-27 Version 0.6.18 diff --git a/msrest/s...
Azure/msrest-for-python
118735008cab12c4cb2e2d24594d3bd0786b546f
diff --git a/tests/test_serialization.py b/tests/test_serialization.py index 99d3980..ab04cfd 100644 --- a/tests/test_serialization.py +++ b/tests/test_serialization.py @@ -1366,6 +1366,8 @@ class TestRuntimeSerialized(unittest.TestCase): except NameError: long_type = int + s = Serializer...
Unable to serialize unicode string as type object on Python 2.7 ``` from msrest.serialization import Serializer s=Serializer() s._serialize(u"\ua015", 'object') ```
0.0
118735008cab12c4cb2e2d24594d3bd0786b546f
[ "tests/test_serialization.py::TestRuntimeSerialized::test_attr_duration" ]
[ "tests/test_serialization.py::TestRuntimeDeserialized::test_additional_properties", "tests/test_serialization.py::TestRuntimeDeserialized::test_attr_list_simple", "tests/test_serialization.py::TestRuntimeDeserialized::test_long_as_type_object", "tests/test_serialization.py::TestRuntimeDeserialized::test_addit...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2020-09-04 22:52:27+00:00
mit
69
Azure__msrest-for-python-224
diff --git a/msrest/serialization.py b/msrest/serialization.py index f9037b9..378de20 100644 --- a/msrest/serialization.py +++ b/msrest/serialization.py @@ -953,6 +953,16 @@ class Serializer(object): return self.serialize_long(attr) if obj_type is unicode_str: return self.serialize_un...
Azure/msrest-for-python
c16e5218fe99742c5bf93d73ce0bb71c9b1c0953
diff --git a/tests/test_serialization.py b/tests/test_serialization.py index ab04cfd..6837bad 100644 --- a/tests/test_serialization.py +++ b/tests/test_serialization.py @@ -25,6 +25,7 @@ # #-------------------------------------------------------------------------- +from decimal import Decimal import sys import js...
Serialization for non-standard types yields incorrect output Hi, I am using the event grid client SDK in python to generate custom events. I have come across an issue I can't seem to solve without going away from the event grid SDK. The problem is that the event grid model serializer does not give me the correct...
0.0
c16e5218fe99742c5bf93d73ce0bb71c9b1c0953
[ "tests/test_serialization.py::TestRuntimeSerialized::test_datetime_types_as_type_object", "tests/test_serialization.py::TestRuntimeSerialized::test_decimal_types_as_type_object" ]
[ "tests/test_serialization.py::TestRuntimeDeserialized::test_rfc_pickable", "tests/test_serialization.py::TestRuntimeDeserialized::test_deserialize_time", "tests/test_serialization.py::TestRuntimeDeserialized::test_additional_properties_declared", "tests/test_serialization.py::TestRuntimeDeserialized::test_cls...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2020-09-21 23:26:48+00:00
mit
70
Azure__msrest-for-python-28
diff --git a/msrest/exceptions.py b/msrest/exceptions.py index 85668a6..6ac7dcc 100644 --- a/msrest/exceptions.py +++ b/msrest/exceptions.py @@ -113,7 +113,7 @@ class AuthenticationError(ClientException): class HttpOperationError(ClientException): - """Client request failed due to server-specificed HTTP operati...
Azure/msrest-for-python
02b1e35c7cfb045bd4752abe800ad6912282eb6e
diff --git a/test/unittest_client.py b/test/unittest_client.py index c22b13e..4a193ee 100644 --- a/test/unittest_client.py +++ b/test/unittest_client.py @@ -201,7 +201,7 @@ class TestServiceClient(unittest.TestCase): mock_client._format_data.return_value = "formatted" request = ClientRequest('GET') ...
Default argument value is mutable Hi, Just want to confirm, I noticed there are some methods in `ServiceClient` contain a mutable default argument, for instance: `def get(self, url=None, params={}): """Create a GET request object. :param str url: The request URL. :param dict params: Re...
0.0
02b1e35c7cfb045bd4752abe800ad6912282eb6e
[ "test/unittest_client.py::TestServiceClient::test_client_formdata_send" ]
[ "test/unittest_client.py::TestServiceClient::test_format_url", "test/unittest_client.py::TestServiceClient::test_client_header", "test/unittest_client.py::TestServiceClient::test_client_send", "test/unittest_client.py::TestServiceClient::test_client_request", "test/unittest_client.py::TestServiceClient::tes...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2017-04-03 22:04:40+00:00
mit
71
Azure__msrest-for-python-43
diff --git a/msrest/serialization.py b/msrest/serialization.py index 6eb8ec9..063f2e6 100644 --- a/msrest/serialization.py +++ b/msrest/serialization.py @@ -918,6 +918,9 @@ class Deserializer(object): '[]': self.deserialize_iter, '{}': self.deserialize_dict } + self.deseria...
Azure/msrest-for-python
11f19f936f2d2d912782c7280f02f01ed89baf47
diff --git a/tests/test_serialization.py b/tests/test_serialization.py index f70dcbd..787a086 100644 --- a/tests/test_serialization.py +++ b/tests/test_serialization.py @@ -138,7 +138,6 @@ class TestRuntimeSerialized(unittest.TestCase): class TestObj(Model): - _validation = {} _attribute_map = ...
Serialization issue if dict syntax and Duration used ```python msrest.exceptions.SerializationError: Unable to build a model: Unable to deserialize response data. Data: 3 years, 6 months, 4 days, 12:30:05, duration, TypeError: Expecting a string isodate.duration.Duration(4, 45005, 0, years=3, months=6), Deserializatio...
0.0
11f19f936f2d2d912782c7280f02f01ed89baf47
[ "tests/test_serialization.py::TestRuntimeSerialized::test_attr_duration" ]
[ "tests/test_serialization.py::TestModelInstanceEquality::test_model_instance_equality", "tests/test_serialization.py::TestRuntimeDeserialized::test_attr_list_complex", "tests/test_serialization.py::TestRuntimeDeserialized::test_attr_list_simple", "tests/test_serialization.py::TestRuntimeDeserialized::test_obj...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2017-08-22 03:53:10+00:00
mit
72
Azure__msrest-for-python-45
diff --git a/msrest/serialization.py b/msrest/serialization.py index 063f2e6..a3d50cd 100644 --- a/msrest/serialization.py +++ b/msrest/serialization.py @@ -1200,6 +1200,12 @@ class Deserializer(object): :param str data: response string to be deserialized. :rtype: str or unicode """ + ...
Azure/msrest-for-python
07cec915d60e29193935dfca17d5e8a7afd0a3d4
diff --git a/tests/test_serialization.py b/tests/test_serialization.py index 787a086..10fb82f 100644 --- a/tests/test_serialization.py +++ b/tests/test_serialization.py @@ -353,10 +353,10 @@ class TestRuntimeSerialized(unittest.TestCase): class TestEnum(Enum): val = "Value" - t = test_obj...
v0.4.12 breaks mixed dict with enum if model-as-string=true This breaks: ``` python async_security_rule = self.network_client.security_rules.create_or_update( self.group_name, security_group_name, new_security_rule_name, { 'access':azure...
0.0
07cec915d60e29193935dfca17d5e8a7afd0a3d4
[ "tests/test_serialization.py::TestRuntimeSerialized::test_attr_enum" ]
[ "tests/test_serialization.py::TestModelInstanceEquality::test_model_instance_equality", "tests/test_serialization.py::TestRuntimeDeserialized::test_attr_list_in_list", "tests/test_serialization.py::TestRuntimeDeserialized::test_attr_int", "tests/test_serialization.py::TestRuntimeDeserialized::test_obj_with_no...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2017-08-23 16:10:17+00:00
mit
73
Azure__msrest-for-python-53
diff --git a/msrest/configuration.py b/msrest/configuration.py index 7b47b39..4b46b56 100644 --- a/msrest/configuration.py +++ b/msrest/configuration.py @@ -44,6 +44,19 @@ from .pipeline import ( from .version import msrest_version +def default_session_configuration_callback(session, global_config, local_config, *...
Azure/msrest-for-python
bad8585bcbe5f92f3b2c892c8b373ee367dff70f
diff --git a/tests/test_client.py b/tests/test_client.py index 8e73444..ee10d48 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -50,6 +50,22 @@ class TestServiceClient(unittest.TestCase): self.creds = mock.create_autospec(OAuthTokenAuthentication) return super(TestServiceClient, self)....
Add support to disable validation on the runtime side Should be a flag in configuration to disable runtime validation. This flag should be default to `client-side-validation` value from Autorest: https://github.com/Azure/autorest/issues/1583#issuecomment-311142690 FYI @matthchr
0.0
bad8585bcbe5f92f3b2c892c8b373ee367dff70f
[ "tests/test_client.py::TestServiceClient::test_session_callback", "tests/test_serialization.py::TestRuntimeSerialized::test_validation_flag" ]
[ "tests/test_client.py::TestServiceClient::test_client_formdata_send", "tests/test_client.py::TestServiceClient::test_client_header", "tests/test_client.py::TestServiceClient::test_format_url", "tests/test_client.py::TestServiceClient::test_client_request", "tests/test_client.py::TestServiceClient::test_clie...
{ "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 }
2017-09-28 17:58:23+00:00
mit
74
Azure__msrest-for-python-54
diff --git a/msrest/serialization.py b/msrest/serialization.py index cc03063..61e811f 100644 --- a/msrest/serialization.py +++ b/msrest/serialization.py @@ -623,6 +623,8 @@ class Serializer(object): in the iterable into a combined string. Default is 'None'. :rtype: list, str """ + if ...
Azure/msrest-for-python
36172c1011c1a6b62eb57f7608ef571b71747a1a
diff --git a/tests/test_serialization.py b/tests/test_serialization.py index 4d6a80a..39f2878 100644 --- a/tests/test_serialization.py +++ b/tests/test_serialization.py @@ -736,6 +736,10 @@ class TestRuntimeSerialized(unittest.TestCase): b = self.s.serialize_iter([], 'int') self.assertEqual(b, []) +...
Should refuse a string as a valid list of string Ends up in the portal as ['a','b','c'] if we use `Model('abc')` instead of `Model(['abc'])`. Should fail, accepting a string for a list of string is likely an error and not a feature. See https://github.com/Azure/azure-sdk-for-python/issues/1376#issuecomment-323409463
0.0
36172c1011c1a6b62eb57f7608ef571b71747a1a
[ "tests/test_serialization.py::TestRuntimeSerialized::test_serialize_str_as_iter" ]
[ "tests/test_serialization.py::TestModelDeserialization::test_response", "tests/test_serialization.py::TestRuntimeSerialized::test_attr_bool", "tests/test_serialization.py::TestRuntimeSerialized::test_attr_dict_simple", "tests/test_serialization.py::TestRuntimeSerialized::test_attr_duration", "tests/test_ser...
{ "failed_lite_validators": [ "has_hyperlinks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2017-09-28 18:30:24+00:00
mit
75
Azure__msrest-for-python-55
diff --git a/msrest/exceptions.py b/msrest/exceptions.py index 6ac7dcc..3b8788e 100644 --- a/msrest/exceptions.py +++ b/msrest/exceptions.py @@ -136,7 +136,13 @@ class HttpOperationError(ClientException): self.error = deserialize(resp_type, response) if self.error is None: ...
Azure/msrest-for-python
bb876c23427448d293c793e16d415971eb1753bc
diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py new file mode 100644 index 0000000..2995593 --- /dev/null +++ b/tests/test_exceptions.py @@ -0,0 +1,92 @@ +#-------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# T...
Improve exception string if custom exception Example, with this: https://github.com/Azure/azure-sdk-for-python/blob/master/azure-mgmt-billing/azure/mgmt/billing/models/error_response.py And this answer: ```python { "error": { "code": "NotOptedIn", "message": "You are not allowed to download invoices. Plea...
0.0
bb876c23427448d293c793e16d415971eb1753bc
[ "tests/test_exceptions.py::TestExceptions::test_custom_exception" ]
[]
{ "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false }
2017-09-28 19:26:51+00:00
mit
76
Azure__msrest-for-python-62
diff --git a/msrest/authentication.py b/msrest/authentication.py index 48c90ae..8d21624 100644 --- a/msrest/authentication.py +++ b/msrest/authentication.py @@ -79,6 +79,14 @@ class BasicTokenAuthentication(Authentication): self.scheme = 'Bearer' self.token = token + def set_token(self): + ...
Azure/msrest-for-python
a34b2d5521e9fa12f3b9d40c42ed783c06afedf1
diff --git a/tests/test_auth.py b/tests/test_auth.py index e573a02..32f67f5 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -39,6 +39,7 @@ except ImportError: from msrest.authentication import ( BasicAuthentication, + BasicTokenAuthentication, OAuthTokenAuthentication) from requests impor...
Make BasicTokenAuthentication the new base class of OAuthTokenAuthentication To enable some KV scenarios releated to MSI
0.0
a34b2d5521e9fa12f3b9d40c42ed783c06afedf1
[ "tests/test_auth.py::TestAuthentication::test_basic_token_auth" ]
[ "tests/test_auth.py::TestAuthentication::test_basic_auth", "tests/test_auth.py::TestAuthentication::test_token_auth" ]
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2017-10-12 21:12:34+00:00
mit
77
Azure__msrest-for-python-67
diff --git a/msrest/service_client.py b/msrest/service_client.py index eed50c5..d86fcbb 100644 --- a/msrest/service_client.py +++ b/msrest/service_client.py @@ -164,10 +164,15 @@ class ServiceClient(object): """ if content is None: content = {} - file_data = {f: self._format_data(d...
Azure/msrest-for-python
24deba7a7a9e335314058ec2d0b39a710f61be60
diff --git a/tests/test_client.py b/tests/test_client.py index ee10d48..650eac5 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -204,6 +204,17 @@ class TestServiceClient(unittest.TestCase): ServiceClient.send_formdata(mock_client, request, {'Content-Type':'1234'}, {'1':'1', '2':'2'}) m...
Optional formData parameters crash msrest If a parameter that is supposed to be formData is optional, we give `None` to requests: ```python files = [('Text', (None, 'cognituve services')), ('Mode', (None, None)), ('PreContextText', (None, None)), ('PostContextText', (None, None))] data = {} @staticmethod ...
0.0
24deba7a7a9e335314058ec2d0b39a710f61be60
[ "tests/test_client.py::TestServiceClient::test_client_formdata_send" ]
[ "tests/test_client.py::TestServiceClient::test_client_header", "tests/test_client.py::TestServiceClient::test_format_url", "tests/test_client.py::TestServiceClient::test_session_callback", "tests/test_client.py::TestServiceClient::test_format_data", "tests/test_client.py::TestServiceClient::test_client_requ...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2017-11-20 21:05:32+00:00
mit
78
Azure__msrestazure-for-python-55
diff --git a/msrestazure/azure_exceptions.py b/msrestazure/azure_exceptions.py index bb85333..5b4792c 100644 --- a/msrestazure/azure_exceptions.py +++ b/msrestazure/azure_exceptions.py @@ -30,6 +30,15 @@ from msrest.exceptions import ClientException from msrest.serialization import Deserializer from msrest.exceptions...
Azure/msrestazure-for-python
005f5a4320385930ba82d4c0e13ce90506884b27
diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py index 2506a9c..45a4770 100644 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -125,20 +125,6 @@ class TestCloudException(unittest.TestCase): response.headers = {"content-type": "application/json; charset=utf8"} response....
CloudError parsing should be resilient if input type is string In so (messy) scenario, we don't receive a dict (from a JSON), but a string. We should be robust to that and print the while string as the error message: ```python msrest.http_logger : b'"{\\"error\\":{\\"code\\":\\"ResourceGroupNotFound\\",\\"message\\":...
0.0
005f5a4320385930ba82d4c0e13ce90506884b27
[ "tests/test_exceptions.py::TestCloudException::test_cloud_error" ]
[ "tests/test_exceptions.py::TestCloudException::test_cloud_exception" ]
{ "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2017-10-30 22:28:54+00:00
mit
79
Azure__pykusto-20
diff --git a/pykusto/client.py b/pykusto/client.py index 1d708c7..2bc47e4 100644 --- a/pykusto/client.py +++ b/pykusto/client.py @@ -1,5 +1,8 @@ from typing import Union, List, Tuple +# noinspection PyProtectedMember +from urllib.parse import urlparse + # noinspection PyProtectedMember from azure.kusto.data._respo...
Azure/pykusto
13fc2f12a84ca19b0cc8c6d61d2c67da858fdae0
diff --git a/test/test_query.py b/test/test_query.py index b4ed016..a228e03 100644 --- a/test/test_query.py +++ b/test/test_query.py @@ -69,7 +69,7 @@ class TestQuery(TestBase): table = PyKustoClient(mock_kusto_client)['test_db']['test_table'] self.assertEqual( - " | where foo > 4 | take ...
Add support for cross-cluster join If the joined table is from a different cluster, render it using the following syntax: cluster("a").database("b").table("c")
0.0
13fc2f12a84ca19b0cc8c6d61d2c67da858fdae0
[ "test/test_query.py::TestQuery::test_join_with_table", "test/test_query.py::TestQuery::test_join_with_table_and_query", "test/test_table.py::TestTable::test_cross_cluster_join", "test/test_table.py::TestTable::test_cross_cluster_join_with_union", "test/test_table.py::TestTable::test_cross_cluster_join_with_...
[ "test/test_query.py::TestQuery::test_add_queries", "test/test_query.py::TestQuery::test_count", "test/test_query.py::TestQuery::test_custom", "test/test_query.py::TestQuery::test_distinct", "test/test_query.py::TestQuery::test_distinct_all", "test/test_query.py::TestQuery::test_extend", "test/test_query...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2019-08-12 08:54:35+00:00
mit
80
Azure__pykusto-22
diff --git a/pykusto/query.py b/pykusto/query.py index 42caba4..272bbaf 100644 --- a/pykusto/query.py +++ b/pykusto/query.py @@ -53,7 +53,12 @@ class Query: self._table = head if isinstance(head, Table) else None def __add__(self, other: 'Query'): - other._head = self + other_base = other ...
Azure/pykusto
aff79137b6d310f33a2085ece2fbe41886c50c11
diff --git a/test/test_query.py b/test/test_query.py index a228e03..034feec 100644 --- a/test/test_query.py +++ b/test/test_query.py @@ -15,9 +15,21 @@ class TestQuery(TestBase): ) def test_add_queries(self): - query = Query().where(col.foo > 4) + Query().take(5) + Query().sort_by(col.bar, Order....
query.__add__ only handles short queries
0.0
aff79137b6d310f33a2085ece2fbe41886c50c11
[ "test/test_query.py::TestQuery::test_add_queries", "test/test_query.py::TestQuery::test_add_queries_with_table" ]
[ "test/test_query.py::TestQuery::test_count", "test/test_query.py::TestQuery::test_custom", "test/test_query.py::TestQuery::test_distinct", "test/test_query.py::TestQuery::test_distinct_all", "test/test_query.py::TestQuery::test_extend", "test/test_query.py::TestQuery::test_extend_assign_to_multiple_column...
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2019-08-12 14:53:39+00:00
mit
81
Azure__pykusto-34
diff --git a/.gitignore b/.gitignore index 456846f..78112ac 100644 --- a/.gitignore +++ b/.gitignore @@ -334,3 +334,4 @@ ASALocalRun/ /.idea/checkstyle-idea.xml *.iml /.idea/misc.xml +/venv diff --git a/pykusto/functions.py b/pykusto/functions.py index 8450ef8..210958f 100644 --- a/pykusto/functions.py +++ b/pykusto...
Azure/pykusto
a6f85c8015b59226608bafa1d2f5d862d1917ef4
diff --git a/test/test_expressions.py b/test/test_expressions.py index 3074ef4..7c42e8a 100644 --- a/test/test_expressions.py +++ b/test/test_expressions.py @@ -55,6 +55,16 @@ class TestExpressions(TestBase): " | extend ['foo.bar'] = (shoo * 2)", Query().extend((col.shoo * 2).assign_to(col.foo...
iff doesn't support sub expressions The following syntax is not working: .extend(timeDelta=iff(col.day-col.day1 == 0, timedelta(DAYS_BACK_DIFF), col.day-col.day1))
0.0
a6f85c8015b59226608bafa1d2f5d862d1917ef4
[ "test/test_expressions.py::TestExpressions::test_extend_const", "test/test_functions.py::TestFunction::test_iff", "test/test_functions.py::TestFunction::test_iif" ]
[ "test/test_expressions.py::TestExpressions::test_array_access", "test/test_expressions.py::TestExpressions::test_array_access_expression_index", "test/test_expressions.py::TestExpressions::test_assign_to", "test/test_expressions.py::TestExpressions::test_between_timespan", "test/test_expressions.py::TestExp...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2019-12-29 10:57:59+00:00
mit
82
Azure__pykusto-53
diff --git a/pykusto/query.py b/pykusto/query.py index f5a89ba..b2f77f3 100644 --- a/pykusto/query.py +++ b/pykusto/query.py @@ -5,6 +5,8 @@ from itertools import chain from types import FunctionType from typing import Tuple, List, Union, Optional +# noinspection PyProtectedMember +from azure.kusto.data._response i...
Azure/pykusto
bd061e1ddeb7631200b9ee8ff042ed3619b97a10
diff --git a/test/test_query.py b/test/test_query.py index ba09eaa..e5911ea 100644 --- a/test/test_query.py +++ b/test/test_query.py @@ -1,10 +1,11 @@ from pykusto import functions as f from pykusto.client import PyKustoClient from pykusto.expressions import column_generator as col -from pykusto.query import Query, ...
Allow using "evaluate" operator for plugins other than python
0.0
bd061e1ddeb7631200b9ee8ff042ed3619b97a10
[ "test/test_query.py::TestQuery::test_add_queries", "test/test_query.py::TestQuery::test_add_queries_with_table", "test/test_query.py::TestQuery::test_bag_unpack", "test/test_query.py::TestQuery::test_bag_unpack_with_prefix", "test/test_query.py::TestQuery::test_count", "test/test_query.py::TestQuery::test...
[]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-02-12 10:37:03+00:00
mit
83
BQSKit__bqskit-215
diff --git a/bqskit/ir/gates/composed/controlled.py b/bqskit/ir/gates/composed/controlled.py index 3ed8a15..0056e18 100644 --- a/bqskit/ir/gates/composed/controlled.py +++ b/bqskit/ir/gates/composed/controlled.py @@ -286,6 +286,33 @@ class ControlledGate(ComposedGate, DifferentiableUnitary): ctrl_U = np.kr...
BQSKit/bqskit
1ee59f11da206c3b18667c7691aded816016c8ed
diff --git a/tests/ir/lang/test_controlled_qasm.py b/tests/ir/lang/test_controlled_qasm.py new file mode 100644 index 0000000..d399494 --- /dev/null +++ b/tests/ir/lang/test_controlled_qasm.py @@ -0,0 +1,102 @@ +from __future__ import annotations + +from bqskit.ir.lang.qasm2 import OPENQASM2Language + + +class TestCont...
Is it possible to get the QASM string representation of a BQSKit circuit? Hi, Is it possible to get the QASM string representation of a BQSKit circuit?
0.0
1ee59f11da206c3b18667c7691aded816016c8ed
[ "tests/ir/lang/test_controlled_qasm.py::TestControlledQASM::test_cu1", "tests/ir/lang/test_controlled_qasm.py::TestControlledQASM::test_cu2", "tests/ir/lang/test_controlled_qasm.py::TestControlledQASM::test_cu3", "tests/ir/lang/test_controlled_qasm.py::TestControlledQASM::test_cswap", "tests/ir/lang/test_co...
[ "tests/ir/lang/test_controlled_qasm.py::TestControlledQASM::test_ch" ]
{ "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false }
2024-01-17 20:21:45+00:00
bsd-3-clause
84
Bachmann1234__diff_cover-210
diff --git a/diff_cover/diff_cover_tool.py b/diff_cover/diff_cover_tool.py index 2894013..e74a453 100644 --- a/diff_cover/diff_cover_tool.py +++ b/diff_cover/diff_cover_tool.py @@ -60,9 +60,7 @@ def parse_coverage_args(argv): parser.add_argument("coverage_xml", type=str, help=COVERAGE_XML_HELP, nargs="+") - ...
Bachmann1234/diff_cover
5f7aeea8b95441f8286a38524ce0234e1716e304
diff --git a/diff_cover/tests/test_diff_cover_tool.py b/diff_cover/tests/test_diff_cover_tool.py index afe8f77..b6f26f7 100644 --- a/diff_cover/tests/test_diff_cover_tool.py +++ b/diff_cover/tests/test_diff_cover_tool.py @@ -7,27 +7,47 @@ from diff_cover.diff_cover_tool import parse_coverage_args def test_parse_with...
why HTML&JSON reports are prohibited and why they cannot be generated at the same time Want to know why HTML&JSON reports are prohibited and why they cannot be generated at the same time `output_format = parser.add_mutually_exclusive_group()`
0.0
5f7aeea8b95441f8286a38524ce0234e1716e304
[ "diff_cover/tests/test_diff_cover_tool.py::test_parse_with_multiple_reports" ]
[ "diff_cover/tests/test_diff_cover_tool.py::test_parse_with_no_report", "diff_cover/tests/test_diff_cover_tool.py::test_parse_with_exclude", "diff_cover/tests/test_diff_cover_tool.py::test_parse_with_html_report", "diff_cover/tests/test_diff_cover_tool.py::test_parse_invalid_arg", "diff_cover/tests/test_diff...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-06-29 18:54:17+00:00
apache-2.0
85
Bachmann1234__diff_cover-235
diff --git a/README.rst b/README.rst index 82cc9b5..1dd50fc 100644 --- a/README.rst +++ b/README.rst @@ -246,6 +246,40 @@ It can be enabled by using the ``-q``/``--quiet`` flag: If enabled, the tool will only print errors and failures but no information or warning messages. +Configuration files +------------------...
Bachmann1234/diff_cover
d409f0ed01b47bd10522d9f55d450b5689945d1a
diff --git a/tests/test_config_parser.py b/tests/test_config_parser.py new file mode 100644 index 0000000..eb0e300 --- /dev/null +++ b/tests/test_config_parser.py @@ -0,0 +1,100 @@ +import pytest + +from diff_cover import config_parser +from diff_cover.config_parser import ParserError, TOMLParser, Tool, get_config + +t...
Support configuration files ### Current state All options are given over the CLI which works fine for the most use cases ### My suggestion In some use cases it's better to use configuration files to define options. In addition, these options can be overwritten with options given to the CLI. ### Implementation ...
0.0
d409f0ed01b47bd10522d9f55d450b5689945d1a
[ "tests/test_config_parser.py::TestTOMLParser::test_parse_no_toml_file[Tool.DIFF_COVER]", "tests/test_config_parser.py::TestTOMLParser::test_parse_no_toml_file[Tool.DIFF_QUALITY]", "tests/test_config_parser.py::TestTOMLParser::test_parse_but_no_tomli_installed[Tool.DIFF_COVER]", "tests/test_config_parser.py::T...
[]
{ "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2021-08-10 12:14:09+00:00
apache-2.0
86
Bachmann1234__diff_cover-277
diff --git a/diff_cover/violationsreporters/violations_reporter.py b/diff_cover/violationsreporters/violations_reporter.py index c61aff6..75ae51f 100644 --- a/diff_cover/violationsreporters/violations_reporter.py +++ b/diff_cover/violationsreporters/violations_reporter.py @@ -402,7 +402,7 @@ class PylintDriver(QualityD...
Bachmann1234/diff_cover
d9efc6c0e5f1c94a25d0772d149d08ecb2542aa1
diff --git a/tests/test_violations_reporter.py b/tests/test_violations_reporter.py index a4d4adc..927acbd 100644 --- a/tests/test_violations_reporter.py +++ b/tests/test_violations_reporter.py @@ -1279,6 +1279,11 @@ class TestPylintQualityReporterTest: import json import logging i...
diff-quality fails with ValueError: invalid literal for int() with base 10: '470]' When running `diff-quality` tool I have the following exception: ``` Traceback (most recent call last): File "/usr/local/bin/diff-quality", line 8, in <module> sys.exit(main()) File "/home/jenkins/.local/lib/python3.8/site...
0.0
d9efc6c0e5f1c94a25d0772d149d08ecb2542aa1
[ "tests/test_violations_reporter.py::TestPylintQualityReporterTest::test_quality" ]
[ "tests/test_violations_reporter.py::TestXmlCoverageReporterTest::test_violations", "tests/test_violations_reporter.py::TestXmlCoverageReporterTest::test_non_python_violations", "tests/test_violations_reporter.py::TestXmlCoverageReporterTest::test_non_python_violations_empty_path", "tests/test_violations_repor...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2022-04-14 15:38:43+00:00
apache-2.0
87
Bachmann1234__diff_cover-300
diff --git a/README.rst b/README.rst index f184bc5..6c8180b 100644 --- a/README.rst +++ b/README.rst @@ -64,7 +64,8 @@ To install the development version: git clone https://github.com/Bachmann1234/diff-cover.git cd diff-cover - python setup.py install + poetry install + poetry shell Getting St...
Bachmann1234/diff_cover
72722598401aa2f4c0996c50841c560ad6492a40
diff --git a/tests/test_report_generator.py b/tests/test_report_generator.py index 49b92ed..97d81b9 100644 --- a/tests/test_report_generator.py +++ b/tests/test_report_generator.py @@ -1,5 +1,6 @@ # pylint: disable=attribute-defined-outside-init,not-callable +import copy import json from io import BytesIO from te...
Add support for report generator plugins that process modified files as a batch, rather than individually SQLFluff implements the `diff-quality` plugin protocol. SQLFluff users have requested that the `diff-quality` integration should take advantage of SQLFluff's multiprocessing capability (processing files in parallel...
0.0
72722598401aa2f4c0996c50841c560ad6492a40
[ "tests/test_report_generator.py::TestSimpleReportGenerator::test_total_num_lines", "tests/test_report_generator.py::TestSimpleReportGenerator::test_total_num_missing", "tests/test_report_generator.py::TestSimpleReportGenerator::test_percent_covered", "tests/test_report_generator.py::TestSimpleReportGenerator:...
[]
{ "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2022-11-26 22:01:06+00:00
apache-2.0
88
Bachmann1234__diff_cover-325
diff --git a/diff_cover/report_generator.py b/diff_cover/report_generator.py index ad2e58a..0262838 100644 --- a/diff_cover/report_generator.py +++ b/diff_cover/report_generator.py @@ -105,6 +105,25 @@ class BaseReportGenerator(ABC): return None + def covered_lines(self, src_path): + """ + ...
Bachmann1234/diff_cover
7d5b22ea8aa5f129e8c3c970d736a4c52cbf8d02
diff --git a/tests/test_report_generator.py b/tests/test_report_generator.py index e7e7180..926d82b 100644 --- a/tests/test_report_generator.py +++ b/tests/test_report_generator.py @@ -280,11 +280,13 @@ class TestJsonReportGenerator(BaseReportGeneratorTest): "diff_name": "main", "src_s...
any ways to get all measured lines' numbers from json report # background I develop a tool to collect diff coverage based on diff_cover json output for further source code rendering in web. In this case, all measured lines(or all lines that should be covered by testing) and violation lines of each source file are i...
0.0
7d5b22ea8aa5f129e8c3c970d736a4c52cbf8d02
[ "tests/test_report_generator.py::TestJsonReportGenerator::test_hundred_percent", "tests/test_report_generator.py::TestJsonReportGenerator::test_generate_report" ]
[ "tests/test_report_generator.py::TestJsonReportGenerator::test_empty_report", "tests/test_report_generator.py::TestMarkdownReportGenerator::test_empty_report", "tests/test_report_generator.py::TestMarkdownReportGenerator::test_generate_report", "tests/test_report_generator.py::TestMarkdownReportGenerator::tes...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2023-02-21 12:34:13+00:00
apache-2.0
89
Backblaze__B2_Command_Line_Tool-173
diff --git a/b2/sync.py b/b2/sync.py index c3c4ad9..cffdc81 100644 --- a/b2/sync.py +++ b/b2/sync.py @@ -67,12 +67,15 @@ class SyncReport(object): self.closed = False self.lock = threading.Lock() self._update_progress() + self.warnings = [] def close(self): with self.lo...
Backblaze/B2_Command_Line_Tool
ab2b5b4e3dc2c8b52b28592c7414ebb4646034e2
diff --git a/test/test_sync.py b/test/test_sync.py index ad2b140..9102b6e 100644 --- a/test/test_sync.py +++ b/test/test_sync.py @@ -37,36 +37,58 @@ def write_file(path, contents): f.write(contents) -def create_files(root_dir, relative_paths): - for relative_path in relative_paths: - full_path = ...
Broken symlink break sync I had this issue where one of my sysmlinks was broken and b2 tool broke, this is the stack trace: ``` Traceback (most recent call last): File "/usr/local/bin/b2", line 9, in <module> load_entry_point('b2==0.5.4', 'console_scripts', 'b...
0.0
ab2b5b4e3dc2c8b52b28592c7414ebb4646034e2
[ "test/test_sync.py::TestLocalFolder::test_broken_symlink", "test/test_sync.py::TestLocalFolder::test_slash_sorting", "test/test_sync.py::TestB2Folder::test_empty", "test/test_sync.py::TestB2Folder::test_multiple_versions", "test/test_sync.py::TestZipFolders::test_empty", "test/test_sync.py::TestZipFolders...
[ "test/test_sync.py::TestParseSyncFolder::test_b2_double_slash", "test/test_sync.py::TestParseSyncFolder::test_b2_no_double_slash", "test/test_sync.py::TestParseSyncFolder::test_b2_no_folder", "test/test_sync.py::TestParseSyncFolder::test_b2_trailing_slash", "test/test_sync.py::TestParseSyncFolder::test_loca...
{ "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2016-06-14 20:22:17+00:00
mit
90
Backblaze__B2_Command_Line_Tool-180
diff --git a/b2/account_info.py b/b2/account_info.py index 9a639c5..5eafba6 100644 --- a/b2/account_info.py +++ b/b2/account_info.py @@ -141,6 +141,42 @@ class AbstractAccountInfo(object): pass +class UploadUrlPool(object): + """ + For each key (either a bucket id or large file id), holds a pool + ...
Backblaze/B2_Command_Line_Tool
01c4e89f63f38b9efa6a6fa63f54cd556a0b5305
diff --git a/test/test_account_info.py b/test/test_account_info.py index 2a52183..68a6f22 100644 --- a/test/test_account_info.py +++ b/test/test_account_info.py @@ -14,7 +14,7 @@ import unittest import six -from b2.account_info import SqliteAccountInfo +from b2.account_info import SqliteAccountInfo, UploadUrlPool ...
Using a lot of threads with sync cause sqlite errors I'm attempting to use the sync command to upload 1 million files using 200 threads. In the log, I'm seeing database errors that prevents an individual file from being uploaded: `b2_upload(/Volumes/Library/Data/1m-files/file100352.txt, file100352.txt, 1463692063000...
0.0
01c4e89f63f38b9efa6a6fa63f54cd556a0b5305
[ "test/test_account_info.py::TestSqliteAccountInfo::test_corrupted", "test/test_account_info.py::TestSqliteAccountInfo::test_clear_large_file_upload_urls", "test/test_account_info.py::TestSqliteAccountInfo::test_convert_from_json", "test/test_account_info.py::TestSqliteAccountInfo::test_refresh_bucket", "tes...
[]
{ "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2016-07-01 16:30:50+00:00
mit
91
Backblaze__B2_Command_Line_Tool-302
diff --git a/b2/console_tool.py b/b2/console_tool.py index 0e7c7c7..bf15d7b 100644 --- a/b2/console_tool.py +++ b/b2/console_tool.py @@ -35,7 +35,7 @@ from .exception import (B2Error, BadFileInfo) from .file_version import (FileVersionInfo) from .parse_args import parse_arg_list from .progress import (make_progress_...
Backblaze/B2_Command_Line_Tool
0fe4f2d0faad6e4e86d668b54958d93bc116b85c
diff --git a/test/test_console_tool.py b/test/test_console_tool.py index 8ac7ee6..66e0d75 100644 --- a/test/test_console_tool.py +++ b/test/test_console_tool.py @@ -210,6 +210,27 @@ class TestConsoleTool(TestBase): expected_stdout, '', 0 ) + # Get file info + mod_ti...
Set `src_last_modified_millis` in `b2 upload_file` When you use `sync` to upload files, it always sets `src_last_modified_millis`. But uploading single files doesn't, which can cause later syncs to get confused. I propose that `src_last_modified_millis` be set for every uploaded file. If the user doesn't specify a...
0.0
0fe4f2d0faad6e4e86d668b54958d93bc116b85c
[ "test/test_console_tool.py::TestConsoleTool::test_files" ]
[ "test/test_console_tool.py::TestConsoleTool::test_authorize_with_bad_key", "test/test_console_tool.py::TestConsoleTool::test_authorize_with_good_key", "test/test_console_tool.py::TestConsoleTool::test_bad_terminal", "test/test_console_tool.py::TestConsoleTool::test_bucket_info_from_json", "test/test_console...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2016-12-16 19:31:54+00:00
mit
92
Backblaze__B2_Command_Line_Tool-304
diff --git a/README.md b/README.md index 2a38ff9..9ffca80 100644 --- a/README.md +++ b/README.md @@ -27,32 +27,32 @@ this: # Usage - b2 authorize_account [<accountId>] [<applicationKey>] - b2 cancel_all_unfinished_large_files <bucketName> - b2 cancel_large_file <fileId> - b2 clear_account - b2 creat...
Backblaze/B2_Command_Line_Tool
967dbda851bab6aa8adf7d61b46a337595d8480a
diff --git a/test/test_console_tool.py b/test/test_console_tool.py index 66e0d75..99adff5 100644 --- a/test/test_console_tool.py +++ b/test/test_console_tool.py @@ -49,7 +49,7 @@ class TestConsoleTool(TestBase): ['authorize_account', 'my-account', 'bad-app-key'], expected_stdout, expected_stderr, 1 ...
Underscore in command should be avoided AFAIK I've never seen underscores in commands `authorize_account`. Please consider moving to dashes. `authorize-account` See https://github.com/pallets/click and http://click.pocoo.org/5/why/
0.0
967dbda851bab6aa8adf7d61b46a337595d8480a
[ "test/test_console_tool.py::TestConsoleTool::test_authorize_with_good_key_using_hyphen", "test/test_console_tool.py::TestConsoleTool::test_authorize_with_good_key_using_underscore", "test/test_console_tool.py::TestConsoleTool::test_clear_account", "test/test_console_tool.py::TestConsoleTool::test_help_with_ba...
[ "test/test_console_tool.py::TestConsoleTool::test_authorize_with_bad_key", "test/test_console_tool.py::TestConsoleTool::test_bad_terminal", "test/test_console_tool.py::TestConsoleTool::test_bucket_info_from_json", "test/test_console_tool.py::TestConsoleTool::test_buckets", "test/test_console_tool.py::TestCo...
{ "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2016-12-16 22:38:57+00:00
mit
93
Backblaze__B2_Command_Line_Tool-307
diff --git a/README.md b/README.md index 9ffca80..0548c49 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,7 @@ this: b2 list-unfinished-large-files <bucketName> b2 ls [--long] [--versions] <bucketName> [<folderName>] b2 make-url <fileId> + b2 show-account-info b2 sync [--delete] [--keepDays N...
Backblaze/B2_Command_Line_Tool
4f2a17eb0342ba6efed8b97442dd20c4e80c1845
diff --git a/test/test_console_tool.py b/test/test_console_tool.py index 99adff5..f046017 100644 --- a/test/test_console_tool.py +++ b/test/test_console_tool.py @@ -452,6 +452,17 @@ class TestConsoleTool(TestBase): ], expected_stdout, '', 0 ) + def test_show_account_info(self): + ...
Limit sync action queue length to avoid memory explosion found in #279
0.0
4f2a17eb0342ba6efed8b97442dd20c4e80c1845
[ "test/test_console_tool.py::TestConsoleTool::test_authorize_with_bad_key", "test/test_console_tool.py::TestConsoleTool::test_authorize_with_good_key_using_hyphen", "test/test_console_tool.py::TestConsoleTool::test_authorize_with_good_key_using_underscore", "test/test_console_tool.py::TestConsoleTool::test_bad...
[]
{ "failed_lite_validators": [ "has_short_problem_statement", "has_issue_reference", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2016-12-20 01:15:09+00:00
mit
94
Backblaze__B2_Command_Line_Tool-332
diff --git a/b2/sync/policy.py b/b2/sync/policy.py index b8e7435..5b74f97 100644 --- a/b2/sync/policy.py +++ b/b2/sync/policy.py @@ -240,7 +240,6 @@ def make_b2_keep_days_actions( only the 25-day old version can be deleted. The 15 day-old version was visible 10 days ago. """ - prev_age_days = None ...
Backblaze/B2_Command_Line_Tool
26ba7c389b732b2202da62a28826a893a8d47749
diff --git a/test/test_policy.py b/test/test_policy.py new file mode 100644 index 0000000..bcc0ec4 --- /dev/null +++ b/test/test_policy.py @@ -0,0 +1,77 @@ +###################################################################### +# +# File: test_policy +# +# Copyright 2017, Backblaze Inc. All Rights Reserved. +# +# Lice...
CLI Sync errors Hi all, after i finished my first sync to Cloud after 3 weeks, i have now errors while syncing new files to the Cloud. The following lines occurs after a few seconds when i start my CLI Command ``` C:\Program Files\Python36\Scripts>b2.exe sync --excludeRegex DfsrPrivate --threads 10 --keepDays 30 ...
0.0
26ba7c389b732b2202da62a28826a893a8d47749
[ "test/test_policy.py::TestMakeB2KeepDaysActions::test_out_of_order_dates" ]
[ "test/test_policy.py::TestMakeB2KeepDaysActions::test_new_version_no_action", "test/test_policy.py::TestMakeB2KeepDaysActions::test_no_source_one_old_version_hides", "test/test_policy.py::TestMakeB2KeepDaysActions::test_no_versions", "test/test_policy.py::TestMakeB2KeepDaysActions::test_old_hide_causes_delete...
{ "failed_lite_validators": [], "has_test_patch": true, "is_lite": true }
2017-03-20 21:04:08+00:00
mit
95
Backblaze__B2_Command_Line_Tool-420
diff --git a/b2/sync/scan_policies.py b/b2/sync/scan_policies.py index 198c079..dfb9413 100644 --- a/b2/sync/scan_policies.py +++ b/b2/sync/scan_policies.py @@ -27,10 +27,45 @@ class RegexSet(object): return any(c.match(s) is not None for c in self._compiled_list) +def convert_dir_regex_to_dir_prefix_regex...
Backblaze/B2_Command_Line_Tool
15a60ad1c71b75366061e4f742ef52eb9dcc23e7
diff --git a/test/test_scan_policies.py b/test/test_scan_policies.py index f3bb797..853730d 100644 --- a/test/test_scan_policies.py +++ b/test/test_scan_policies.py @@ -30,8 +30,20 @@ class TestScanPolicies(TestBase): def test_exclude_dir(self): policy = ScanPoliciesManager( - include_file_re...
--excludeDirRegex does not work when source is B2 The new filtering that lets you exclude an entire directory works in the `LocalFolder` class, but not the `B2Folder` class. I think there are two possible approaches to fixing it: (1) change B2Folder to simulate the existence of directories, and check them for exclus...
0.0
15a60ad1c71b75366061e4f742ef52eb9dcc23e7
[ "test/test_scan_policies.py::TestScanPolicies::test_exclude_dir" ]
[ "test/test_scan_policies.py::TestScanPolicies::test_default", "test/test_scan_policies.py::TestScanPolicies::test_exclude_include" ]
{ "failed_lite_validators": [ "has_issue_reference" ], "has_test_patch": true, "is_lite": false }
2018-03-07 02:01:24+00:00
mit
96
Backblaze__B2_Command_Line_Tool-488
diff --git a/b2/api.py b/b2/api.py index 017f5ba..a1400e1 100644 --- a/b2/api.py +++ b/b2/api.py @@ -205,20 +205,27 @@ class B2Api(object): def get_bucket_by_name(self, bucket_name): """ - Returns the bucket_id for the given bucket_name. + Returns the Bucket for the given bucket_name. - ...
Backblaze/B2_Command_Line_Tool
4154652165dd475d79de606abd70b6debc4596d4
diff --git a/test/test_api.py b/test/test_api.py index adcdb45..f72c336 100644 --- a/test/test_api.py +++ b/test/test_api.py @@ -53,6 +53,16 @@ class TestApi(TestBase): [b.name for b in self.api.list_buckets(bucket_name=bucket1.name)], ) + def test_get_bucket_by_name_with_bucket_restriction(s...
b2.api.B2Api.get_bucket_by_name does not work with bucket-scoped application keys I am using Duplicity 0.7.17 and b2 1.3.2. duplicity is executed using ``` duplicity \ --verbosity debug \ /backup \ "b2://$B2_APP_KEY_ID:$B2_APP_KEY@$B2_BUCKET_NAME" ``` Where `$B2_APP_KEY_ID` and `$B2_APP_KEY` a...
0.0
4154652165dd475d79de606abd70b6debc4596d4
[ "test/test_api.py::TestApi::test_get_bucket_by_name_with_bucket_restriction" ]
[ "test/test_api.py::TestApi::test_list_buckets", "test/test_api.py::TestApi::test_list_buckets_with_name", "test/test_api.py::TestApi::test_list_buckets_with_restriction", "test/test_api.py::TestApi::test_list_buckets_with_restriction_and_no_name", "test/test_api.py::TestApi::test_list_buckets_with_restricti...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false }
2018-08-09 15:22:12+00:00
mit
97
Backblaze__B2_Command_Line_Tool-508
diff --git a/README.md b/README.md index 0391bfd..c07a186 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ this: [--threads N] [--noProgress] [--dryRun ] [--allowEmptySource ] \ [--excludeRegex <regex> [--includeRegex <regex>]] \ [--excludeDirRegex <regex>] \ + [--excludeAllSym...
Backblaze/B2_Command_Line_Tool
fe0638e578aac6164e76a43a19d900cca2278ace
diff --git a/test/test_bucket.py b/test/test_bucket.py index 5d4633f..2601d28 100644 --- a/test/test_bucket.py +++ b/test/test_bucket.py @@ -242,8 +242,8 @@ class TestLs(TestCaseWithBucket): self.bucket.upload_bytes(data, 'ccc') expected = [ ('9998', 'bb/1', 11, 'upload', None), ('9995', ...
Uploading a large file fails with capabilities listBuckets,writeFiles The tool is trying to look for incomplete uploads by listing unfinished large files, but that requires listFiles capability. ``` $ b2 upload-file --noProgress bwb-ca001 250MB.txt large-250.txt ERROR: unauthorized for application key with capabil...
0.0
fe0638e578aac6164e76a43a19d900cca2278ace
[ "test/test_console_tool.py::TestConsoleTool::test_sync_exclude_all_symlinks", "test/test_sync.py::TestExclusions::test_file_exclusions_with_delete", "test/test_sync.py::TestExclusions::test_file_exclusions_inclusions_with_delete" ]
[ "test/test_console_tool.py::TestConsoleTool::test_sync_empty_folder_when_not_enabled", "test/test_console_tool.py::TestConsoleTool::test_get_download_auth_explicit", "test/test_console_tool.py::TestConsoleTool::test_bucket_missing_for_bucket_key", "test/test_console_tool.py::TestConsoleTool::test_authorize_wi...
{ "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false }
2018-09-06 15:13:56+00:00
mit
98
Backblaze__B2_Command_Line_Tool-643
diff --git a/README.md b/README.md index beaabdc..727ae51 100644 --- a/README.md +++ b/README.md @@ -108,6 +108,10 @@ For advanced users, a hidden option `--logConfig <filename.ini>` can be used to # Release History +## Not released yet + +* Add `--environment` internal parameter for `authorize-account` + ## 2.0....
Backblaze/B2_Command_Line_Tool
cd5618431964b317d1bfa03c03f2798afd0c5296
diff --git a/test/test_console_tool.py b/test/test_console_tool.py index 8956eec..4e7f652 100644 --- a/test/test_console_tool.py +++ b/test/test_console_tool.py @@ -110,6 +110,25 @@ class TestConsoleTool(TestBase): # Auth token should be in account info now assert self.account_info.get_account_auth_to...
Please add an option to authorize_account to let me specify a base url. The goal is to let us run the CLI against other B2 instances without having to change the code to add additional arguments like the "--staging" and "--dev" arguments that currently exist. Here's a potential example: b2 authorize-account --...
0.0
cd5618431964b317d1bfa03c03f2798afd0c5296
[ "test/test_console_tool.py::TestConsoleTool::test_authorize_towards_custom_realm" ]
[ "test/test_console_tool.py::TestConsoleTool::test_authorize_key_without_list_buckets", "test/test_console_tool.py::TestConsoleTool::test_authorize_using_env_variables", "test/test_console_tool.py::TestConsoleTool::test_authorize_with_bad_key", "test/test_console_tool.py::TestConsoleTool::test_authorize_with_g...
{ "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false }
2020-07-14 05:17:02+00:00
mit
99