instance_id stringlengths 10 57 | base_commit stringlengths 40 40 | patch stringlengths 261 854k | problem_statement stringlengths 33 51.5k | repo stringlengths 7 52 | test_patch stringlengths 283 997k | FAIL_TO_PASS listlengths 1 2.36k | FAIL_TO_FAIL listlengths 0 589 | PASS_TO_PASS listlengths 0 2.77k | PASS_TO_FAIL listlengths 0 92 | install_config dict |
|---|---|---|---|---|---|---|---|---|---|---|
0b01001001__spectree-64 | a091fab020ac26548250c907bae0855273a98778 | 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.... | [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 '... | 0b01001001/spectree | 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... | [
"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"
] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[flask,falcon,starlette]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": [
"requirements.txt"
],
... |
12rambau__sepal_ui-411 | 179bd8d089275c54e94a7614be7ed03d298ef532 | diff --git a/docs/source/modules/sepal_ui.sepalwidgets.DatePicker.rst b/docs/source/modules/sepal_ui.sepalwidgets.DatePicker.rst
index 1a982afb..867227cb 100644
--- a/docs/source/modules/sepal_ui.sepalwidgets.DatePicker.rst
+++ b/docs/source/modules/sepal_ui.sepalwidgets.DatePicker.rst
@@ -8,6 +8,7 @@ sepal\_ui.sepalwi... | add a disabled trait on the datepicker
I'm currently coding it in a module and the process of disabling a datepicker is uterly boring. I think we could add an extra trait to the layout and pilot the enabling and disabling directly from the built-in widget
```python
self.w_start = sw.DatePicker(label="start", v_mo... | 12rambau/sepal_ui | diff --git a/tests/test_DatePicker.py b/tests/test_DatePicker.py
index f4c6d40e..e5f5d06f 100644
--- a/tests/test_DatePicker.py
+++ b/tests/test_DatePicker.py
@@ -35,6 +35,14 @@ class TestDatePicker:
return
+ def test_disable(self, datepicker):
+
+ for boolean in [True, False]:
+ datep... | [
"tests/test_DatePicker.py::TestDatePicker::test_disable"
] | [] | [
"tests/test_DatePicker.py::TestDatePicker::test_init",
"tests/test_DatePicker.py::TestDatePicker::test_bind"
] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"coverage"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-... |
12rambau__sepal_ui-501 | 7eb3f48735e1cfeac75fecf88dd8194c8daea3d3 | diff --git a/docs/source/modules/sepal_ui.translator.Translator.rst b/docs/source/modules/sepal_ui.translator.Translator.rst
index 642a3ab6..7f11e39f 100644
--- a/docs/source/modules/sepal_ui.translator.Translator.rst
+++ b/docs/source/modules/sepal_ui.translator.Translator.rst
@@ -2,19 +2,6 @@ sepal\_ui.translator.Tra... | use box for the translator ?
I discovered this lib while working on the geemap drop.
I think it could be super handy for the translator keys and maybe faster. https://github.com/cdgriffith/Box
side note: we will need it anyway for the geemap drop | 12rambau/sepal_ui | diff --git a/tests/test_Translator.py b/tests/test_Translator.py
index c6d0e85e..ff6c46f8 100644
--- a/tests/test_Translator.py
+++ b/tests/test_Translator.py
@@ -35,9 +35,10 @@ class TestTranslator:
def test_search_key(self):
- # assert that having a wrong key in the json will raise an error
+ #... | [
"tests/test_Translator.py::TestTranslator::test_search_key"
] | [] | [
"tests/test_Translator.py::TestTranslator::test_init",
"tests/test_Translator.py::TestTranslator::test_sanitize",
"tests/test_Translator.py::TestTranslator::test_delete_empty",
"tests/test_Translator.py::TestTranslator::test_find_target",
"tests/test_Translator.py::TestTranslator::test_available_locales"
] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest",
"coverage"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA... |
12rambau__sepal_ui-516 | 9c319b0c21b8b1ba75173f3f85fd184747c398de | diff --git a/docs/source/modules/sepal_ui.aoi.AoiModel.rst b/docs/source/modules/sepal_ui.aoi.AoiModel.rst
index 0f5b8f1a..ccdcab52 100644
--- a/docs/source/modules/sepal_ui.aoi.AoiModel.rst
+++ b/docs/source/modules/sepal_ui.aoi.AoiModel.rst
@@ -12,7 +12,6 @@ sepal\_ui.aoi.AoiModel
~AoiModel.NAME
~AoiM... | deprecate zip_dir
https://github.com/12rambau/sepal_ui/blob/a9255e7c566aac31ee7f8303e74fb7e8a3d57e5f/sepal_ui/aoi/aoi_model.py#L64
This folder is created on AOI call but is not used anymore as we are using the tmp module to create the tmp directory. | 12rambau/sepal_ui | diff --git a/tests/test_Tile.py b/tests/test_Tile.py
index aa22d301..de0de97e 100644
--- a/tests/test_Tile.py
+++ b/tests/test_Tile.py
@@ -81,7 +81,7 @@ class TestTile:
assert res == tile
assert tile._metadata["mount_id"] == "nested_tile"
- assert tile.elevation is False
+ assert tile.... | [
"tests/test_Tile.py::TestTile::test_nest"
] | [] | [
"tests/test_Tile.py::TestTile::test_init",
"tests/test_Tile.py::TestTile::test_set_content",
"tests/test_Tile.py::TestTile::test_set_title",
"tests/test_Tile.py::TestTile::test_hide",
"tests/test_Tile.py::TestTile::test_show",
"tests/test_Tile.py::TestTile::test_toggle_inputs",
"tests/test_Tile.py::Test... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=line --col... |
12rambau__sepal_ui-518 | 698d446e33062934d49f9edb91cbe303b73e786f | diff --git a/sepal_ui/mapping/aoi_control.py b/sepal_ui/mapping/aoi_control.py
index 01a6aa48..ae143d2c 100644
--- a/sepal_ui/mapping/aoi_control.py
+++ b/sepal_ui/mapping/aoi_control.py
@@ -36,7 +36,7 @@ class AoiControl(WidgetControl):
kwargs["position"] = kwargs.pop("position", "topright")
# crea... | add posibility to add text in the map_btn
The current implementation of the map_btn only authorize to use logos. It would be nice to let the opportunity to use letters as in the SEPAL main framework (3 letters only in capital) | 12rambau/sepal_ui | diff --git a/tests/test_FullScreenControl.py b/tests/test_FullScreenControl.py
index 39141edf..148242b8 100644
--- a/tests/test_FullScreenControl.py
+++ b/tests/test_FullScreenControl.py
@@ -14,7 +14,7 @@ class TestFullScreenControl:
assert isinstance(control, sm.FullScreenControl)
assert control in m... | [
"tests/test_MapBtn.py::TestMapBtn::test_init"
] | [
"tests/test_FullScreenControl.py::TestFullScreenControl::test_init",
"tests/test_FullScreenControl.py::TestFullScreenControl::test_toggle_fullscreen"
] | [] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=line --col... |
12rambau__sepal_ui-574 | 412e02ef08df68c256f384081d2c7eaecc09428e | diff --git a/sepal_ui/translator/translator.py b/sepal_ui/translator/translator.py
index 1ad14c98..ea647223 100644
--- a/sepal_ui/translator/translator.py
+++ b/sepal_ui/translator/translator.py
@@ -65,7 +65,7 @@ class Translator(Box):
# check if forbidden keys are being used
# this will raise an er... | _protected_keys are not raising error when used in translator
`protected_keys` are not raising errors when used in a json translation file. It is also happening with the "`FORBIDDEN_KEYS`" when are used in nested levels.
To reproduce...
```Python
# set up the appropriate keys for each language
keys = {
"en... | 12rambau/sepal_ui | diff --git a/tests/test_Translator.py b/tests/test_Translator.py
index 3c3704af..865bcd84 100644
--- a/tests/test_Translator.py
+++ b/tests/test_Translator.py
@@ -40,17 +40,30 @@ class TestTranslator:
assert translator._target == "fr-FR"
assert translator._match is True
+ # Check that is fail... | [
"tests/test_Translator.py::TestTranslator::test_search_key"
] | [] | [
"tests/test_Translator.py::TestTranslator::test_init",
"tests/test_Translator.py::TestTranslator::test_sanitize",
"tests/test_Translator.py::TestTranslator::test_delete_empty",
"tests/test_Translator.py::TestTranslator::test_find_target",
"tests/test_Translator.py::TestTranslator::test_available_locales",
... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"nbmake"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9"... |
12rambau__sepal_ui-646 | 8a8196e3c7893b7a0aebdb4910e83054f59e0374 | diff --git a/sepal_ui/sepalwidgets/alert.py b/sepal_ui/sepalwidgets/alert.py
index 68e3f115..de6d4abb 100644
--- a/sepal_ui/sepalwidgets/alert.py
+++ b/sepal_ui/sepalwidgets/alert.py
@@ -94,9 +94,10 @@ class Alert(v.Alert, SepalWidget):
self.show()
# cast the progress to float
+ total = tqdm_... | allow other values for progress
Now that we are supporting tqdm it should be possible to support progress values that are not between 0 and 1. https://github.com/12rambau/sepal_ui/blob/c15a83dc6c92d076e6932afab4e4b2987585894b/sepal_ui/sepalwidgets/alert.py#L98 | 12rambau/sepal_ui | diff --git a/tests/test_Alert.py b/tests/test_Alert.py
index af360930..52c6931c 100644
--- a/tests/test_Alert.py
+++ b/tests/test_Alert.py
@@ -153,11 +153,18 @@ class TestAlert:
# test a random update
alert.update_progress(0.5)
- assert alert.progress_bar.n == 50
+ assert alert.progres... | [
"tests/test_Alert.py::TestAlert::test_update_progress"
] | [] | [
"tests/test_Alert.py::TestAlert::test_init",
"tests/test_Alert.py::TestAlert::test_add_msg",
"tests/test_Alert.py::TestAlert::test_add_live_msg",
"tests/test_Alert.py::TestAlert::test_append_msg",
"tests/test_Alert.py::TestAlert::test_reset",
"tests/test_Alert.py::TestAlert::test_rmv_last_msg"
] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest",
"pytest-sugar"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-header... |
12rambau__sepal_ui-747 | a683a7665a9710acd5ca939308e18539e92014b7 | diff --git a/sepal_ui/sepalwidgets/sepalwidget.py b/sepal_ui/sepalwidgets/sepalwidget.py
index 40826809..00cbe015 100644
--- a/sepal_ui/sepalwidgets/sepalwidget.py
+++ b/sepal_ui/sepalwidgets/sepalwidget.py
@@ -177,11 +177,11 @@ class SepalWidget(v.VuetifyWidget):
is_klass = isinstance(w, klass)
... | make get_children recursively again
previous implementation used recursion to find all children within the widget that matches with the query, now it returns only first level of matching children, could we make it reclusively again? | 12rambau/sepal_ui | diff --git a/tests/test_SepalWidget.py b/tests/test_SepalWidget.py
index 3abd719f..22699d69 100644
--- a/tests/test_SepalWidget.py
+++ b/tests/test_SepalWidget.py
@@ -108,24 +108,23 @@ class TestSepalWidget:
assert len(res) == 0
# search for specific attributes in any class
- # one alert that... | [
"tests/test_SepalWidget.py::TestSepalWidget::test_get_children"
] | [] | [
"tests/test_SepalWidget.py::TestSepalWidget::test_init",
"tests/test_SepalWidget.py::TestSepalWidget::test_set_viz",
"tests/test_SepalWidget.py::TestSepalWidget::test_show",
"tests/test_SepalWidget.py::TestSepalWidget::test_hide",
"tests/test_SepalWidget.py::TestSepalWidget::test_toggle_viz",
"tests/test_... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest",
"pytest-sugar",
"pytest-icdiff",
"pytest-cov",
"pytest-deadfixtures",
"Flake8-pyproject",
"nox",... |
12rambau__sepal_ui-774 | 2576446debe3544f3edeb208c76f671ffc0c8650 | diff --git a/sepal_ui/sepalwidgets/inputs.py b/sepal_ui/sepalwidgets/inputs.py
index 04e69553..cd561bb5 100644
--- a/sepal_ui/sepalwidgets/inputs.py
+++ b/sepal_ui/sepalwidgets/inputs.py
@@ -205,6 +205,9 @@ class FileInput(v.Flex, SepalWidget):
clear: Optional[v.Btn] = None
"clear btn to remove everything and... | Restrict maximum parent level from InputFile
I have some apps where I’m interested on only search up to certain level, i.e., module_downloads, and I think that in the most of them, the user doesn’t need to go upper from sepal_user, once they start clicking, they could easily get lost over multiple folders.
what if w... | 12rambau/sepal_ui | diff --git a/tests/conftest.py b/tests/conftest.py
index f8b2c217..bac6feee 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,6 +1,7 @@
import uuid
from itertools import product
from pathlib import Path
+from typing import Optional
import ee
import geopandas as gpd
@@ -20,7 +21,7 @@ except Exception:
... | [
"tests/test_FileInput.py::TestFileInput::test_root"
] | [] | [
"tests/test_FileInput.py::TestFileInput::test_init",
"tests/test_FileInput.py::TestFileInput::test_bind",
"tests/test_FileInput.py::TestFileInput::test_on_file_select",
"tests/test_FileInput.py::TestFileInput::test_on_reload",
"tests/test_FileInput.py::TestFileInput::test_reset",
"tests/test_FileInput.py:... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest pytest-cov pytest-sugar pytest-icdiff pytest-deadfixtures Flake8-pyproject nbmake",
"pytest"
],
"pre_ins... |
12rambau__sepal_ui-814 | 6d825ae167f96ad2e7b76b96ca07de562f74dcf0 | diff --git a/sepal_ui/sepalwidgets/alert.py b/sepal_ui/sepalwidgets/alert.py
index 19718f51..8dafab92 100644
--- a/sepal_ui/sepalwidgets/alert.py
+++ b/sepal_ui/sepalwidgets/alert.py
@@ -108,14 +108,17 @@ class Alert(v.Alert, SepalWidget):
Args:
progress: the progress status in float
... | avoid to force developer to set total each time
I should be able to init the progress of an Alert first and then simply update the progress.
as in:
```python
from sepal_ui import sepalwidgets as sw
alert = sw.Alert()
# init
alert.update_progress(0, "toto", total=10)
# loop
for i in range(10):
... | 12rambau/sepal_ui | diff --git a/tests/test_sepalwidgets/test_Alert.py b/tests/test_sepalwidgets/test_Alert.py
index 3f8de9a4..cac14ebb 100644
--- a/tests/test_sepalwidgets/test_Alert.py
+++ b/tests/test_sepalwidgets/test_Alert.py
@@ -175,7 +175,8 @@ def test_update_progress() -> None:
# check that if total is set value can be more... | [
"tests/test_sepalwidgets/test_Alert.py::test_update_progress"
] | [] | [
"tests/test_sepalwidgets/test_Alert.py::test_init",
"tests/test_sepalwidgets/test_Alert.py::test_add_msg",
"tests/test_sepalwidgets/test_Alert.py::test_add_live_msg",
"tests/test_sepalwidgets/test_Alert.py::test_append_msg",
"tests/test_sepalwidgets/test_Alert.py::test_reset",
"tests/test_sepalwidgets/tes... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_path": null,
... |
15five__scim2-filter-parser-13 | 3ed1858b492542d0bc9b9e9ab9547641595e28c1 | 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... | 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... | 15five/scim2-filter-parser | 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)
+ ... | [
"tests/test_transpiler.py::RFCExamples::test_attr_paths_are_created"
] | [] | [
"tests/test_transpiler.py::RFCExamples::test_emails_type_eq_work_value_contians_or_ims_type_eq_and_value_contians",
"tests/test_transpiler.py::RFCExamples::test_family_name_contains",
"tests/test_transpiler.py::RFCExamples::test_meta_last_modified_ge",
"tests/test_transpiler.py::RFCExamples::test_meta_last_mo... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.7",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=line --color=no... |
15five__scim2-filter-parser-20 | 08de23c5626556a37beced764a22a2fa7021989b | 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
... | 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... | 15five/scim2-filter-parser | 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... | [
"tests/test_parser.py::BuggyQueries::test_g17_1_log_exp_order",
"tests/test_parser.py::BuggyQueries::test_g17_2_log_exp_order"
] | [] | [
"tests/test_parser.py::RegressionTestQueries::test_command_line",
"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::CommandLine::test_command_line"
] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[django-query]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.7",
"reqs_path": [
"docs/requirements.txt"
],
"te... |
20c__ctl-3 | 879af37647e61767a1ede59ffd353e4cfd27cd6f | 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... | 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... | 20c/ctl | 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... | [
"tests/test_plugin_pypi.py::test_set_repository_git_path[standard]",
"tests/test_plugin_pypi.py::test_set_repository_git_plugin[standard]",
"tests/test_plugin_pypi.py::test_set_repository_error[standard]"
] | [
"tests/test_plugin_pypi.py::test_build_dist[standard]",
"tests/test_plugin_pypi.py::test_validate_dist[standard]"
] | [
"tests/test_plugin_pypi.py::test_init"
] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov",
"codecov"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
]... |
3YOURMIND__django-migration-linter-113 | 799957a5564e8ca1ea20d7cf643abbc21db4e40f | diff --git a/django_migration_linter/migration_linter.py b/django_migration_linter/migration_linter.py
index 31f8fea..c5ea333 100644
--- a/django_migration_linter/migration_linter.py
+++ b/django_migration_linter/migration_linter.py
@@ -289,8 +289,13 @@ class MigrationLinter(object):
@classmethod
def read_m... | Bug: --include-migrations-from argument being ignored
In version 2.2.2, using the `--include-migration-from` argument and specifying a migration .py file will not work and `lintmigrations` will run on all migration files.
On [line 299](https://github.com/3YOURMIND/django-migration-linter/blob/799957a5564e8ca1ea20d7c... | 3YOURMIND/django-migration-linter | diff --git a/tests/unit/test_linter.py b/tests/unit/test_linter.py
index 392a43c..d086fbe 100644
--- a/tests/unit/test_linter.py
+++ b/tests/unit/test_linter.py
@@ -88,8 +88,12 @@ class LinterFunctionsTestCase(unittest.TestCase):
def test_read_migrations_unknown_file(self):
file_path = "unknown_file"
- ... | [
"tests/unit/test_linter.py::LinterFunctionsTestCase::test_read_migrations_no_file",
"tests/unit/test_linter.py::LinterFunctionsTestCase::test_read_migrations_unknown_file"
] | [
"tests/unit/test_linter.py::LinterFunctionsTestCase::test_exclude_migration_tests",
"tests/unit/test_linter.py::LinterFunctionsTestCase::test_gather_all_migrations",
"tests/unit/test_linter.py::LinterFunctionsTestCase::test_gather_migrations_with_list",
"tests/unit/test_linter.py::LinterFunctionsTestCase::tes... | [
"tests/unit/test_linter.py::LinterFunctionsTestCase::test_read_migrations_empty_file",
"tests/unit/test_linter.py::LinterFunctionsTestCase::test_read_migrations_from_file"
] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest pytest-cov pytest-xdist pytest-mock pytest-asyncio",
"pytest"
],
"pre_install": null,
"python": "3.6",
"r... |
3YOURMIND__django-migration-linter-258 | 366d16b01a72d0baa54fef55761d846b0f05b8dd | 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... | 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",
... | 3YOURMIND/django-migration-linter | 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 ... | [
"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... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest pytest-cov pytest-xdist pytest-mock pytest-asyncio"
],
"pre_install": [],
"python": "3.9",
"reqs_path": ... |
AI4S2S__lilio-49 | 329a736d26915944744a4235c11497718e0d7832 | diff --git a/lilio/__init__.py b/lilio/__init__.py
index f00a7de..ef989aa 100644
--- a/lilio/__init__.py
+++ b/lilio/__init__.py
@@ -62,8 +62,8 @@ Example:
"""
import logging
-from . import calendar_shifter
-from . import traintest
+from lilio import calendar_shifter
+from lilio import traintest
from .calendar imp... | Add (more) attributes to xarray `resample` output
As xarray uses the structure of netCDF files, there is quite a lot of space to add extra information, in the form of "attributes".
For provenance and traceability, we can make use of this in Lilio. This can consist of, but is not limited to:
- Adding attributes to... | AI4S2S/lilio | diff --git a/tests/test_resample.py b/tests/test_resample.py
index 59fed6b..b50380f 100644
--- a/tests/test_resample.py
+++ b/tests/test_resample.py
@@ -209,6 +209,45 @@ class TestResample:
with pytest.warns(UserWarning):
resample(cal, dataset)
+ def test_dataset_attrs(self, dummy_calendar, d... | [
"tests/test_resample.py::TestResample::test_dataset_attrs[20151020]",
"tests/test_resample.py::TestResample::test_dataset_attrs[20191015]",
"tests/test_resample.py::TestResample::test_dataarray_attrs[20151020]",
"tests/test_resample.py::TestResample::test_dataarray_attrs[20191015]"
] | [
"tests/test_resample.py::TestResampleChecks::test_month_freq_data"
] | [
"tests/test_resample.py::TestResample::test_non_mapped_calendar",
"tests/test_resample.py::TestResample::test_nontime_index[20151020]",
"tests/test_resample.py::TestResample::test_nontime_index[20191015]",
"tests/test_resample.py::TestResample::test_series[20151020]",
"tests/test_resample.py::TestResample::... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=line --col... |
AI4S2S__lilio-58 | 416ea560d41b57502cf204fbf4e65e79c21373bf | diff --git a/lilio/calendar.py b/lilio/calendar.py
index c288ebb..93ee1db 100644
--- a/lilio/calendar.py
+++ b/lilio/calendar.py
@@ -206,10 +206,15 @@ class Calendar:
self._set_mapping(mapping)
@property
- def n_targets(self):
+ def n_targets(self) -> int:
"""Return the number of targets.... | Unclear error message when an empty calendar is passed to `resample` function.
When executing the following code:
```py
import lilio
from lilio import Calendar
import xarray as xr
ds = xr.load_dataset(path_to_data) # just some sample data
cal = Calendar("12-25")
# note that no intervals are added to the calen... | AI4S2S/lilio | diff --git a/tests/test_resample.py b/tests/test_resample.py
index c39bd68..b68441f 100644
--- a/tests/test_resample.py
+++ b/tests/test_resample.py
@@ -326,6 +326,24 @@ class TestResampleChecks:
with pytest.raises(ValueError, match=r".*reserved names..*"):
resample(cal, dummy_dataframe.rename(col... | [
"tests/test_resample.py::TestResampleChecks::test_empty_calendar"
] | [
"tests/test_resample.py::TestResample::test_missing_intervals_dataframe[20151020]",
"tests/test_resample.py::TestResample::test_missing_intervals_dataframe[20191015]",
"tests/test_resample.py::TestResample::test_missing_intervals_dataset[20151020]",
"tests/test_resample.py::TestResample::test_missing_interval... | [
"tests/test_resample.py::TestResample::test_non_mapped_calendar",
"tests/test_resample.py::TestResample::test_nontime_index[20151020]",
"tests/test_resample.py::TestResample::test_nontime_index[20191015]",
"tests/test_resample.py::TestResample::test_series[20151020]",
"tests/test_resample.py::TestResample::... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": null,
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=line --color=n... |
ARMmbed__greentea-263 | 68508c5f4d7cf0635c75399d0ff7cfa896fdf2cc | 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... | 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.... | ARMmbed/greentea | 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/mbed_gt_cli.py::GreenteaCliFunctionality::test_create_filtered_test_list"
] | [] | [
"test/mbed_gt_cli.py::GreenteaCliFunctionality::test_get_greentea_version",
"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_get_local_host_t... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=line --col... |
ARMmbed__mbed-tools-138 | 94a3bd761d6ab3305c81da93517767aafff58d7e | 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... | 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... | ARMmbed/mbed-tools | 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: ... | [
"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"
] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov",
"pytest-mock"
],
"pre_install": null,
"python": "3.8",
"reqs_path": [
"requi... |
ARMmbed__mbed-tools-190 | d4dd48ce58952851f9cb2a9e98b0f788a61a23a3 | 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... | 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 ... | ARMmbed/mbed-tools | 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... | [
"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... | [] | {
"env_vars": null,
"env_yml_path": [],
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov",
"pytest-mock",
"requests-mock",
"factory_boy",
"boto3",
"jinja2",
"PyG... |
ARMmbed__mbed-tools-208 | 584a995d93b9562e9c95385268891dfdae9c55f1 | diff --git a/news/201.bugfix b/news/201.bugfix
new file mode 100644
index 0000000..0ef9e8e
--- /dev/null
+++ b/news/201.bugfix
@@ -0,0 +1,1 @@
+Define a board as unknown if it cannot be identified locally when unable to access the online database.
diff --git a/src/mbed_tools/targets/_internal/board_database.py b/src/mb... | Obtuse error message when board is not found locally or remotely
### Description
When a board is being looked for, and it isn't found in the offline database, and no network connectivity is available (say, perhaps [when a proxy is required to access the net](https://github.com/ARMmbed/mbed-tools/issues/200), the err... | ARMmbed/mbed-tools | diff --git a/tests/targets/test_get_board.py b/tests/targets/test_get_board.py
index d2e5b69..0398f4a 100644
--- a/tests/targets/test_get_board.py
+++ b/tests/targets/test_get_board.py
@@ -5,6 +5,8 @@
"""Tests for `mbed_tools.targets.get_board`."""
from unittest import mock, TestCase
+from mbed_tools.targets._inter... | [
"tests/targets/test_get_board.py::TestGetBoard::test_auto_mode_raises_when_board_not_found_offline_with_no_network"
] | [] | [
"tests/targets/test_get_board.py::TestGetBoard::test_auto_mode_calls_offline_boards_first",
"tests/targets/test_get_board.py::TestGetBoard::test_auto_mode_falls_back_to_online_database_when_board_not_found",
"tests/targets/test_get_board.py::TestGetBoard::test_offline_mode",
"tests/targets/test_get_board.py::... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-asyncio"
],
"pre_install": [
"apt-get update",
"a... |
ARMmbed__mbed-tools-259 | a9b0e1fa3e1d58f80eff5fcc4f82f5952acf8f96 | diff --git a/news/258.bugfix b/news/258.bugfix
new file mode 100644
index 0000000..cd7d099
--- /dev/null
+++ b/news/258.bugfix
@@ -0,0 +1,1 @@
+Make details.txt parsing more lenient to avoid issues with various formats.
diff --git a/src/mbed_tools/devices/_internal/file_parser.py b/src/mbed_tools/devices/_internal/file... | This introduces a big issue:
The PR to list the interface version https://github.com/ARMmbed/mbed-tools/pull/235, shipped with v7.6.0, has a big issue.
````
$ pip list | grep mbed-tools
mbed-tools 7.6.0
$ mbedtools detect
Traceback (most recent call last):
File "xxx\appdata\local\programs\python\p... | ARMmbed/mbed-tools | diff --git a/tests/devices/_internal/test_file_parser.py b/tests/devices/_internal/test_file_parser.py
index 7211c81..4872623 100644
--- a/tests/devices/_internal/test_file_parser.py
+++ b/tests/devices/_internal/test_file_parser.py
@@ -233,8 +233,11 @@ class TestReadDetailsTxt:
build_short_details_txt(ver... | [
"tests/devices/_internal/test_file_parser.py::TestReadDetailsTxt::test_parses_details_txt[newline]",
"tests/devices/_internal/test_file_parser.py::TestReadDetailsTxt::test_parses_details_txt[nosep]",
"tests/devices/_internal/test_file_parser.py::TestReadDetailsTxt::test_parses_details_txt[multiline]"
] | [] | [
"tests/devices/_internal/test_file_parser.py::TestReadDeviceFiles::test_finds_daplink_compatible_device_files",
"tests/devices/_internal/test_file_parser.py::TestReadDeviceFiles::test_finds_jlink_device_files",
"tests/devices/_internal/test_file_parser.py::TestReadDeviceFiles::test_warns_if_no_device_files_foun... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov",
"pytest-mock"
],
"pre_install": [
"apt-get update",
"apt-get install -y cmak... |
ARMmbed__mbed-tools-285 | ff2da40abec773902b6fda86d36de154d83a7d9f | 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... | 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... | ARMmbed/mbed-tools | 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... | [
"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_does_not_search_symlinks_in_proj_dir_twice"
] | [] | [
"tests/build/_internal/config/test_assemble_build_config.py::TestAssembleConfigFromSourcesAndLibFiles::test_assembles_config_using_all_relevant_files",
"tests/build/_internal/config/test_assemble_build_config.py::TestAssembleConfigFromSourcesAndLibFiles::test_updates_target_labels_from_config"
] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-xdist"
],
"pre_install": [],
"python": "3.9",
"reqs_p... |
ARMmbed__mbed-tools-292 | f55d2eb5f6aec73e33a85331c82d0d3d71cc09b4 | 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... | 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 ... | ARMmbed/mbed-tools | 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"... | [
"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... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-asyncio"
],
"pre_install": [
"apt-get update",
"a... |
ARMmbed__mbed-tools-293 | a97be74fef509c90c820c9a96961377e14412c92 | 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..... | `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... | ARMmbed/mbed-tools | 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... | [
"tests/cli/test_configure.py::TestConfigureCommand::test_profile_used_when_passed"
] | [] | [
"tests/cli/test_build.py::TestBuildCommand::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_opti... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov",
"pytest-mock"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"... |
ARMmbed__mbed-tools-91 | a188be5d23cdc1f5c7434b439e9afed50a75e8ad | diff --git a/news/66.bugfix b/news/66.bugfix
new file mode 100644
index 0000000..f920f1e
--- /dev/null
+++ b/news/66.bugfix
@@ -0,0 +1,1 @@
+Fix https to ssh redirection
diff --git a/src/mbed_tools/project/_internal/libraries.py b/src/mbed_tools/project/_internal/libraries.py
index cc417bf..abc4ccb 100644
--- a/src/mbe... | mbedtools clone <example> fails
### 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. macOS 10.15.2, Windo... | ARMmbed/mbed-tools | diff --git a/tests/project/_internal/test_project_data.py b/tests/project/_internal/test_project_data.py
index 51c0fad..6be1510 100644
--- a/tests/project/_internal/test_project_data.py
+++ b/tests/project/_internal/test_project_data.py
@@ -108,13 +108,15 @@ class TestMbedLibReference(TestCase):
root = pathlib... | [
"tests/project/_internal/test_project_data.py::TestMbedLibReference::test_get_git_reference_returns_lib_file_contents"
] | [] | [
"tests/project/_internal/test_project_data.py::TestMbedProgramFiles::test_from_existing_calls_render_cmakelists_template_with_program_name_if_file_nonexistent",
"tests/project/_internal/test_project_data.py::TestMbedProgramFiles::test_from_existing_finds_existing_program_data",
"tests/project/_internal/test_pro... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-asyncio"
],
"pre_install": [
"apt-get update",
"a... |
ARMmbed__yotta-804 | 4094b7a26c66dd64ff724d4f72da282d41ea9fca | diff --git a/yotta/lib/sourceparse.py b/yotta/lib/sourceparse.py
index 0f451ad..eb1f0b4 100644
--- a/yotta/lib/sourceparse.py
+++ b/yotta/lib/sourceparse.py
@@ -57,7 +57,7 @@ def _getNonRegistryRef(source_url):
# something/something#spec = github
# something/something@spec = github
# something/something ... | Semver incompatibility
Hi,
It seems the recent version has broken semantic version for any previous version, which we heavily use in our project, [microbit-dal](https://github.com/lancaster-university/microbit-dal).
We have had two new users on v18 who have reported this breakage: https://github.com/lancaster-uni... | ARMmbed/yotta | diff --git a/yotta/test/test_sourceparse.py b/yotta/test/test_sourceparse.py
index 0b7af6f..2c421ba 100644
--- a/yotta/test/test_sourceparse.py
+++ b/yotta/test/test_sourceparse.py
@@ -47,6 +47,7 @@ Git_Specs = [
'~1.2.3',
'-1.2.3',
'branch-or-tag-name',
+ 'branch+or+tag+name',
'd5f5049',
]
| [
"yotta/test/test_sourceparse.py::TestParseSourceURL::test_shorthandURLs",
"yotta/test/test_sourceparse.py::TestParseModuleNameAndSpec::test_ShorthandRefs"
] | [] | [
"yotta/test/test_sourceparse.py::TestParseSourceURL::test_gitURLs",
"yotta/test/test_sourceparse.py::TestParseSourceURL::test_githubURLs",
"yotta/test/test_sourceparse.py::TestParseSourceURL::test_hgURLs",
"yotta/test/test_sourceparse.py::TestParseSourceURL::test_invalid",
"yotta/test/test_sourceparse.py::T... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[develop]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": [
"requirements/base.txt"
],
"test_cm... |
ASFHyP3__hyp3-sdk-53 | 56cfb700341a0de44ee0f2f3548d5ed6c534d659 | 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... | 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... | ASFHyP3/hyp3-sdk | 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()
+... | [
"tests/test_jobs.py::test_batch_len"
] | [] | [
"tests/test_jobs.py::test_job_dict_transforms",
"tests/test_jobs.py::test_job_complete_succeeded_failed_running",
"tests/test_jobs.py::test_job_expired",
"tests/test_jobs.py::test_job_download_files",
"tests/test_jobs.py::test_batch_add",
"tests/test_jobs.py::test_batch_complete_succeeded",
"tests/test_... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[develop]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov",
"responses"
],
"pre_install": [],
"python": "3.9",
"reqs_path": [
"requi... |
ASFHyP3__hyp3-sdk-71 | b8011c957ce5759bd64007c2116d202fdb5a6dae | 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... | 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... | ASFHyP3/hyp3-sdk | 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
-
-... | [
"tests/test_jobs.py::test_batch_iter"
] | [] | [
"tests/test_jobs.py::test_job_dict_transforms",
"tests/test_jobs.py::test_job_complete_succeeded_failed_running",
"tests/test_jobs.py::test_job_expired",
"tests/test_jobs.py::test_job_download_files",
"tests/test_jobs.py::test_batch_add",
"tests/test_jobs.py::test_batch_len",
"tests/test_jobs.py::test_b... | [] | {
"env_vars": null,
"env_yml_path": [
"conda-env.yml"
],
"install": "pip install -e .[develop]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "environment.yml",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pyte... |
ASPP__pelita-696 | 557c3a757a24e0f1abe25f7edf5c4ffee83a077e | 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... | layout_agnostic needs tests and fixes
Currently broken. https://github.com/ASPP/pelita/blob/2f17db5355b4dffae8a130ede549ab869b2f1ce2/pelita/layout.py#L548-L566
| ASPP/pelita | 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... | [
"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... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "",
"pip_packages": [
"pytest-cov",
"codecov",
"coveralls",
"pytest"
],
"pre_install": [],
"python": "3.7",
"reqs_path": null,
"test_cmd": "p... |
ASPP__pelita-798 | 245a9ca445eccda07998cb58fbee340308d425a7 | diff --git a/pelita/game.py b/pelita/game.py
index 6cbacc56..efc51f3a 100644
--- a/pelita/game.py
+++ b/pelita/game.py
@@ -555,7 +555,8 @@ def prepare_bot_state(game_state, idx=None):
'bot_was_killed': game_state['bot_was_killed'][own_team::2],
'error_count': len(game_state['errors'][own_team]),
... | make the cumulative time counter available to clients
The `Bot` object should have an attribute `time` where the cumulative time for the team shown in the GUI is made available. This is useful for example when benchmarking different strategies. There's no way at the moment to programmatically access that value, as far ... | ASPP/pelita | diff --git a/test/test_network.py b/test/test_network.py
index 701d5307..9fcaca7f 100644
--- a/test/test_network.py
+++ b/test/test_network.py
@@ -88,6 +88,7 @@ def test_simpleclient(zmq_context):
'error_count': 0,
'food': [(1, 1)],
'name': 'dummy',
+ ... | [
"test/test_team.py::test_team_time"
] | [] | [
"test/test_network.py::test_bind_socket_success",
"test/test_network.py::test_bind_socket_fail",
"test/test_network.py::test_simpleclient",
"test/test_team.py::TestStoppingTeam::test_stopping",
"test/test_team.py::test_track_and_kill_count",
"test/test_team.py::test_eaten_flag_kill[0]",
"test/test_team.... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest-cov",
"pytest-timestamper",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
... |
ASPP__pelita-863 | ab9217f298fa4897b06e5e9e9e7fad7e29ba7114 | diff --git a/pelita/team.py b/pelita/team.py
index a3ef1138..aea97327 100644
--- a/pelita/team.py
+++ b/pelita/team.py
@@ -726,6 +726,9 @@ class Bot:
out.write(footer)
return out.getvalue()
+ def __repr__(self):
+ return f'<Bot: {self.char} ({"blue" if self.is_blue else "red"}), {s... | Better Bot repr
For reference, this is the current `repr(bot)`:
<pelita.team.Bot object at 0x102778b90>
This is `str(bot)`:
```
Playing on red side. Current turn: 1. Bot: y. Round: 1, score: 0:0. timeouts: 0:0
################################
#. . #. . . #.y#
# # #### ### . # . .x#
# ... | ASPP/pelita | diff --git a/test/test_team.py b/test/test_team.py
index f6db4eb9..babe7ccc 100644
--- a/test/test_team.py
+++ b/test/test_team.py
@@ -695,3 +695,34 @@ def test_bot_html_repr():
# check that all is good
assert state['fatal_errors'] == [[], []]
+
+def test_bot_repr():
+ test_layout = """
+ ########... | [
"test/test_team.py::test_bot_repr"
] | [] | [
"test/test_team.py::TestStoppingTeam::test_stopping",
"test/test_team.py::test_track_and_kill_count",
"test/test_team.py::test_eaten_flag_kill[0]",
"test/test_team.py::test_eaten_flag_kill[1]",
"test/test_team.py::test_eaten_flag_kill[2]",
"test/test_team.py::test_eaten_flag_kill[3]",
"test/test_team.py... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest pytest-cov pytest-timestamper flit sphinx",
"pytest"
],
"pre_install": [
"python -m pip install --up... |
ASPP__pelita-875 | 68af15d8d4199882d32bb4ede363195e2c5b5a99 | diff --git a/pelita/utils.py b/pelita/utils.py
index c5bdf54c..1f3bec36 100644
--- a/pelita/utils.py
+++ b/pelita/utils.py
@@ -104,7 +104,7 @@ def run_background_game(*, blue_move, red_move, layout=None, max_rounds=300, see
if layout is None:
layout_dict = generate_maze(rng=rng)
else:
- layout... | run_background_game breaks when layout= is passed
```
def test_run_background_game_with_layout():
test_layout = (
""" ##################
#a#. . # . #
#b##### #####x#
# . # . .#y#
################## """)
result = utils.run_background_game(blue_move=stopping_play... | ASPP/pelita | diff --git a/test/test_utils.py b/test/test_utils.py
index 10118cbc..a06bde11 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -112,6 +112,38 @@ def test_run_background_game():
'draw': True
}
+def test_run_background_game_with_layout():
+ test_layout = (
+ """ ##################
+ ... | [
"test/test_utils.py::test_run_background_game_with_layout"
] | [] | [
"test/test_utils.py::test_default_rng",
"test/test_utils.py::test_default_rng_init_self",
"test/test_utils.py::test_default_rng_init_none",
"test/test_utils.py::test_setup_test_game[True]",
"test/test_utils.py::test_setup_test_game[False]",
"test/test_utils.py::test_setup_test_game_incomplete_noisy_dict[T... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest-cov",
"pytest-timestamper",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
... |
Aarhus-Psychiatry-Research__timeseriesflattener-186 | bb6a7fffb2a520272fcb5d7129957ce22484ff77 | diff --git a/.github/workflows/static_type_checks.yml b/.github/workflows/static_type_checks.yml
index abf1bb5..620427d 100644
--- a/.github/workflows/static_type_checks.yml
+++ b/.github/workflows/static_type_checks.yml
@@ -32,7 +32,7 @@ jobs:
uses: actions/setup-python@v4
id: setup_python
w... | fix: change type hints in specs to allow for floats in interval_days
Currenty, float inputs to interval_days args in predictor and outcome specs are coerced into integers. Thus, it is not possible to generate predictors/outcomes with non-integer lookbehind/ahead windows.
- [ ] Add test | Aarhus-Psychiatry-Research/timeseriesflattener | diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml
index 9567555..abe4801 100644
--- a/.github/actions/test/action.yml
+++ b/.github/actions/test/action.yml
@@ -10,32 +10,26 @@ runs:
using: "composite"
steps:
### Setup prerequisites
- - name: Cache venv
+ - name: Cache tox
... | [
"tests/test_timeseriesflattener/test_feature_spec_objects.py::test_lookbehind_days_handles_floats"
] | [] | [
"tests/test_timeseriesflattener/test_feature_spec_objects.py::test_anyspec_init",
"tests/test_timeseriesflattener/test_feature_spec_objects.py::test_loader_kwargs",
"tests/test_timeseriesflattener/test_feature_spec_objects.py::test_invalid_multiple_data_args",
"tests/test_timeseriesflattener/test_feature_spec... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pygraphviz",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_path": null,
... |
Abjad__abjad-ext-nauert-24 | 520f389f06e21ee0a094016b4f1e2b0cb58263c1 | 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... | 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... | Abjad/abjad-ext-nauert | 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():... | [
"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... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_path... |
Alexei-Kornienko__schematics_to_swagger-7 | 3ddc537a8ed7682e9bb709ebd749b99d7ef09473 | 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... | Hide private model fields in swagger doc | Alexei-Kornienko/schematics_to_swagger | 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... | [
"tests/test_model.py::test_read_models_from_module",
"tests/test_model.py::test_private_fields"
] | [] | [
"tests/test_model.py::test_model_to_definition",
"tests/test_model.py::test_compound_type"
] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest>=3.6",
"pytest-cov",
"codecov",
"flake8"
],
"pre_install": null,
"python": "3.6",
"reqs_path... |
Algebra8__pyopenapi3-80 | 2237b16747c446adc2b67a080040f222c0493653 | diff --git a/.gitignore b/.gitignore
index 8b5025d..45bfdbc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@ __pycache__/
pyopenapi3.egg-info/
dist/
build/
+.vscode/
diff --git a/src/pyopenapi3/builders.py b/src/pyopenapi3/builders.py
index 2fce8e4..c393181 100644
--- a/src/pyopenapi3/builders.py
+++ b/src/p... | Make parse_name_and_type_from_fmt_str return reference to components
`pyopenapi3.utils.parse_name_and_type_from_fmt_str` should be able to accept the following format: `{name:Component}`.
Currently, it will only consider data types:
```
# In parse_name_and_type_from_fmt_str
yield arg_name, getattr(pyopenapi3.da... | Algebra8/pyopenapi3 | diff --git a/tests/examples/component.py b/tests/examples/component.py
index d05ee3e..e74bea9 100644
--- a/tests/examples/component.py
+++ b/tests/examples/component.py
@@ -105,7 +105,7 @@ object_lvl_test = {
"Pet": {
"required": [
"name",
- "animal_type"
+ "animal_type",
],
... | [
"tests/test_builders.py::test_path_with_path_parameter",
"tests/test_builders.py::test_path_parameter_in_field__fail"
] | [
"tests/test_builders.py::test_component_with_object_level_fields"
] | [
"tests/test_builders.py::test_info_object_success",
"tests/test_builders.py::test_default_server",
"tests/test_builders.py::test_one_server_object_success",
"tests/test_builders.py::test_multiple_servers_success",
"tests/test_builders.py::test_server_with_vars_success",
"tests/test_builders.py::test_path_... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [],
"python": "3.9",
"reqs_path": [
"requirements.txt"
],
"test_cmd": "pytest... |
Algebra8__pyopenapi3-83 | 2ef34c3213eb292703e0e5e6f2185b1e4725bbde | diff --git a/src/pyopenapi3/schemas.py b/src/pyopenapi3/schemas.py
index 141822f..daa78f6 100644
--- a/src/pyopenapi3/schemas.py
+++ b/src/pyopenapi3/schemas.py
@@ -164,7 +164,9 @@ class DTSchema(SchemaObject):
class ObjectsDTSchema(DTSchema):
type: str = Field('object', const=True)
- properties: Dict[str, U... | Allow Free-Form Objects
Consider the following example:
```
definitions:
Pet:
type: object
properties:
tags:
type: object
description: Custom tags
```
According to [Open API 3 specs on data types](https://swagger.io/docs/specification/data-models/data-types/#object), "a fre... | Algebra8/pyopenapi3 | diff --git a/tests/test_schemas.py b/tests/test_schemas.py
new file mode 100644
index 0000000..19c5977
--- /dev/null
+++ b/tests/test_schemas.py
@@ -0,0 +1,7 @@
+from pyopenapi3.schemas import ObjectsDTSchema
+
+
+def test_free_form_object():
+ o = ObjectsDTSchema()
+
+ assert o.dict() == {"type": "object"}
| [
"tests/test_schemas.py::test_free_form_object"
] | [] | [] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest==6.2.2",
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": [
"requirements.txt"
]... |
Algebra8__pyopenapi3-91 | 1637ca6ab3186f73baaf37b09594f59a745f63bb | diff --git a/src/pyopenapi3/builders.py b/src/pyopenapi3/builders.py
index 164f041..a4b1663 100644
--- a/src/pyopenapi3/builders.py
+++ b/src/pyopenapi3/builders.py
@@ -5,7 +5,7 @@ import re
import yaml
-from pyopenapi3.data_types import Component
+from pyopenapi3.data_types import Component, Parameters, Schemas
... | Unresolvable pointer due to wrong reference
Consider the following example:
```
@component.parameter
class PetId:
name = "pet_id"
description = "Pet's Unique Identifier"
in_field = "path"
schema = create_schema(String, pattern="^[a-zA-Z0-9-]+$")
required = True
@open_bldr.path
cl... | Algebra8/pyopenapi3 | diff --git a/tests/examples/component.py b/tests/examples/component.py
index e74bea9..50552e2 100644
--- a/tests/examples/component.py
+++ b/tests/examples/component.py
@@ -126,3 +126,27 @@ object_lvl_test = {
}
}
}
+
+param_reference_comp = {
+ "schemas": {
+ "Pet": {
+ "type": "object",
+ "prop... | [
"tests/test_builders.py::test_path_with_path_parameter",
"tests/test_builders.py::test_component_parameter_references"
] | [] | [
"tests/test_builders.py::test_info_object_success",
"tests/test_builders.py::test_default_server",
"tests/test_builders.py::test_one_server_object_success",
"tests/test_builders.py::test_multiple_servers_success",
"tests/test_builders.py::test_server_with_vars_success",
"tests/test_builders.py::test_path_... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": [
"requirements.txt"
],
"test_cmd": "pyte... |
Algebra8__pyopenapi3-92 | 2f282f7f121550c845f77b16076b2bdf9b0b379f | diff --git a/examples/connexion_example/ex.py b/examples/connexion_example/app.py
similarity index 62%
rename from examples/connexion_example/ex.py
rename to examples/connexion_example/app.py
index 18e2a3e..42b4eb3 100644
--- a/examples/connexion_example/ex.py
+++ b/examples/connexion_example/app.py
@@ -1,8 +1,24 @@
-f... | Add connexion structure to /examples directory
Include everything that is required to make a simple connexion example work around #62, such as `app.py`. | Algebra8/pyopenapi3 | diff --git a/tests/examples/component.py b/tests/examples/component.py
index 50552e2..dc80eea 100644
--- a/tests/examples/component.py
+++ b/tests/examples/component.py
@@ -150,3 +150,18 @@ param_reference_comp = {
}
}
}
+
+param_component = {
+ "parameters": {
+ "PetID": {
+ "name": "pet_id",
+ ... | [
"tests/test_builders.py::test_path_with_path_parameter"
] | [] | [
"tests/test_builders.py::test_info_object_success",
"tests/test_builders.py::test_default_server",
"tests/test_builders.py::test_one_server_object_success",
"tests/test_builders.py::test_multiple_servers_success",
"tests/test_builders.py::test_server_with_vars_success",
"tests/test_builders.py::test_path_... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": [
"requirements.txt"
],
"test_cmd": "pyte... |
All-Hands-AI__openhands-aci-55 | f9774a3ca86d2ec2430de5dbaef2cf657d48b826 | diff --git a/.github/workflows/openhands-resolver.yml b/.github/workflows/openhands-resolver.yml
new file mode 100644
index 0000000..8ebb451
--- /dev/null
+++ b/.github/workflows/openhands-resolver.yml
@@ -0,0 +1,32 @@
+name: Resolve Issue with OpenHands
+
+on:
+ issues:
+ types: [labeled]
+ pull_request:
+ typ... | Add file/folder info in `view` command
Relevant to https://github.com/All-Hands-AI/OpenHands/issues/5506

> Very weird.. after merging this into one of my branch and running a full SWE-Bench verified (compared to our prev 53% run... | All-Hands-AI/openhands-aci | diff --git a/tests/integration/test_oh_editor.py b/tests/integration/test_oh_editor.py
index 309da8a..a905a83 100644
--- a/tests/integration/test_oh_editor.py
+++ b/tests/integration/test_oh_editor.py
@@ -44,14 +44,14 @@ def test_view_file(editor):
def test_view_directory(editor):
editor, test_file = editor
- ... | [
"tests/integration/test_oh_editor.py::test_view_directory"
] | [] | [
"tests/integration/test_oh_editor.py::test_view_file",
"tests/integration/test_oh_editor.py::test_create_file",
"tests/integration/test_oh_editor.py::test_create_with_empty_string",
"tests/integration/test_oh_editor.py::test_create_with_none_file_text",
"tests/integration/test_oh_editor.py::test_str_replace... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.12",
"reqs_path": [
"requirements/base.txt"
],
"test_cmd":... |
All-Hands-AI__openhands-resolver-123 | 84ccb9b29d786c3cb16f100b31ee456ddc622fd0 | diff --git a/openhands_resolver/send_pull_request.py b/openhands_resolver/send_pull_request.py
index dd227b7..3d06d3e 100644
--- a/openhands_resolver/send_pull_request.py
+++ b/openhands_resolver/send_pull_request.py
@@ -139,6 +139,11 @@ def make_commit(repo_dir: str, issue: GithubIssue) -> None:
raise Runtime... | Better handling of when a branch already exists
Currently, in `github_resolver/send_pull_request.py`, when pushing to github for a particular issue, the branch name is fixed here:
https://github.com/All-Hands-AI/openhands-resolver/blob/44aa2907d70852b7f98786c673304cc18b76d43e/openhands_resolver/send_pull_request.py#L1... | All-Hands-AI/openhands-resolver | diff --git a/tests/test_send_pull_request.py b/tests/test_send_pull_request.py
index b67edd5..fb2f393 100644
--- a/tests/test_send_pull_request.py
+++ b/tests/test_send_pull_request.py
@@ -213,7 +213,10 @@ def test_send_pull_request(
repo_path = os.path.join(mock_output_dir, "repo")
# Mock API responses
- ... | [
"tests/test_send_pull_request.py::test_send_pull_request[branch]",
"tests/test_send_pull_request.py::test_send_pull_request[draft]",
"tests/test_send_pull_request.py::test_send_pull_request[ready]",
"tests/test_send_pull_request.py::test_send_pull_request_branch_naming"
] | [] | [
"tests/test_send_pull_request.py::test_load_single_resolver_output",
"tests/test_send_pull_request.py::test_apply_patch",
"tests/test_send_pull_request.py::test_apply_patch_preserves_line_endings",
"tests/test_send_pull_request.py::test_apply_patch_create_new_file",
"tests/test_send_pull_request.py::test_ap... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.11",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=line --co... |
All-Hands-AI__openhands-resolver-137 | 63dd2c9c905a375db53785c0a69e56951a279189 | diff --git a/openhands_resolver/__init__.py b/openhands_resolver/__init__.py
index 1276d02..0a8da88 100644
--- a/openhands_resolver/__init__.py
+++ b/openhands_resolver/__init__.py
@@ -1,1 +1,1 @@
-__version__ = "0.1.5"
+__version__ = "0.1.6"
diff --git a/openhands_resolver/send_pull_request.py b/openhands_resolver/sen... | "Unterminated quoted string"
On a run of the github action, the following error was encountered:
```bash
Run if [ "true" == "true" ]; then
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/opt/hostedtoolcache/Pyth... | All-Hands-AI/openhands-resolver | diff --git a/tests/test_send_pull_request.py b/tests/test_send_pull_request.py
index fb2f393..4853db3 100644
--- a/tests/test_send_pull_request.py
+++ b/tests/test_send_pull_request.py
@@ -1,6 +1,8 @@
import os
+import shlex
import tempfile
import pytest
+import subprocess
from unittest.mock import patch, MagicMock... | [
"tests/test_send_pull_request.py::test_process_single_issue_unsuccessful",
"tests/test_send_pull_request.py::test_make_commit_escapes_issue_title"
] | [] | [
"tests/test_send_pull_request.py::test_load_single_resolver_output",
"tests/test_send_pull_request.py::test_apply_patch",
"tests/test_send_pull_request.py::test_apply_patch_preserves_line_endings",
"tests/test_send_pull_request.py::test_apply_patch_create_new_file",
"tests/test_send_pull_request.py::test_ap... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.11",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=line --co... |
ApptuitAI__apptuit-py-10 | 65d256693243562917c4dfd0e8a753781b153b36 | diff --git a/apptuit/apptuit_client.py b/apptuit/apptuit_client.py
index afa6792..2049aa9 100644
--- a/apptuit/apptuit_client.py
+++ b/apptuit/apptuit_client.py
@@ -286,6 +286,23 @@ class DataPoint(object):
raise ValueError("Tag value %s contains an invalid character, allowed characters are a-z, A-Z, 0... | DataPoint should validate parameters
Right now DataPoint does not validate if the "value" parameter is int/long or float. Eventual API call fails if the value is a string (even representation of int/float).
DataPoint should perform client side validation of all input parameters (metricname, tags, values) without wa... | ApptuitAI/apptuit-py | diff --git a/tests/test_send.py b/tests/test_send.py
index f0d9b49..f8ee9a5 100644
--- a/tests/test_send.py
+++ b/tests/test_send.py
@@ -5,7 +5,7 @@ try:
except ImportError:
from mock import Mock, patch
-from nose.tools import assert_raises, ok_, raises
+from nose.tools import assert_raises, ok_, assert_is_not_... | [
"tests/test_send.py::test_invalid_datapoint_value",
"tests/test_send.py::test_nonstring_invalid_datapoint_value"
] | [] | [
"tests/test_send.py::test_send_positive",
"tests/test_send.py::test_send_server_error",
"tests/test_send.py::test_invalid_chars_in_tag_keys",
"tests/test_send.py::test_invalid_chars_in_tag_values",
"tests/test_send.py::test_tags_not_dict",
"tests/test_send.py::test_invalid_metric_name",
"tests/test_send... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"nose",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y lintian"
],
"python": "3.6",
... |
ApptuitAI__apptuit-py-21 | 2b12a363e0db4a39fc2fa786e064429df26884be | diff --git a/apptuit/pyformance/apptuit_reporter.py b/apptuit/pyformance/apptuit_reporter.py
index a8e2a65..1f6896e 100644
--- a/apptuit/pyformance/apptuit_reporter.py
+++ b/apptuit/pyformance/apptuit_reporter.py
@@ -10,13 +10,13 @@ class ApptuitReporter(Reporter):
def __init__(self, registry=None, reporting_inter... | Global tags should not over-ride tags from the datapoint
If the same tag key-value pair is on the datapoint and in global tags of the reporter, current implementation prefers the global tag:
https://github.com/ApptuitAI/apptuit-py/blob/9872766e4838fced1a580f4da3b44acf5fd3ea81/apptuit/pyformance/apptuit_reporter.py#L62... | ApptuitAI/apptuit-py | diff --git a/tests/test_pyformance_reporter.py b/tests/test_pyformance_reporter.py
index aaa6d1c..65d5537 100644
--- a/tests/test_pyformance_reporter.py
+++ b/tests/test_pyformance_reporter.py
@@ -3,7 +3,7 @@
"""
import random
import time
-from nose.tools import assert_raises, assert_equals, assert_greater_equal
+fr... | [
"tests/test_pyformance_reporter.py::test_globaltags_override",
"tests/test_pyformance_reporter.py::test_none_prefix"
] | [] | [
"tests/test_pyformance_reporter.py::test_send_negative",
"tests/test_pyformance_reporter.py::test_reporter_thread_active",
"tests/test_pyformance_reporter.py::test_invalid_metric_name",
"tests/test_pyformance_reporter.py::test_invalid_tag",
"tests/test_pyformance_reporter.py::test_invalid_registry",
"test... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"nose",
"pytest"
],
"pre_install": null,
"python": "3.6",
"reqs_path": [
"requirements.txt"
],
"test_cmd"... |
ArkEcosystem__python-crypto-116 | 1bd016f76b41eba9711be748c1caf20d8042f590 | diff --git a/crypto/transactions/builder/htlc_lock.py b/crypto/transactions/builder/htlc_lock.py
index baa361d..0ee2c7a 100644
--- a/crypto/transactions/builder/htlc_lock.py
+++ b/crypto/transactions/builder/htlc_lock.py
@@ -6,11 +6,12 @@ class HtlcLock(BaseTransactionBuilder):
transaction_type = TRANSACTION_HTL... | feat: add amount to HTLC Lock constructor
A HTLC lock transaction requires an amount, but the current constructor does not allow for passing an amount. | ArkEcosystem/python-crypto | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 030dfd9..dc62fc3 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -14,7 +14,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
- python-version: [3.5, 3.6, 3.7]
+ python-version: [3.5, 3.6, 3... | [
"tests/transactions/builder/test_htlc_lock.py::test_htlc_lock_transation_amount_not_int",
"tests/transactions/builder/test_htlc_lock.py::test_htlc_lock_transation_amount_zero",
"tests/transactions/builder/test_htlc_lock.py::test_htlc_lock_transation_amount_negative",
"tests/transactions/builder/test_htlc_lock... | [] | [] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest_v2",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": null,
"pre_install": null,
"python": "3.6",
"reqs_path": null,
"test_cmd": "pytest -v -s"
} |
AspenWeb__pando.py-586 | 0e0bc40453df28bae014461822fa25daf8263ff8 | diff --git a/pando/state_chain.py b/pando/state_chain.py
index 9fb57a43..f7e60513 100644
--- a/pando/state_chain.py
+++ b/pando/state_chain.py
@@ -27,7 +27,7 @@ import traceback
from aspen import resources
from aspen.exceptions import NotFound, Redirect, UnindexedDirectory
-from aspen.http.resource import Negotiati... | Requests for static files should return a 405 if method is unsafe
Reticketing from <https://github.com/AspenWeb/aspen.py/issues/50>.
Any request for a static file with a method other than `GET` or `HEAD` should be rejected with a 405. | AspenWeb/pando.py | diff --git a/tests/test_website_flow.py b/tests/test_website_flow.py
index 0916e3c5..1d5d9966 100644
--- a/tests/test_website_flow.py
+++ b/tests/test_website_flow.py
@@ -46,3 +46,30 @@ def test_early_failures_dont_break_everything(harness):
assert harness.client.GET("/", raise_immediately=False).code == 400
... | [
"tests/test_website_flow.py::test_static_resource_HEAD",
"tests/test_website_flow.py::test_static_resource_PUT",
"tests/test_website_flow.py::test_static_resource_unknown_method"
] | [] | [
"tests/test_website_flow.py::test_website_can_respond",
"tests/test_website_flow.py::test_website_can_respond_with_negotiation",
"tests/test_website_flow.py::test_404_comes_out_404",
"tests/test_website_flow.py::test_user_can_influence_request_context_via_algorithm_state",
"tests/test_website_flow.py::test_... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pyflakes"
],
"pre_install": null,
"python": "3.6",
"reqs_path": [
"requirements.txt"
],
"... |
AzureAD__azure-activedirectory-library-for-python-227 | b65cdce996c3e275bf82f1563638150c7ac97034 | diff --git a/adal/authentication_parameters.py b/adal/authentication_parameters.py
index fa891a0..a5f97e8 100644
--- a/adal/authentication_parameters.py
+++ b/adal/authentication_parameters.py
@@ -53,7 +53,7 @@ class AuthenticationParameters(object):
# The 401 challenge is a standard defined in RFC6750, which is based... | Replace "login.windows.net" with "login.microsoftonline.com" in the authority host list
In here: https://github.com/AzureAD/azure-activedirectory-library-for-python/blob/2a1c7ffabda0d79548533434db0cc9bbae6eefcf/adal/constants.py#L211
ADAL is still defaulting to "login.windows.net".
MSAL has removed this endpoint ... | AzureAD/azure-activedirectory-library-for-python | diff --git a/tests/config_sample.py b/tests/config_sample.py
index 99e946a..622a64b 100644
--- a/tests/config_sample.py
+++ b/tests/config_sample.py
@@ -42,7 +42,7 @@ ACQUIRE_TOKEN_WITH_USERNAME_PASSWORD = {
"password" : "None",
"tenant" : "XXXXXXXX.onmicrosoft.com",
- "authorityHostUrl" : "https://login... | [
"tests/test_authority.py::TestAuthority::test_http_error",
"tests/test_authority.py::TestAuthority::test_success_dynamic_instance_discovery",
"tests/test_authority.py::TestAuthority::test_url_extra_slashes",
"tests/test_authority.py::TestAuthority::test_validation_error",
"tests/test_authority.py::TestAutho... | [] | [
"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",
... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.6",
"reqs_path": [
"requirements.txt"
],
"test_cmd": "pytest --... |
AzureAD__microsoft-authentication-library-for-python-186 | c235d4e9dea9e4954cf0699bd46bb57ddce959be | diff --git a/msal/application.py b/msal/application.py
index a17d359..66d9b43 100644
--- a/msal/application.py
+++ b/msal/application.py
@@ -633,8 +633,9 @@ class ClientApplication(object):
**kwargs)
if at and "error" not in at:
return at
+ last_resp = None
... | Refresh token errors are discarded
`acquire_token_silent_with_error` appears to be intended to return the last error response received from AAD, and the documentation implies it does so, but there are cases in which it does not.
For example, if AAD rejects a refresh token, its error response is discarded (`at` is th... | AzureAD/microsoft-authentication-library-for-python | diff --git a/tests/test_application.py b/tests/test_application.py
index 39becd5..65b36b3 100644
--- a/tests/test_application.py
+++ b/tests/test_application.py
@@ -176,6 +176,19 @@ class TestClientApplicationAcquireTokenSilentFociBehaviors(unittest.TestCase):
# Will not test scenario of app leaving family. Per ... | [
"tests/test_application.py::TestClientApplicationAcquireTokenSilentFociBehaviors::test_preexisting_family_app_will_attempt_frt_and_return_error"
] | [] | [
"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... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_path... |
AzureAD__microsoft-authentication-library-for-python-280 | dfbbc66730a1f14cf8c27cb3562ecf9bd611a1a9 | diff --git a/msal/token_cache.py b/msal/token_cache.py
index b7ebbb9..34eff37 100644
--- a/msal/token_cache.py
+++ b/msal/token_cache.py
@@ -234,8 +234,9 @@ class TokenCache(object):
with self._lock:
if new_key_value_pairs: # Update with them
entries = self._cache.setdefault(cred... | [Bug] Token cache incompatibility with MSAL.python
**Which Version of MSAL are you using ?**
4.21
Details in this PowerShell issue:
https://github.com/Azure/azure-powershell/issues/13467
## Repro
Start with PWSH, then use Az CLI, the go back to PWSH. For example:
0. Use Windows (probably the same on Mac ... | AzureAD/microsoft-authentication-library-for-python | diff --git a/tests/test_token_cache.py b/tests/test_token_cache.py
index 1666bba..c846883 100644
--- a/tests/test_token_cache.py
+++ b/tests/test_token_cache.py
@@ -222,6 +222,24 @@ class TokenCacheTestCase(unittest.TestCase):
{}).get("key_id")
self.assertEqual(my_key_id, cached_key_id, "AT should... | [
"tests/test_token_cache.py::TokenCacheTestCase::test_old_rt_data_with_wrong_key_should_still_be_salvaged_into_new_rt",
"tests/test_token_cache.py::SerializableTokenCacheTestCase::test_old_rt_data_with_wrong_key_should_still_be_salvaged_into_new_rt"
] | [] | [
"tests/test_token_cache.py::TokenCacheTestCase::testAddByAad",
"tests/test_token_cache.py::TokenCacheTestCase::testAddByAdfs",
"tests/test_token_cache.py::TokenCacheTestCase::test_key_id_is_also_recorded",
"tests/test_token_cache.py::SerializableTokenCacheTestCase::testAddByAad",
"tests/test_token_cache.py:... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.6",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=line --color=no... |
AzureAD__microsoft-authentication-library-for-python-315 | 78e9ccfab7c16154ba38c0de78c495ba2ee58849 | diff --git a/msal/application.py b/msal/application.py
index 9fcad59..8a3fcae 100644
--- a/msal/application.py
+++ b/msal/application.py
@@ -918,11 +918,17 @@ class ClientApplication(object):
client = self._build_client(self.client_credential, authority)
response = None # A distinguishable value to... | MSAL shouldn't remove Refresh Token upon receiving invalid_grant
**Describe the bug**
MSAL shouldn't remove Refresh Token upon receiving `invalid_grant`.
**To Reproduce**
When
1. ARM (`https://management.azure.com/.default`) doesn't require MFA
2. VM SSH (`https://pas.windows.net/CheckMyAccess/Linux/.default`... | AzureAD/microsoft-authentication-library-for-python | diff --git a/tests/test_application.py b/tests/test_application.py
index 3c3b464..28e598b 100644
--- a/tests/test_application.py
+++ b/tests/test_application.py
@@ -73,8 +73,7 @@ class TestClientApplicationAcquireTokenSilentErrorBehaviors(unittest.TestCase):
self.client_id, authority=self.authority_url, to... | [
"tests/test_application.py::TokenCacheTestCase::testAddByAad",
"tests/test_application.py::TokenCacheTestCase::testAddByAdfs",
"tests/test_token_cache.py::TokenCacheTestCase::testAddByAad",
"tests/test_token_cache.py::TokenCacheTestCase::testAddByAdfs",
"tests/test_token_cache.py::SerializableTokenCacheTest... | [] | [
"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_into_new_rt",
"tests/test_application.py::TokenCacheTestCase::test_refresh_in_should_be_recorded_as_refresh_on",
"tests/test_a... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=line --color=no... |
AzureAD__microsoft-authentication-library-for-python-530 | 48954fcbc16272566cbedbaf48ffbae4acf7d5db | diff --git a/msal/application.py b/msal/application.py
index 7e3ec16..62ba4b5 100644
--- a/msal/application.py
+++ b/msal/application.py
@@ -588,18 +588,9 @@ class ClientApplication(object):
raise ValueError(
"API does not accept {} value as user-provided scopes".format(
... | Cannot put client id into scopes, therefore cannot get access_token for Azure B2C
According to [Azure B2C documentation](https://learn.microsoft.com/en-us/azure/active-directory-b2c/access-tokens#openid-connect-scopes), to get an access_token, client id must be added to scopes, i.e. `scopes=['openid', 'offline_access',... | AzureAD/microsoft-authentication-library-for-python | diff --git a/tests/test_application.py b/tests/test_application.py
index 804ccb8..b62f41d 100644
--- a/tests/test_application.py
+++ b/tests/test_application.py
@@ -625,3 +625,18 @@ class TestClientCredentialGrant(unittest.TestCase):
self._test_certain_authority_should_emit_warnning(
authority="ht... | [
"tests/test_application.py::TestScopeDecoration::test_client_id_should_be_a_valid_scope"
] | [
"tests/test_e2e.py::SshCertTestCase::test_ssh_cert_for_user_should_work_with_any_account"
] | [
"tests/test_application.py::TestHelperExtractCerts::test_extract_a_tag_enclosed_cert",
"tests/test_application.py::TestHelperExtractCerts::test_extract_a_tag_less_public_cert",
"tests/test_application.py::TestHelperExtractCerts::test_extract_multiple_tag_enclosed_certs",
"tests/test_application.py::TestBytesC... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_path": [
... |
AzureAD__microsoft-authentication-library-for-python-723 | 57dce47ae3495e546a0913c961c149734566da3a | diff --git a/msal/application.py b/msal/application.py
index ba10cd3..8f30eb1 100644
--- a/msal/application.py
+++ b/msal/application.py
@@ -104,11 +104,14 @@ def _clean_up(result):
"msalruntime_telemetry": result.get("_msalruntime_telemetry"),
"msal_python_telemetry": result.get("_msa... | [Feature Request] Expose `refresh_on` when retrieving token from cache
### MSAL client type
Public, Confidential
### Problem Statement
Similar to https://github.com/AzureAD/microsoft-authentication-library-for-java/issues/822, in our Azure SDKs for Python, one of the primary pipeline policies our SDK clients use is ... | AzureAD/microsoft-authentication-library-for-python | diff --git a/tests/test_application.py b/tests/test_application.py
index cebc722..71dc16e 100644
--- a/tests/test_application.py
+++ b/tests/test_application.py
@@ -1,6 +1,7 @@
# Note: Since Aug 2019 we move all e2e tests into test_e2e.py,
# so this test_application file contains only unit tests without dependency.
... | [
"tests/test_application.py::TestApplicationForRefreshInBehaviors::test_aging_token_and_available_aad_should_return_new_token",
"tests/test_application.py::TestApplicationForRefreshInBehaviors::test_aging_token_and_unavailable_aad_should_return_old_token",
"tests/test_application.py::TestApplicationForRefreshInB... | [] | [
"tests/test_application.py::TestHelperExtractCerts::test_extract_a_tag_enclosed_cert",
"tests/test_application.py::TestHelperExtractCerts::test_extract_a_tag_less_public_cert",
"tests/test_application.py::TestHelperExtractCerts::test_extract_multiple_tag_enclosed_certs",
"tests/test_application.py::TestBytesC... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": [
"requirements.txt"
],
"test_cmd": "pyte... |
AzureAD__microsoft-authentication-library-for-python-730 | fe8f7583a539f9a5c232df31c916368bc12057f7 | diff --git a/msal/application.py b/msal/application.py
index b3c07a4..75ca6c8 100644
--- a/msal/application.py
+++ b/msal/application.py
@@ -411,9 +411,11 @@ class ClientApplication(object):
(STS) what this client is capable for,
so STS can decide to turn on certain features.
For ... | [Engineering task] Implement Claims API to Bypass Cache When Claims are Present in MSAL with Managed Identity
### MSAL client type
Confidential
### Problem Statement
**Task type**
Development
**Description**
Currently, MSAL with Managed Identity does not expose any API claims API. With CAE (Continuous Acc... | AzureAD/microsoft-authentication-library-for-python | diff --git a/tests/test_mi.py b/tests/test_mi.py
index f3182c7..2041419 100644
--- a/tests/test_mi.py
+++ b/tests/test_mi.py
@@ -82,20 +82,17 @@ class ClientTestCase(unittest.TestCase):
self.assertTrue(
is_subdict_of(expected_result, result), # We will test refresh_on later
"Should o... | [
"tests/test_mi.py::VmTestCase::test_happy_path",
"tests/test_mi.py::AppServiceTestCase::test_happy_path",
"tests/test_mi.py::MachineLearningTestCase::test_happy_path",
"tests/test_mi.py::ServiceFabricTestCase::test_happy_path",
"tests/test_mi.py::ServiceFabricTestCase::test_unified_api_service_should_ignore... | [] | [
"tests/test_mi.py::ManagedIdentityTestCase::test_helper_class_should_be_interchangable_with_dict_which_could_be_loaded_from_file_or_env_var",
"tests/test_mi.py::VmTestCase::test_vm_error_should_be_returned_as_is",
"tests/test_mi.py::AppServiceTestCase::test_app_service_error_should_be_normalized",
"tests/test... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": [
"requirements.txt",
"docs/requirements.txt"
... |
AzureAD__microsoft-authentication-library-for-python-77 | f4a0ba0b05d32d50bed3c2c8dbc188c7a4e5039f | diff --git a/msal/authority.py b/msal/authority.py
index 51289d2..75dc69f 100644
--- a/msal/authority.py
+++ b/msal/authority.py
@@ -38,13 +38,20 @@ class Authority(object):
self.proxies = proxies
self.timeout = timeout
canonicalized, self.instance, tenant = canonicalize(authority_url)
- ... | ADFS 2019 Compatability
* See the task scope in [this MSAL .Net PR](https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/pull/834). It seems touch almost every flow: Device Code, Username Password, Interactive flow (i.e. auth code flow), and Confidential Client.
* This doc [OAuth2 in ADFS](https://do... | AzureAD/microsoft-authentication-library-for-python | diff --git a/tests/test_token_cache.py b/tests/test_token_cache.py
index fecee70..85f4457 100644
--- a/tests/test_token_cache.py
+++ b/tests/test_token_cache.py
@@ -16,30 +16,29 @@ class TokenCacheTestCase(unittest.TestCase):
@staticmethod
def build_id_token(
iss="issuer", sub="subject", aud="my_... | [
"tests/test_token_cache.py::TokenCacheTestCase::testAddByAdfs",
"tests/test_token_cache.py::SerializableTokenCacheTestCase::testAddByAdfs"
] | [] | [
"tests/test_token_cache.py::TokenCacheTestCase::testAddByAad",
"tests/test_token_cache.py::SerializableTokenCacheTestCase::testAddByAad",
"tests/test_token_cache.py::SerializableTokenCacheTestCase::test_has_state_changed"
] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.6",
"reqs_path": [
"requirements.txt"
],
"test_cmd": "pytest --... |
AzureAD__microsoft-authentication-library-for-python-795 | fb3e21cf501587dccb71676a3d06f9ea24476102 | diff --git a/msal/managed_identity.py b/msal/managed_identity.py
index ec032ca..6f85571 100644
--- a/msal/managed_identity.py
+++ b/msal/managed_identity.py
@@ -448,7 +448,9 @@ def _obtain_token_on_azure_vm(http_client, managed_identity, resource):
}
_adjust_param(params, managed_identity)
resp = htt... | [Bug] Msal does not honor environment variable `AZURE_POD_IDENTITY_AUTHORITY_HOST` in IMDS
We used to honor environment variable `AZURE_POD_IDENTITY_AUTHORITY_HOST` in IMDS
https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/azure/identity/_credentials/imds.py#L36
Seems like MSAL chang... | AzureAD/microsoft-authentication-library-for-python | diff --git a/tests/test_mi.py b/tests/test_mi.py
index c5a99ae..a7c2cb6 100644
--- a/tests/test_mi.py
+++ b/tests/test_mi.py
@@ -121,13 +121,29 @@ class ClientTestCase(unittest.TestCase):
class VmTestCase(ClientTestCase):
- def test_happy_path(self):
+ def _test_happy_path(self) -> callable:
expires... | [
"tests/test_mi.py::VmTestCase::test_happy_path_of_pod_identity"
] | [] | [
"tests/test_mi.py::ManagedIdentityTestCase::test_helper_class_should_be_interchangable_with_dict_which_could_be_loaded_from_file_or_env_var",
"tests/test_mi.py::ClientTestCase::test_error_out_on_invalid_input",
"tests/test_mi.py::VmTestCase::test_error_out_on_invalid_input",
"tests/test_mi.py::VmTestCase::tes... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-benchmark"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"pyth... |
Azure__autorest.python-475 | 4793bd7b9ddc25a241cd54538b4c5750f915b3d2 | diff --git a/autorest/codegen/models/parameter_list.py b/autorest/codegen/models/parameter_list.py
index 5f1c8b94f..500a776b3 100644
--- a/autorest/codegen/models/parameter_list.py
+++ b/autorest/codegen/models/parameter_list.py
@@ -115,16 +115,17 @@ class ParameterList(MutableSequence):
or parameter.i... | argument order syntax error
Using
> AutoRest code generation utility [cli version: 3.0.6187; node: v10.13.0, max-memory: 8192 gb]
With: Autorest for Python v5.0.0 - 20200228.1
And Swagger:
https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/search/data-plane/Microsoft.Azure... | Azure/autorest.python | diff --git a/test/unittests/test_parameter_ordering.py b/test/unittests/test_parameter_ordering.py
new file mode 100644
index 000000000..ce4e06df7
--- /dev/null
+++ b/test/unittests/test_parameter_ordering.py
@@ -0,0 +1,59 @@
+import pytest
+from autorest.codegen.models import Parameter, AnySchema
+from autorest.codege... | [
"test/unittests/test_parameter_ordering.py::test_sort_required_parameters"
] | [] | [
"test/unittests/test_parameter_ordering.py::test_sort_required_and_non_required_parameters"
] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": null,
"pre_install": null,
"python": "3.7",
"reqs_path": [
"dev_requirements.txt"
],
"test_cmd": "pytest --no-he... |
Azure__autorest.python-545 | 3322ab3a1c793c8fdaf2dc7d391c3c1e2eca2852 | diff --git a/ChangeLog.md b/ChangeLog.md
index cb8b2555c..0c66ad340 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,5 +1,11 @@
# Change Log
+### Current
+
+**Bug Fixes**
+
+- Fixes parameter ordering so parameters with default values are all ordered at the end #545
+
### 2020-04-01 - 5.0.0-dev.20200401.1
Model... | default value followed by non default value in operation signature
if you change cost management service swagger like this
<img width="770" alt="Screen Shot 2020-04-03 at 10 40 18 AM" src="https://user-images.githubusercontent.com/43154838/78372652-8760c900-7597-11ea-957f-8abf14e4582c.png">
code gen generates:
<img ... | Azure/autorest.python | diff --git a/test/unittests/test_parameter_ordering.py b/test/unittests/test_parameter_ordering.py
index ce4e06df7..06a8739d3 100644
--- a/test/unittests/test_parameter_ordering.py
+++ b/test/unittests/test_parameter_ordering.py
@@ -1,13 +1,15 @@
import pytest
from autorest.codegen.models import Parameter, AnySchema
... | [
"test/unittests/test_parameter_ordering.py::test_sort_parameters_with_default_value_from_schema"
] | [] | [
"test/unittests/test_parameter_ordering.py::test_sort_required_parameters",
"test/unittests/test_parameter_ordering.py::test_sort_required_and_non_required_parameters"
] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": null,
"pre_install": null,
"python": "3.7",
"reqs_path": [
"dev_requirements.txt"
],
"test_cmd": "pytest --no-he... |
Azure__azure-cli-1876 | 62dab24154f910ff7f3ef2b6b3783945b58e9098 | diff --git a/src/azure-cli-core/azure/cli/core/_util.py b/src/azure-cli-core/azure/cli/core/_util.py
index c194599bc..379152887 100644
--- a/src/azure-cli-core/azure/cli/core/_util.py
+++ b/src/azure-cli-core/azure/cli/core/_util.py
@@ -94,21 +94,27 @@ def get_json_object(json_string):
def get_file_json(file_path,... | "@file support": should handle the BOM on file loading
Otherwise, using `@<parameter-file>` will return an invalid json string for the command to use. Since json file is the main file type, so the core layer should handle it.
CLI already have [the logic](https://github.com/Azure/azure-cli/blob/master/src/azure-cli-cor... | Azure/azure-cli | diff --git a/src/azure-cli-core/azure/cli/core/tests/test_application.py b/src/azure-cli-core/azure/cli/core/tests/test_application.py
index 42f09f10f..2142b0515 100644
--- a/src/azure-cli-core/azure/cli/core/tests/test_application.py
+++ b/src/azure-cli-core/azure/cli/core/tests/test_application.py
@@ -87,13 +87,21 @@... | [
"src/azure-cli-core/azure/cli/core/tests/test_application.py::TestApplication::test_expand_file_prefixed_files"
] | [] | [
"src/azure-cli-core/azure/cli/core/tests/test_application.py::TestApplication::test_application_register_and_call_handlers",
"src/azure-cli-core/azure/cli/core/tests/test_application.py::TestApplication::test_list_value_parameter"
] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "python scripts/dev_setup.py",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc libssl-dev libffi-dev"
],
"... |
Azure__azure-cli-2053 | 27816f4891c85592ad6f06bcc94008fa7d144b69 | diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_help.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_help.py
index 8f73d9966..540d6aab1 100644
--- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_help.py
+++ b/src/command_modules/azure-cli-vm/azure/cli/com... | VM Access: command renaming
This is polishing like change regarding 4 existing commands under `vm access`, including `delete-linux-user`, `reset-linux-ssh`, `reset-windows-admin`, `set-linux-user`. The naming oddness reflects the service function difference between windows and linux vm, particularly on windows vm, you ... | Azure/azure-cli | diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/test_vm_create_state_modifications.yaml b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/test_vm_create_state_modifications.yaml
index 4d2a3c12b..02382f28f 100644
--- a/src/command_modules/azure-c... | [
"src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py::VMCreateAndStateModificationsScenarioTest::test_vm_create_state_modifications"
] | [
"src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py::VMAvailSetScenarioTest::test_vm_availset"
] | [
"src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py::VMImageListByAliasesScenarioTest::test_vm_image_list_by_alias",
"src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py::VMUsageScenarioTest::test_vm_usage",
"src/command_modules/azure-cli-... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "python scripts/dev_setup.py",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc libssl-dev libffi-dev"
],
"... |
Azure__azure-cli-2214 | 01bbaf048c7669c024ece5e84c9360d829624574 | diff --git a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/commands.py b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/commands.py
index 0e5118830..3b6e72876 100644
--- a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/commands.py
+++ b/src/com... | [DNS] Deleting a record requires a confirmation prompt
Deleting a record set is a potentially catastrophic operation.
For this reason, in the Portal, PowerShell, and CLI1.0, the operation has a confirmation prompt.
We need to add a similar confirmation prompt in CLI2.0. This applies to both `az network dns record... | Azure/azure-cli | diff --git a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/test_network_commands.py b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/test_network_commands.py
index c7c490fd5..1b0d4e81d 100644
--- a/src/command_modules/azure-cli-network/azure/cli/command_mod... | [
"src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/test_network_commands.py::NetworkDnsScenarioTest::test_network_dns"
] | [] | [
"src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/test_network_commands.py::NetworkMultiIdsShowScenarioTest::test_multi_id_show",
"src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/test_network_commands.py::NetworkUsageListScenarioTest::test_network_usage_l... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "python scripts/dev_setup.py",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc libssl-dev libffi-dev"
],
"... |
Azure__azure-cli-2467 | d79710730933432d2c8ccd722d31fbbf75845ce0 | diff --git a/src/command_modules/azure-cli-resource/azure/cli/command_modules/resource/_help.py b/src/command_modules/azure-cli-resource/azure/cli/command_modules/resource/_help.py
index 3df308105..bcff81d87 100644
--- a/src/command_modules/azure-cli-resource/azure/cli/command_modules/resource/_help.py
+++ b/src/comman... | az vmss get-instance-view returns model view when specifying all VMs
If you run the following to get the instance view for all VMs in a scale set:
```
az vmss get-instance-view -g rgname -n vmssname --instance-id \*
```
CLI does:
```
requests.packages.urllib3.connectionpool : https://management.azure.com:443 "GET... | Azure/azure-cli | diff --git a/src/command_modules/azure-cli-vm/tests/test_custom_vm_commands.py b/src/command_modules/azure-cli-vm/tests/test_custom_vm_commands.py
index 54809d1d5..b6ff5ac31 100644
--- a/src/command_modules/azure-cli-vm/tests/test_custom_vm_commands.py
+++ b/src/command_modules/azure-cli-vm/tests/test_custom_vm_command... | [
"src/command_modules/azure-cli-vm/tests/test_custom_vm_commands.py::Test_Vm_Custom::test_show_vmss_instance_view"
] | [] | [
"src/command_modules/azure-cli-vm/tests/test_custom_vm_commands.py::Test_Vm_Custom::test_attach_existing_datadisk_on_vm",
"src/command_modules/azure-cli-vm/tests/test_custom_vm_commands.py::Test_Vm_Custom::test_attach_new_datadisk_custom_on_vm",
"src/command_modules/azure-cli-vm/tests/test_custom_vm_commands.py... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "python scripts/dev_setup.py",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.5",
"req... |
Azure__azure-cli-2955 | 3079f47653297161fd877f994cfaa0bc202f039f | diff --git a/src/command_modules/azure-cli-role/HISTORY.rst b/src/command_modules/azure-cli-role/HISTORY.rst
index b34ef4fe7..5b6240d98 100644
--- a/src/command_modules/azure-cli-role/HISTORY.rst
+++ b/src/command_modules/azure-cli-role/HISTORY.rst
@@ -5,6 +5,7 @@ Release History
2.0.3 (unreleased)
++++++++++++++++++... | RBAC: support AD group commands
1. Author commands under `az ad group`, to be in parity with xplat's
2. On `group list`, add `--display-name` filtering
3. support group name when resolve `--assignee' on role creation | Azure/azure-cli | diff --git a/src/command_modules/azure-cli-role/tests/recordings/test_graph_group_scenario.yaml b/src/command_modules/azure-cli-role/tests/recordings/test_graph_group_scenario.yaml
new file mode 100644
index 000000000..325267215
--- /dev/null
+++ b/src/command_modules/azure-cli-role/tests/recordings/test_graph_group_sc... | [
"src/command_modules/azure-cli-role/tests/test_graph.py::GraphGroupScenarioTest::test_graph_group_scenario"
] | [] | [
"src/command_modules/azure-cli-role/tests/test_graph.py::ServicePrincipalExpressCreateScenarioTest::test_sp_create_scenario",
"src/command_modules/azure-cli-role/tests/test_graph.py::ApplicationSetScenarioTest::test_application_set_scenario"
] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "python scripts/dev_setup.py",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.5",
"req... |
Azure__azure-cli-3354 | 4417fb03c91b0caa5f88a72ca0372d5931c072d9 | diff --git a/appveyor.yml b/appveyor.yml
index a3b8e2a82..23c0de8d3 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -13,7 +13,7 @@ environment:
install:
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
- python scripts/dev_setup.py
- - python -m pip install sphinx
+ - python -m pip install sphinx==1.5.6
build_sc... | az vm open-port returns error but executes successfully
### Description
az vm open-port returns an error but executes successfully
Example:
PS C:\Users\larry> az vm open-port -g JUMPBOXRG -n jumpbox --port 80 --priority 500
Operation failed with status: 'Not Found'. Details: 404 Client Error: Not Found for url: ... | Azure/azure-cli | diff --git a/src/command_modules/azure-cli-vm/tests/recordings/test_vm_open_port.yaml b/src/command_modules/azure-cli-vm/tests/recordings/test_vm_open_port.yaml
index 0aa74e003..df0308bf4 100644
--- a/src/command_modules/azure-cli-vm/tests/recordings/test_vm_open_port.yaml
+++ b/src/command_modules/azure-cli-vm/tests/r... | [
"src/command_modules/azure-cli-vm/tests/test_vm_commands.py::VMOpenPortTest::test_vm_open_port"
] | [
"src/command_modules/azure-cli-vm/tests/test_vm_commands.py::VMCreateLinuxSecretsScenarioTest::test_vm_create_linux_secrets",
"src/command_modules/azure-cli-vm/tests/test_vm_commands.py::VMCreateWindowsSecretsScenarioTest::test_vm_create_windows_secrets",
"src/command_modules/azure-cli-vm/tests/test_vm_commands... | [
"src/command_modules/azure-cli-vm/tests/test_vm_commands.py::VMImageListByAliasesScenarioTest::test_vm_image_list_by_alias",
"src/command_modules/azure-cli-vm/tests/test_vm_commands.py::VMUsageScenarioTest::test_vm_usage",
"src/command_modules/azure-cli-vm/tests/test_vm_commands.py::VMImageListThruServiceScenar... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "python scripts/dev_setup.py",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.5",
"req... |
Azure__azure-cli-3643 | c024331912bbf467725d76d437557ebc6e4aba17 | diff --git a/doc/configuring_your_machine.md b/doc/configuring_your_machine.md
index 7af498348..a4cbd442c 100644
--- a/doc/configuring_your_machine.md
+++ b/doc/configuring_your_machine.md
@@ -72,7 +72,7 @@ The repo has a launch.json file that will launch the version of Python that is f
#### OSX/Ubuntu (bash):
... | The error message for too short/long password for VM is spelled incorrectly (pssword)
We even have a test that verifies that it is incorrectly spelled :)
| Azure/azure-cli | diff --git a/src/command_modules/azure-cli-vm/tests/test_vm_actions.py b/src/command_modules/azure-cli-vm/tests/test_vm_actions.py
index 800a04d14..45f0b6e8c 100644
--- a/src/command_modules/azure-cli-vm/tests/test_vm_actions.py
+++ b/src/command_modules/azure-cli-vm/tests/test_vm_actions.py
@@ -117,7 +117,7 @@ class T... | [
"src/command_modules/azure-cli-vm/tests/test_vm_actions.py::TestActions::test_validate_admin_password_linux",
"src/command_modules/azure-cli-vm/tests/test_vm_actions.py::TestActions::test_validate_admin_password_windows"
] | [] | [
"src/command_modules/azure-cli-vm/tests/test_vm_actions.py::TestActions::test_figure_out_storage_source",
"src/command_modules/azure-cli-vm/tests/test_vm_actions.py::TestActions::test_generate_specfied_ssh_key_files",
"src/command_modules/azure-cli-vm/tests/test_vm_actions.py::TestActions::test_get_next_subnet_... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "python scripts/dev_setup.py",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc libssl-dev libffi-dev"
],
"... |
Azure__azure-cli-3743 | e80e204a01bf4f32c17d8f89a955c3dd49eaa7ec | diff --git a/azure-cli.pyproj b/azure-cli.pyproj
index ea34c0dd2..842d462d2 100644
--- a/azure-cli.pyproj
+++ b/azure-cli.pyproj
@@ -616,8 +616,6 @@
<Compile Include="command_modules\azure-cli-sf\azure\cli\command_modules\sf\_params.py" />
<Compile Include="command_modules\azure-cli-sf\azure\cli\command_modul... | Parameters file values not being read during deployment create
### Description
When using `az group deployment create` with the newest version of the Azure CLI it no longer respects the `--parameters @<file>` contents and prompts me to type out each value in the command line.
Tested same template/parameters JSON f... | Azure/azure-cli | diff --git a/src/command_modules/azure-cli-resource/tests/recordings/latest/test_group_deployment.yaml b/src/command_modules/azure-cli-resource/tests/recordings/latest/test_group_deployment.yaml
index 5e8b598db..36ac195af 100644
--- a/src/command_modules/azure-cli-resource/tests/recordings/latest/test_group_deployment.... | [
"src/command_modules/azure-cli-resource/tests/test_resource.py::DeploymentTest::test_group_deployment"
] | [] | [
"src/command_modules/azure-cli-resource/tests/test_custom.py::TestCustom::test_deployment_parameters",
"src/command_modules/azure-cli-resource/tests/test_custom.py::TestCustom::test_extract_parameters",
"src/command_modules/azure-cli-resource/tests/test_custom.py::TestCustom::test_resource_missing_parameters",
... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "python scripts/dev_setup.py",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc libssl-dev libffi-dev"
],
"... |
Azure__azure-functions-durable-python-494 | 354ace05d704ae63f9a6488bd6a228adb949e2b2 | diff --git a/azure/durable_functions/models/DurableOrchestrationContext.py b/azure/durable_functions/models/DurableOrchestrationContext.py
index df10100..01ec900 100644
--- a/azure/durable_functions/models/DurableOrchestrationContext.py
+++ b/azure/durable_functions/models/DurableOrchestrationContext.py
@@ -214,7 +214,... | `call_http` json serializes regular `str` content.
<!--
Please read.
Before posting, please be sure to review whether your issue matches the description of a known regression by using [this](https://github.com/Azure/azure-functions-durable-python/issues?q=is%3Aissue+is%3Aopen+label%3Aknown-regression) query.
If... | Azure/azure-functions-durable-python | diff --git a/tests/orchestrator/test_call_http.py b/tests/orchestrator/test_call_http.py
index be46d87..b42b36c 100644
--- a/tests/orchestrator/test_call_http.py
+++ b/tests/orchestrator/test_call_http.py
@@ -1,5 +1,6 @@
from azure.durable_functions.models.ReplaySchema import ReplaySchema
import json
+import pytest
... | [
"tests/orchestrator/test_call_http.py::test_call_http_content_handling[None-None-False]",
"tests/orchestrator/test_call_http.py::test_call_http_content_handling[string",
"tests/orchestrator/test_call_http.py::test_call_http_content_handling[{\"key\":",
"tests/orchestrator/test_call_http.py::test_call_http_con... | [] | [
"tests/orchestrator/test_call_http.py::test_initial_orchestration_state",
"tests/orchestrator/test_call_http.py::test_completed_state",
"tests/orchestrator/test_call_http.py::test_failed_state",
"tests/orchestrator/test_call_http.py::test_initial_post_state",
"tests/orchestrator/test_call_http.py::test_post... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-asyncio"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python... |
Azure__iotedgedev-173 | ce59bad1286bf650d442b2b7fbe16a3db676a497 | 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... | 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-... | Azure/iotedgedev | 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... | [
"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_valid_env_iothub_connectionstring",
"tests/test_connectionstring.py::test_valid_env_device_connectionstring"
] | [
"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"
] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.6",
"reqs_path": [
... |
Azure__iotedgedev-349 | 67c63047b53f7e1749d7d9c3985593deae566699 | diff --git a/.vscode/launch.json b/.vscode/launch.json
index 4121a9a..d2519d0 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -5,20 +5,11 @@
"name": "Python Module",
"type": "python",
"request": "launch",
- "stopOnEntry": true,
"module": "iote... | Failed to push to local registry
- iotedgedev Version: 1.0.0rc0
- Python Version: Python2.7 Python3.6 Python3.7
- Pip Version:18.1
- Development machine OS Version: Windows10/Ubuntu18.04/Mac os high sierra 10.13.6
- IoT Edge device OS Version: Windows10/Ubuntu18.04/Mac os high sierra 10.13.6
Steps to Reproduce:
... | Azure/iotedgedev | diff --git a/tests/assets/deployment.template_1.json b/tests/assets/deployment.template_1.json
index 3dc499e..3d74b31 100644
--- a/tests/assets/deployment.template_1.json
+++ b/tests/assets/deployment.template_1.json
@@ -7,7 +7,8 @@
"type": "docker",
"settings": {
"minDockerVersion": ... | [
"tests/test_utility.py::test_copy_from_template_dir"
] | [
"tests/test_envvars.py::test_default_container_registry_server_key_exists",
"tests/test_envvars.py::test_additional_container_registry_map_has_val"
] | [
"tests/test_azurecli.py::test_lowercase_token_should_be_lowercase_for_name_and_id",
"tests/test_azurecli.py::test_mixedcase_token_should_be_lowercase_for_id_but_unmodified_for_name",
"tests/test_buildoptionsparser.py::test_filter_build_options",
"tests/test_buildoptionsparser.py::test_parse_to_dict",
"tests... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.6",
"reqs_path": [
... |
Azure__msrest-for-python-167 | c4086bfac4e45b11b6bd4267cff62aa302a51877 | 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... | 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. | Azure/msrest-for-python | 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"]... | [
"tests/test_universal_pipeline.py::test_raw_deserializer"
] | [] | [
"tests/test_universal_pipeline.py::test_user_agent",
"tests/test_universal_pipeline.py::test_no_log"
] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[async]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov",
"pytest-asyncio",
"httpretty",
"mock",
"futures",
"mypy",
"pylint"... |
Azure__msrest-for-python-189 | c2249d459e8af8912c5da4cd728c8201066b9304 | 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:... | 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... | Azure/msrest-for-python | 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... | [
"tests/test_serialization.py::TestRuntimeSerialized::test_validation_type"
] | [] | [
"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",
... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_path... |
Azure__msrest-for-python-224 | c16e5218fe99742c5bf93d73ce0bb71c9b1c0953 | 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... | 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... | Azure/msrest-for-python | 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... | [
"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::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",
... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov",
"pytest-asyncio"
],
"pre_install": [
"apt-get update",
"apt-get install -y g... |
Azure__msrest-for-python-43 | 11f19f936f2d2d912782c7280f02f01ed89baf47 | 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... | 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... | Azure/msrest-for-python | 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 = ... | [
"tests/test_serialization.py::TestRuntimeSerialized::test_attr_duration"
] | [] | [
"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_enum",
"tests/test_seriali... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "... |
Azure__msrest-for-python-55 | bb876c23427448d293c793e16d415971eb1753bc | 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:
... | 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... | Azure/msrest-for-python | 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... | [
"tests/test_exceptions.py::TestExceptions::test_custom_exception"
] | [] | [] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "... |
Azure__msrestazure-for-python-107 | bc59bae35d784f0aad8d1e26ebfd9c20897dca46 | diff --git a/msrestazure/azure_active_directory.py b/msrestazure/azure_active_directory.py
index 48ac41c..88c3744 100644
--- a/msrestazure/azure_active_directory.py
+++ b/msrestazure/azure_active_directory.py
@@ -685,6 +685,8 @@ class MSIAuthentication(BasicTokenAuthentication):
elif "MSI_ENDPOINT" not in os.e... | MSIAuthentication should set toekn on instance creation
All msrestazure instance set the token on instance creation, except MSIAuthentication.
This presents a few issues:
- Unlike all other usages, authentication exception will be raised at usage, not at creation level
- This creates weird bug in KeyVault which is... | Azure/msrestazure-for-python | diff --git a/tests/test_auth.py b/tests/test_auth.py
index ed5ae77..56baf9c 100644
--- a/tests/test_auth.py
+++ b/tests/test_auth.py
@@ -240,7 +240,7 @@ class TestServicePrincipalCredentials(unittest.TestCase):
ServicePrincipalCredentials, '_setup_session', return_value=session):
proxies = {... | [
"tests/test_auth.py::TestServicePrincipalCredentials::test_msi_vm",
"tests/test_auth.py::TestServicePrincipalCredentials::test_msi_vm_imds_no_retry_on_bad_error",
"tests/test_auth.py::TestServicePrincipalCredentials::test_msi_vm_imds_retry"
] | [] | [
"tests/test_auth.py::TestServicePrincipalCredentials::test_adal_authentication",
"tests/test_auth.py::TestServicePrincipalCredentials::test_check_state",
"tests/test_auth.py::TestServicePrincipalCredentials::test_clear_token",
"tests/test_auth.py::TestServicePrincipalCredentials::test_convert_token",
"tests... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"mock",
"httpretty",
"pytest",
"pytest-cov",
"pylint"
],
"pre_install": [
"apt-get update",
... |
Azure__msrestazure-for-python-121 | ca3dceee99aee5aa4e5a25ec20c1794440510011 | diff --git a/msrestazure/polling/arm_polling.py b/msrestazure/polling/arm_polling.py
index 2f3aa2a..d299e6f 100644
--- a/msrestazure/polling/arm_polling.py
+++ b/msrestazure/polling/arm_polling.py
@@ -262,7 +262,17 @@ class LongRunningOperation(object):
status = self._get_provisioning_state(response)
... | If final GET on Location is empty, does not necessarily mean there is a problem
If Swagger explains to follow Location on final state, and there is not return type, it is expected that the final body is empty. However, msrestazure right now assume this final call must have a body.
Fix, update this code:
```python
... | Azure/msrestazure-for-python | diff --git a/tests/test_arm_polling.py b/tests/test_arm_polling.py
index affa1fc..94e71d8 100644
--- a/tests/test_arm_polling.py
+++ b/tests/test_arm_polling.py
@@ -38,7 +38,7 @@ import pytest
from requests import Request, Response
-from msrest import Deserializer
+from msrest import Deserializer, Configuration
f... | [
"tests/test_arm_polling.py::TestArmPolling::test_long_running_post"
] | [] | [
"tests/test_arm_polling.py::TestArmPolling::test_long_running_put",
"tests/test_arm_polling.py::TestArmPolling::test_long_running_patch",
"tests/test_arm_polling.py::TestArmPolling::test_long_running_delete",
"tests/test_arm_polling.py::TestArmPolling::test_long_running_negative"
] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "... |
Azure__pykusto-159 | 68121cdd79cc9c1d6b8f71e5e80df566ac6842c7 | diff --git a/pykusto/_src/client.py b/pykusto/_src/client.py
index 66c39f6..d18fa82 100644
--- a/pykusto/_src/client.py
+++ b/pykusto/_src/client.py
@@ -371,7 +371,7 @@ class Table(_ItemFetcher):
return KQL(table_names[0])
def execute(self, query: KQL, retry_config: RetryConfig = None) -> KustoResponse:... | Retry config causes an exception beacuse of bug in argumets order in client execute function
In `_src.client.py` the function `execute` is defined as follows:
`def execute(self, query: KQL, retry_config: RetryConfig = None) -> KustoResponse:
return self.__database.execute(query, retry_config)`
but the `datab... | Azure/pykusto | diff --git a/test/test_client.py b/test/test_client.py
index 5fc05c2..930e81e 100644
--- a/test/test_client.py
+++ b/test/test_client.py
@@ -222,3 +222,28 @@ class TestClient(TestBase):
KustoError("Mock exception for test", None),
lambda: Query(table).take(5).execute(),
)
+
+ def t... | [
"test/test_client.py::TestClient::test_override_retry_config_for_query"
] | [] | [
"test/test_client.py::TestClient::test_2_retry",
"test/test_client.py::TestClient::test_3_retries",
"test/test_client.py::TestClient::test_client_for_cluster_with_aad_device_auth",
"test/test_client.py::TestClient::test_client_for_cluster_with_azure_cli_auth",
"test/test_client.py::TestClient::test_client_i... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.7",
"reqs_path": null,
"test_cmd"... |
Azure__pykusto-72 | 4232fc8aeea27d8d15c8cb1fd830493d50c8a3de | diff --git a/pykusto/expressions.py b/pykusto/expressions.py
index 6a7617a..967780d 100644
--- a/pykusto/expressions.py
+++ b/pykusto/expressions.py
@@ -2,6 +2,7 @@ from datetime import datetime, timedelta
from typing import Any, List, Tuple, Mapping, Optional
from typing import Union
+from pykusto.keywords import ... | Column names that are language keywords don't parse well
if a column name is, for example, 'title', it should be parsed as "['title']", otherwise, Kusto throws an exception | Azure/pykusto | diff --git a/test/test_expressions.py b/test/test_expressions.py
index bd17f79..be7f396 100644
--- a/test/test_expressions.py
+++ b/test/test_expressions.py
@@ -349,3 +349,13 @@ class TestExpressions(TestBase):
self.assertIsInstance(field2, AnyTypeColumn)
self.assertEqual('foo', field1.get_name())
... | [
"test/test_expressions.py::TestExpressions::test_column_name_quoting"
] | [] | [
"test/test_expressions.py::TestExpressions::test_abs",
"test/test_expressions.py::TestExpressions::test_add_timespan_to_date",
"test/test_expressions.py::TestExpressions::test_add_timespan_to_timespan",
"test/test_expressions.py::TestExpressions::test_and",
"test/test_expressions.py::TestExpressions::test_a... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest",
"pytest-cov",
"flake8"
],
"pre_install": [],
"python": "3.7",
"reqs_path": null,
"test_cmd": "pytest --no-h... |
Azure__pykusto-84 | 39a825859c499d219cb2c55e57bc3d3f71568ff7 | diff --git a/pykusto/expressions.py b/pykusto/expressions.py
index 70e8207..2dc2e4f 100644
--- a/pykusto/expressions.py
+++ b/pykusto/expressions.py
@@ -188,12 +188,24 @@ class BooleanExpression(BaseExpression):
"""
return BooleanExpression.binary_op(self, ' and ', other)
+ def __rand__(self, oth... | multiplying numbers and columns doesn't always work
examples:
Query().where(f.to_double(100 * t.numberField) > 0.2).render()
returns: TypeError: unsupported operand type(s) for *: 'int' and 'AnyTypeColumn'
Query().where(100 * f.to_double(t.numberField) > 0.2).render()
returns: TypeError: unsupported operand type(... | Azure/pykusto | diff --git a/test/test_expressions.py b/test/test_expressions.py
index be7f396..0e47b49 100644
--- a/test/test_expressions.py
+++ b/test/test_expressions.py
@@ -1,6 +1,7 @@
from datetime import timedelta, datetime
from pykusto.expressions import column_generator as col, AnyTypeColumn
+from pykusto.functions import ... | [
"test/test_expressions.py::TestExpressions::test_add_number_column",
"test/test_expressions.py::TestExpressions::test_add_swapped_timespan_to_timespan",
"test/test_expressions.py::TestExpressions::test_column_with_digits",
"test/test_expressions.py::TestExpressions::test_multiply_number_column",
"test/test_... | [] | [
"test/test_expressions.py::TestExpressions::test_abs",
"test/test_expressions.py::TestExpressions::test_add_timespan_to_date",
"test/test_expressions.py::TestExpressions::test_add_timespan_to_timespan",
"test/test_expressions.py::TestExpressions::test_and",
"test/test_expressions.py::TestExpressions::test_a... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.6",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=line --color=no... |
BQSKit__bqskit-134 | 27e209149392231fdaccedfb39ae20b4173c844e | diff --git a/bqskit/compiler/compile.py b/bqskit/compiler/compile.py
index ee9fcbe..1237948 100644
--- a/bqskit/compiler/compile.py
+++ b/bqskit/compiler/compile.py
@@ -443,7 +443,7 @@ def _opt1_workflow(
if g.num_qudits != 1
)
non_native_gates = [
- g for g in circuit.gate_set... | Compiler ignores custom gate set when compiling a random 2-qubit circuit
Example to reproduce:
```
import bqskit
from bqskit.ext import qiskit_to_bqskit
import qiskit as qs
import qutip as qt
import numpy as np
circ = qs.QuantumCircuit(2)
u = qt.rand_unitary_haar(4)
random_unitary = qs.quantum_info.operators... | BQSKit/bqskit | diff --git a/tests/compiler/compile/test_blocked_input.py b/tests/compiler/compile/test_blocked_input.py
new file mode 100644
index 0000000..19fe3db
--- /dev/null
+++ b/tests/compiler/compile/test_blocked_input.py
@@ -0,0 +1,27 @@
+from __future__ import annotations
+
+from bqskit import compile
+from bqskit import Mac... | [
"tests/compiler/compile/test_blocked_input.py::test_compile_blocked_input_circuit_unfold_rebase_correctly"
] | [] | [] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=line --col... |
BQSKit__bqskit-267 | 200e79985cdfbca753dd833a3a50fa84f7afc5c4 | diff --git a/bqskit/qis/unitary/unitary.py b/bqskit/qis/unitary/unitary.py
index fb797ec..b9f9966 100644
--- a/bqskit/qis/unitary/unitary.py
+++ b/bqskit/qis/unitary/unitary.py
@@ -54,7 +54,14 @@ class Unitary(metaclass=UnitaryMeta):
if hasattr(self, '_dim'):
return self._dim
- return int... | `circuit.dim` is 0 for large circuits
If you print `circuit.dim` for a large (e.g. 1024 qubit) circuit, you will get 0. The 0 is coming from an integer overflow that numpy does not report.
I don't expect the correct answer (2^1024 is absurdly large), but some feedback (an error or warning) would be nice. Since num... | BQSKit/bqskit | diff --git a/tests/qis/unitary/test_props.py b/tests/qis/unitary/test_props.py
new file mode 100644
index 0000000..2df433a
--- /dev/null
+++ b/tests/qis/unitary/test_props.py
@@ -0,0 +1,8 @@
+from __future__ import annotations
+
+from bqskit.ir.circuit import Circuit
+
+
+def test_circuit_dim_overflow() -> None:
+ c... | [
"tests/qis/unitary/test_props.py::test_circuit_dim_overflow"
] | [] | [] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest",
"hypothesis"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-header -... |
BaPSF__bapsflib-41 | 08a56b9001c607982778b16f15a30dd88ba3cf31 | diff --git a/bapsflib/_hdf/utils/helpers.py b/bapsflib/_hdf/utils/helpers.py
index 28cdde8..4e103c5 100644
--- a/bapsflib/_hdf/utils/helpers.py
+++ b/bapsflib/_hdf/utils/helpers.py
@@ -561,7 +561,8 @@ def condition_shotnum(shotnum: Any,
'array would be NULL')
elif isinstance(shotnum... | Function condition_shotnum() throws ValueError if conditioned shotnum is a single element ndarry
[`condition_shotnum()`](https://github.com/BaPSF/bapsflib/blob/b25f05370c0fc601aa7f8e1dff4f17eeec1f8e45/bapsflib/_hdf/utils/helpers.py#L476) throws a `ValueError` at [line 568](https://github.com/BaPSF/bapsflib/blob/b25f053... | BaPSF/bapsflib | diff --git a/bapsflib/_hdf/utils/tests/test_helpers.py b/bapsflib/_hdf/utils/tests/test_helpers.py
index bb7c8e0..a280cd1 100644
--- a/bapsflib/_hdf/utils/tests/test_helpers.py
+++ b/bapsflib/_hdf/utils/tests/test_helpers.py
@@ -663,6 +663,8 @@ class TestConditionShotnum(TestBase):
# shotnum valid
s... | [
"bapsflib/_hdf/utils/tests/test_helpers.py::TestConditionShotnum::test_shotnum_ndarray"
] | [
"bapsflib/_hdf/utils/tests/test_helpers.py::TestBuildShotnumDsetRelation::test_complex_dataset",
"bapsflib/_hdf/utils/tests/test_helpers.py::TestBuildShotnumDsetRelation::test_simple_dataset"
] | [
"bapsflib/_hdf/utils/tests/test_helpers.py::TestConditionControls::test_controls_w_same_contype",
"bapsflib/_hdf/utils/tests/test_helpers.py::TestConditionControls::test_file_w_multiple_controls",
"bapsflib/_hdf/utils/tests/test_helpers.py::TestConditionControls::test_file_w_one_control",
"bapsflib/_hdf/utils... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.7",... |
Bachmann1234__diff_cover-210 | 5f7aeea8b95441f8286a38524ce0234e1716e304 | 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="+")
- ... | 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()` | Bachmann1234/diff_cover | 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... | [
"diff_cover/tests/test_diff_cover_tool.py::test_parse_with_multiple_reports"
] | [] | [
"diff_cover/tests/test_diff_cover_tool.py::test_parse_with_html_report",
"diff_cover/tests/test_diff_cover_tool.py::test_parse_with_no_report",
"diff_cover/tests/test_diff_cover_tool.py::test_parse_with_ignored_unstaged",
"diff_cover/tests/test_diff_cover_tool.py::test_parse_invalid_arg",
"diff_cover/tests/... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"black",
"isort",
"pytest",
"pytest-cov"
],
"pre_install": null,
"python": "3.9",
"reqs_path": [
... |
Bachmann1234__diff_cover-277 | d9efc6c0e5f1c94a25d0772d149d08ecb2542aa1 | 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... | 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... | Bachmann1234/diff_cover | 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... | [
"tests/test_violations_reporter.py::TestPylintQualityReporterTest::test_quality"
] | [
"tests/test_violations_reporter.py::TestFlake8QualityReporterTest::test_file_does_not_exist"
] | [
"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... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest pytest-cov pytest-datadir pytest-mock"
],
"pre_install": null,
"python": "3.9",
"reqs_path": [
"requ... |
Bachmann1234__diff_cover-413 | e235b209d55dcec1867f71b6d52ab2dd798912e5 | diff --git a/diff_cover/diff_reporter.py b/diff_cover/diff_reporter.py
index a9404d4..8f404b9 100644
--- a/diff_cover/diff_reporter.py
+++ b/diff_cover/diff_reporter.py
@@ -165,18 +165,31 @@ class GitDiffReporter(BaseDiffReporter):
# Get the diff dictionary
diff_dict = self._git_diff()
-
# ... | UnicodeDecodeError when an untracked binary file is present in the repository
**Problem description**
I have discovered a bug in the diff-cover library. When an untracked binary file is present in the repository, the library fails to read it and throws the following error:
```
File "/Users/user/PycharmProjects/som... | Bachmann1234/diff_cover | diff --git a/tests/test_diff_reporter.py b/tests/test_diff_reporter.py
index 8a0eea5..0d61b4e 100644
--- a/tests/test_diff_reporter.py
+++ b/tests/test_diff_reporter.py
@@ -618,16 +618,63 @@ def test_include_untracked(mocker, git_diff):
{"subdir/file1.py": line_numbers(3, 10) + line_numbers(34, 47)}
)
... | [
"tests/test_diff_reporter.py::test_include_untracked",
"tests/test_diff_reporter.py::test_include_untracked__not_valid_path__not_include_it[excluded0-supported_extensions0-file.bin]",
"tests/test_diff_reporter.py::test_include_untracked__not_valid_path__not_include_it[excluded1-supported_extensions1-file.bin]"
... | [] | [
"tests/test_diff_reporter.py::test_name",
"tests/test_diff_reporter.py::test_name_compare_branch",
"tests/test_diff_reporter.py::test_name_ignore_staged",
"tests/test_diff_reporter.py::test_name_ignore_unstaged",
"tests/test_diff_reporter.py::test_name_ignore_staged_and_unstaged",
"tests/test_diff_reporte... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-datadir"
],
"pre_install": [
"apt-get update",
"a... |
Becksteinlab__numkit-8 | af05227af13f4bb56f867b026014048f0e3f0454 | diff --git a/CHANGES b/CHANGES
index 267c22e..d6525cb 100644
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,11 @@
CHANGELOG for numkit
======================
+2018-08-08 1.1.1
+orbeckst
+
+* fixed numkit.timeseries.smooth() under Python 3 (issue #7)
+
2018-04-27 1.1.0
orbeckst, kain88-de
diff --git a/src/num... | timeseries.smooth() fails in Python 3
In Py 3
```
> return y[(window_len-1)/2:-(window_len-1)/2] # take off repeats on ends
E TypeError: slice indices must be integers or None or have an __index__ method
``` | Becksteinlab/numkit | diff --git a/src/numkit/tests/test_timeseries.py b/src/numkit/tests/test_timeseries.py
index b10d443..140d39d 100644
--- a/src/numkit/tests/test_timeseries.py
+++ b/src/numkit/tests/test_timeseries.py
@@ -47,5 +47,8 @@ class TestRegularizedFunction(object):
# assert_almost_equal(np.max(Y), np.max(data[1]))
... | [
"src/numkit/tests/test_timeseries.py::test_smooth[flat]",
"src/numkit/tests/test_timeseries.py::test_smooth[hanning]",
"src/numkit/tests/test_timeseries.py::test_smooth[hamming]",
"src/numkit/tests/test_timeseries.py::test_smooth[bartlett]",
"src/numkit/tests/test_timeseries.py::test_smooth[blackman]"
] | [] | [
"src/numkit/tests/test_timeseries.py::TestRegularizedFunction::test_max[5]",
"src/numkit/tests/test_timeseries.py::TestRegularizedFunction::test_max[100]",
"src/numkit/tests/test_timeseries.py::TestRegularizedFunction::test_max[1000]",
"src/numkit/tests/test_timeseries.py::TestRegularizedFunction::test_max[10... | [] | {
"env_vars": null,
"env_yml_path": [
"environment.yml"
],
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": true,
"packages": "environment.yml",
"pip_packages": [
"pytest",
"pytest-cov",
"pytest-pep8"
],
"pre_install": null,
"python": "3.6",
"re... |
Benardi__touvlo-34 | 0e1ee71ebec9a09370f928dd96d0ae11f3bba404 | diff --git a/touvlo/utils.py b/touvlo/utils.py
index fdf47db..ca8531c 100644
--- a/touvlo/utils.py
+++ b/touvlo/utils.py
@@ -35,7 +35,7 @@ def g_grad(x):
def gradient_descent(X, y, grad, initial_theta,
- alpha, num_iters, _lambda=None):
+ alpha, num_iters, **kwargs):
""... | Generalize the function utils.gradient_descent
The function `gradient_descent` should only be aware of the parameters `X, y, grad, initial_theta,alpha, num_iters`. Any further parameter should be fed to the `grad` function with no impact in the signature of the function `gradient_descent`.
TL; DR: Edit the functio... | Benardi/touvlo | diff --git a/tests/test_utils.py b/tests/test_utils.py
index d695ead..5adeb9b 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -4,7 +4,7 @@ import pytest
from numpy import array, cos, sin, exp
from numpy.testing import assert_allclose
-from touvlo.utils import numerical_grad, g_grad
+from touvlo.utils ... | [
"tests/test_utils.py::TestLogisticRegression::test_gradient_descent1",
"tests/test_utils.py::TestLogisticRegression::test_gradient_descent2"
] | [] | [
"tests/test_utils.py::TestLogisticRegression::test_numeric_grad_1",
"tests/test_utils.py::TestLogisticRegression::test_numeric_grad_2",
"tests/test_utils.py::TestLogisticRegression::test_numeric_grad_3",
"tests/test_utils.py::TestLogisticRegression::test_numeric_grad_4",
"tests/test_utils.py::TestLogisticRe... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_path... |
Blaizzy__mlx-vlm-179 | 1e4579ad0c99b41c71f7309a4cb59d0c4e49fca1 | diff --git a/mlx_vlm/models/qwen2_vl/vision.py b/mlx_vlm/models/qwen2_vl/vision.py
index bd699a4..bd32514 100644
--- a/mlx_vlm/models/qwen2_vl/vision.py
+++ b/mlx_vlm/models/qwen2_vl/vision.py
@@ -88,7 +88,7 @@ class VisionRotaryEmbedding(nn.Module):
inv_freq = 1.0 / (
self.theta ** (mx.arange(0, ... | LoRa fine-tuning is not working with Llama 3.2 vision model.
After I pull the current main branch, lora fine-tuning of the Llama-3.2-11B-Vision-Instruct stopped working with the following error.
```
python3 -m mlx_vlm.lora --dataset /myspace/datasets --model-path /myspace/Llama-3.2-11B-Vision-Instruct --epochs 5
... | Blaizzy/mlx-vlm | diff --git a/mlx_vlm/tests/test_trainer.py b/mlx_vlm/tests/test_trainer.py
index 97339e7..70dd370 100644
--- a/mlx_vlm/tests/test_trainer.py
+++ b/mlx_vlm/tests/test_trainer.py
@@ -47,15 +47,15 @@ class TestDataset(unittest.TestCase):
mock_get_prompt.return_value = "Mocked prompt"
- mock_prepare_inp... | [
"mlx_vlm/tests/test_trainer.py::TestDataset::test_dataset_getitem"
] | [] | [
"mlx_vlm/tests/test_trainer.py::TestDataset::test_dataset_initialization",
"mlx_vlm/tests/test_trainer.py::TestTrainer::test_loss_fn",
"mlx_vlm/tests/test_trainer.py::TestTrainer::test_train_step",
"mlx_vlm/tests/test_trainer.py::TestTrainer::test_trainer_initialization"
] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.10",
"reqs_path": [... |
BrandwatchLtd__api_sdk-62 | 0570363bdee1621b85f8290599e0c86c75bcf802 | diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index b33d109..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-language: python
-
-matrix:
- include:
- - python: 3.3
- - python: 3.4
- - python: 3.5
- - python: 3.6
- - python: 3.7
- dist: xenial
- sudo: true
- - pyt... | username with capital letters
I came across an issue when I use the token_path instead of the password to request my project:
BWProject(username=YOUR_ACCOUNT, project=YOUR_PROJECT)
When at the beginning I used my username and password, the tokens.txt was generated with the username in lowercase (_read_auth_file). ... | BrandwatchLtd/api_sdk | diff --git a/test/__init__.py b/test/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/test/test_bwproject.py b/test/test_bwproject.py
new file mode 100644
index 0000000..4820262
--- /dev/null
+++ b/test/test_bwproject.py
@@ -0,0 +1,69 @@
+import unittest
+import responses
+import os
+import tempfile... | [
"test/test_bwproject.py::TestBWProjectUsernameCaseSensitivity::test_mixedcase_username",
"test/test_bwproject.py::TestBWProjectUsernameCaseSensitivity::test_uppercase_username"
] | [] | [
"test/test_bwproject.py::TestBWProjectUsernameCaseSensitivity::test_lowercase_username"
] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"responses"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3... |
BurnzZ__scrapy-loader-upkeep-3 | 0b36309d1c9ea814e097e06e9d7220cfef6e6f9e | diff --git a/README.rst b/README.rst
index 6fb0e87..3112d48 100644
--- a/README.rst
+++ b/README.rst
@@ -58,8 +58,8 @@ This only works for the following ``ItemLoader`` methods:
- ``add_xpath()``
- ``replace_xpath()``
-Spider Example
-~~~~~~~~~~~~~~
+Basic Spider Example
+~~~~~~~~~~~~~~~~~~~~
This is taken fr... | Allow paths to be named
When having several amounts of xpaths for each field, is really difficult to determine which one was added firsts, specially when there are different workflows on the code.
To make easier the task to identify the paths on the stats, it would be great if we could name them. For example:
```... | BurnzZ/scrapy-loader-upkeep | diff --git a/examples/quotestoscrape/items.py b/examples/quotestoscrape/items.py
index 360d6f0..2eac930 100644
--- a/examples/quotestoscrape/items.py
+++ b/examples/quotestoscrape/items.py
@@ -3,3 +3,4 @@ import scrapy
class QuotesToScrapeItem(scrapy.Item):
quote = scrapy.Field()
author = scrapy.Field()
+ ... | [
"tests/test_loader.py::test_get_selector_values",
"tests/test_loader.py::test_multiple_1_with_name",
"tests/test_loader.py::test_multiple_2_with_name"
] | [] | [
"tests/test_loader.py::test_get_selector_values_with_no_selector",
"tests/test_loader.py::test_write_to_stats_with_uninjected_stat_dependency",
"tests/test_loader.py::test_write_to_stats_with_no_parsed_data",
"tests/test_loader.py::test_write_to_stats_with_no_field_name",
"tests/test_loader.py::test_write_t... | [] | {
"env_vars": null,
"env_yml_path": [],
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "Pipfile",
"pip_packages": [
"pytest"
],
"pre_install": [],
"python": "3.9",
"reqs_path": [],
"test_cmd": "pytest --no-header -rA --tb=line --color=no... |
CODAIT__exchange-metadata-converter-25 | a5432d877fe947a12c169d2d84c22e034d555289 | diff --git a/metadata_converter/apply.py b/metadata_converter/apply.py
index f20d451..34cd14f 100644
--- a/metadata_converter/apply.py
+++ b/metadata_converter/apply.py
@@ -16,6 +16,8 @@
from argparse import ArgumentParser
from pathlib import Path
from ruamel.yaml import YAML
+from ruamel.yaml.tokens import CommentT... | Support optional properties
Currently all `{{...}}` placeholders in https://github.com/CODAIT/exchange-metadata-converter/tree/main/templates are considered to be required and therefore each placeholder input file must define them. Annotations would solve this issue. Investigate what it takes to support something like ... | CODAIT/exchange-metadata-converter | diff --git a/tests/inputs/annotations.yaml b/tests/inputs/annotations.yaml
new file mode 100644
index 0000000..84678c1
--- /dev/null
+++ b/tests/inputs/annotations.yaml
@@ -0,0 +1,6 @@
+# This YAML document does not define the following properties:
+# noprop1value, noprop2value, noprop3value, noprop3value,
+# noprop4va... | [
"tests/test_annotations.py::TestAnnotations::test_optional_annotation"
] | [] | [
"tests/test_annotations.py::TestAnnotations::test_without_optional_annotation"
] | [] | {
"env_vars": null,
"env_yml_path": [],
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [],
"python": "3.7",
"reqs_path": [
"test_requirements.txt"
],
"test_cmd": "pytest -... |
CODAIT__exchange-metadata-converter-38 | c306552b0a2fc25f868cfc7daee7b26a1c99f31b | diff --git a/setup.py b/setup.py
index 1e62eb5..afb9bf4 100644
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ with open('README.md') as readme:
setup(
name='exchange-metadata-converter',
packages=find_packages(),
- version='0.0.8',
+ version='0.0.9',
license='Apache-2.0',
description='exchange metadata ... | Non-compliant metadata.name in the generated DLF YAML
The `metadata.name` in the generated DLF YAML does not comply with the Kubernetes spec for DNS-1123 subdomain names.
```JSON
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "Dataset.com.ie.ibm.hpsys \"Fina... | CODAIT/exchange-metadata-converter | diff --git a/tests/test_dlf.py b/tests/test_dlf.py
index 9e37f60..e593f79 100644
--- a/tests/test_dlf.py
+++ b/tests/test_dlf.py
@@ -48,7 +48,7 @@ class TestDLF(unittest.TestCase):
'com.ie.ibm.hpsys/v1alpha1')
self.assertEqual(out_dict['kind'], 'Dataset')
self.ass... | [
"tests/test_dlf.py::TestDLF::test_dtest_dlf"
] | [] | [
"tests/test_dlf.py::TestDLF::test_dax_dataset_descriptors"
] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"flake8",
"pytest"
],
"pre_install": null,
"python": "3.8",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=l... |
CORE-GATECH-GROUP__serpent-tools-24 | 4b93cd86c6149b94960984892dad25de6fbbb41f | diff --git a/serpentTools/__init__.py b/serpentTools/__init__.py
index fdaf895..8d07887 100644
--- a/serpentTools/__init__.py
+++ b/serpentTools/__init__.py
@@ -3,10 +3,6 @@ from serpentTools import parsers
# List TODOS/feature requests here for now
-# Messages/Errors
-# TODO: Add verbosity control
-# TODO: A... | Feature: Implement a messaging and exception framework
Implement a overarching data logger that controls warnings, errors, and debug statements that allows the user to set the verbosity through the `rc` system. Maybe piggyback off of the [logging module](https://docs.python.org/3.6/library/logging.html)
Create a `Se... | CORE-GATECH-GROUP/serpent-tools | diff --git a/serpentTools/tests/test_loaders.py b/serpentTools/tests/test_loaders.py
index f6895e1..3bbd24e 100644
--- a/serpentTools/tests/test_loaders.py
+++ b/serpentTools/tests/test_loaders.py
@@ -57,7 +57,8 @@ class UserSettingsTester(unittest.TestCase):
'metadataKeys': ['ZAI', 'NAMES', 'DAYS', 'BU'],... | [
"serpentTools/tests/test_loaders.py::UserSettingsTester::test_returnReaderSettings"
] | [] | [
"serpentTools/tests/test_loaders.py::DefaultSettingsTester::test_cannotChangeDefaults",
"serpentTools/tests/test_loaders.py::DefaultSettingsTester::test_getDefault",
"serpentTools/tests/test_loaders.py::UserSettingsTester::test_failAtBadSetting_options",
"serpentTools/tests/test_loaders.py::UserSettingsTester... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"drewtils>=0.1.5"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"pytho... |
CORE-GATECH-GROUP__serpent-tools-243 | 67846baca60f959ac92bdf208e6f1c6744688890 | diff --git a/serpentTools/parsers/results.py b/serpentTools/parsers/results.py
index d46a7fd..095cb6c 100644
--- a/serpentTools/parsers/results.py
+++ b/serpentTools/parsers/results.py
@@ -183,9 +183,10 @@ class ResultsReader(XSReader):
"""Process universes' data"""
brState = self._getBUstate() # obt... | [BUG] ResultsReader fails when only group constants are requested
## Summary of issue
When restricting the scope of the variables extracted from the results file to only group constants, the reader fails.
It is also worth noting that, when non-group constant data are requested as well, 'ABS_KEFF' and 'INF_FLX', fo... | CORE-GATECH-GROUP/serpent-tools | diff --git a/serpentTools/tests/test_ResultsReader.py b/serpentTools/tests/test_ResultsReader.py
index 03e9d28..1384c4d 100644
--- a/serpentTools/tests/test_ResultsReader.py
+++ b/serpentTools/tests/test_ResultsReader.py
@@ -8,7 +8,7 @@ from numpy.testing import assert_equal
from six import iteritems
from serpentTo... | [
"serpentTools/tests/test_ResultsReader.py::RestrictedResultsReader::test_fluxAndKeff",
"serpentTools/tests/test_ResultsReader.py::RestrictedResultsReader::test_justFlux"
] | [
"serpentTools/tests/test_ResultsReader.py::TestGetUniv::test_allVarsNone",
"serpentTools/tests/test_ResultsReader.py::TestGetUniv::test_noUnivState",
"serpentTools/tests/test_ResultsReader.py::TestGetUniv::test_nonPostiveIndex",
"serpentTools/tests/test_ResultsReader.py::TestGetUniv::test_validUniv",
"serpe... | [
"serpentTools/tests/test_ResultsReader.py::TestBadFiles::test_emptyFile_noGcu",
"serpentTools/tests/test_ResultsReader.py::TestBadFiles::test_noResults",
"serpentTools/tests/test_ResultsReader.py::TestEmptyAttributes::test_emptyAttributes",
"serpentTools/tests/test_ResultsReader.py::TestReadAllResults::test_b... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest",
"flake8>=3.1.0",
"pandas>=0.21.0",
"jupyter>=1.0",
"coverage==4.5.1"
],
"pre_install": null,
"python": ... |
CORE-GATECH-GROUP__serpent-tools-288 | 1c730ef70c6f9ce98247e1d8b935d3bb98366e4a | diff --git a/docs/changelog.rst b/docs/changelog.rst
index dd57dbc..90d13c3 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -39,6 +39,15 @@ Next
The API for the |branchCollector| may be subject to change
through revisions until ``0.7.0``
+Incompatible API Changes
+------------------------
+
+* |ho... | Universes in results reader are not zero-indexed
## Summary of issue
The first index for universes is 1, likely taken directly from the result file burnup index. This misconstrues some of the style and pythonicness of the layout, as python arrays start at 0.
## Code for reproducing the issue
Read a result file wit... | CORE-GATECH-GROUP/serpent-tools | diff --git a/serpentTools/tests/test_ResultsReader.py b/serpentTools/tests/test_ResultsReader.py
index 1384c4d..50209a5 100644
--- a/serpentTools/tests/test_ResultsReader.py
+++ b/serpentTools/tests/test_ResultsReader.py
@@ -122,11 +122,6 @@ class TestGetUniv(unittest.TestCase):
with self.assertRaises(SerpentT... | [
"serpentTools/tests/test_ResultsReader.py::TestGetUniv::test_validUniv",
"serpentTools/tests/test_ResultsReader.py::TestFilterResults::test_universes",
"serpentTools/tests/test_ResultsReader.py::TestReadAllResults::test_universes",
"serpentTools/tests/test_ResultsReader.py::TestFilterResultsNoBurnup::test_uni... | [] | [
"serpentTools/tests/test_ResultsReader.py::TestBadFiles::test_emptyFile_noGcu",
"serpentTools/tests/test_ResultsReader.py::TestBadFiles::test_noResults",
"serpentTools/tests/test_ResultsReader.py::TestEmptyAttributes::test_emptyAttributes",
"serpentTools/tests/test_ResultsReader.py::TestGetUniv::test_allVarsN... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest pytest-cov pytest-xdist pytest-mock pytest-asyncio"
],
"pre_install": [
"apt-get update",
"apt-get instal... |
CORE-GATECH-GROUP__serpent-tools-289 | 85f47bd559fdc8b1bef3bdea7d64db4a1c5b6271 | diff --git a/docs/changelog.rst b/docs/changelog.rst
index 90d13c3..f7dec84 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -47,6 +47,9 @@ Incompatible API Changes
burnup step was one. All burnup indices are now decreased by
one. Similarly, if no burnup was present in the file, the
values of burnup... | [API] Detector tallies of a single bin are difficult to work with
## Summary of issue
When using a detector w/ a single bin, e.g. one group flux, the bin data in the output file is a single bin. Rather than a proper array, these are floats cast into array form. Indexing doesn't work, but you can get the "values" by co... | CORE-GATECH-GROUP/serpent-tools | diff --git a/serpentTools/tests/test_detector.py b/serpentTools/tests/test_detector.py
index 4b34ad3..6a79aee 100644
--- a/serpentTools/tests/test_detector.py
+++ b/serpentTools/tests/test_detector.py
@@ -9,25 +9,19 @@ from six import iteritems
from numpy import arange, array
from numpy.testing import assert_equal
... | [
"serpentTools/tests/test_detector.py::SingleTallyTester::test_singleTally"
] | [] | [
"serpentTools/tests/test_detector.py::CartesianDetectorTester::test_detectorGrids",
"serpentTools/tests/test_detector.py::CartesianDetectorTester::test_detectorIndex",
"serpentTools/tests/test_detector.py::CartesianDetectorTester::test_detectorSlice",
"serpentTools/tests/test_detector.py::CartesianDetectorTes... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.6",
"reqs_path... |
CORE-GATECH-GROUP__serpent-tools-306 | fb197b44d97ef3ae24d95662dcbdeb1cd9e9694e | diff --git a/serpentTools/utils/core.py b/serpentTools/utils/core.py
index e56468e..c1b35ad 100644
--- a/serpentTools/utils/core.py
+++ b/serpentTools/utils/core.py
@@ -4,7 +4,7 @@ Core utilities
from re import compile
-from numpy import array, ndarray
+from numpy import array, ndarray, fromiter
# Regular exp... | BUG ADFs in results file fail in numeric conversion
## Summary of issue
When reading a file with assembly discontinuity factors (ADFs), there is a string that serpentTools attempts to convert to a vector. This causes a ValueError
## Code for reproducing the issue
Add the following code to a section of a result file
... | CORE-GATECH-GROUP/serpent-tools | diff --git a/serpentTools/tests/test_ResultsReader.py b/serpentTools/tests/test_ResultsReader.py
index 44c9514..001408b 100644
--- a/serpentTools/tests/test_ResultsReader.py
+++ b/serpentTools/tests/test_ResultsReader.py
@@ -1,10 +1,11 @@
"""Test the results reader."""
from os import remove
+from shutil import copy... | [
"serpentTools/tests/test_ResultsReader.py::ResADFTester::test_adf",
"serpentTools/tests/test_utils.py::VectorConverterTester::test_listOfInts",
"serpentTools/tests/test_utils.py::VectorConverterTester::test_vecOfStr"
] | [] | [
"serpentTools/tests/test_ResultsReader.py::TestBadFiles::test_emptyAttributes",
"serpentTools/tests/test_ResultsReader.py::TestBadFiles::test_emptyFile_noGcu",
"serpentTools/tests/test_ResultsReader.py::TestBadFiles::test_noResults",
"serpentTools/tests/test_ResultsReader.py::TestGetUniv::test_allVarsNone",
... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.6",
"reqs_path": [
... |
CORE-GATECH-GROUP__serpent-tools-315 | 7ae29a333288609664c41979e8093923cbc95f50 | diff --git a/docs/changelog.rst b/docs/changelog.rst
index baa3628..2d7fdb2 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -16,6 +16,11 @@ Next
:meth:`~serpentTools.objects.CartesianDetector.meshPlot`, where
only data greater than ``thresh`` is plotted.
+Bug fixes
+---------
+
+* Tally data for det... | Detectors with time binning
## Summary of issue
Detectors with [time binning](http://serpent.vtt.fi/mediawiki/index.php/Input_syntax_manual#det_di) have 13 columns in the detector output file (an additional column indicating the time bin between the normal 1st and 2nd column) and thus get mixed up with the Serpent ... | CORE-GATECH-GROUP/serpent-tools | diff --git a/serpentTools/tests/test_detector.py b/serpentTools/tests/test_detector.py
index 6a79aee..a369455 100644
--- a/serpentTools/tests/test_detector.py
+++ b/serpentTools/tests/test_detector.py
@@ -334,6 +334,29 @@ class SingleTallyTester(TestCase):
self.assertEqual(self.detector.errors, 0.05187)
+c... | [
"serpentTools/tests/test_detector.py::TimeBinnedDetectorTester::test_timeDetector"
] | [] | [
"serpentTools/tests/test_detector.py::CartesianDetectorTester::test_detectorGrids",
"serpentTools/tests/test_detector.py::CartesianDetectorTester::test_detectorIndex",
"serpentTools/tests/test_detector.py::CartesianDetectorTester::test_detectorSlice",
"serpentTools/tests/test_detector.py::CartesianDetectorTes... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.6",
"reqs_path": [
... |
CORE-GATECH-GROUP__serpent-tools-346 | 09a5feab5b95f98aef4f7dc7b07edbf8e458f955 | diff --git a/docs/changelog.rst b/docs/changelog.rst
index 2c68415..5e70766 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -13,6 +13,12 @@ Next
* |HomogUniv| objects no longer automatically convert data to arrays
* Serpent 2.1.31 is the default version for :ref:`serpentVersion` setting
+Bug Fixes
+----... | BUG Burnup and day values wrong for results with multiple gcu, no burnup
## Summary of issue
When reading a result file with multiple homogenized universes and no burnup, the homogenized universes have incorrect values of burnup and days.
## Code for reproducing the issue
Reading a file with four homogenized univ... | CORE-GATECH-GROUP/serpent-tools | diff --git a/tests/test_results.py b/tests/test_results.py
new file mode 100644
index 0000000..057debd
--- /dev/null
+++ b/tests/test_results.py
@@ -0,0 +1,40 @@
+import re
+import os
+
+import pytest
+import serpentTools
+
+
+@pytest.fixture
+def multipleGcuNoBu():
+ origFile = serpentTools.data.getFile("InnerAssem... | [
"tests/test_results.py::test_multipleGcuNoBu"
] | [] | [] | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.6",
"reqs_path": [
... |
CORE-GATECH-GROUP__serpent-tools-377 | 3d11b98046c48eb8a1c625e1dd534bc3af0a7be6 | diff --git a/docs/changelog.rst b/docs/changelog.rst
index e651937..3862113 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -6,6 +6,18 @@
Changelog
=========
+.. _v0.9.2:
+
+0.9.2
+=====
+
+.. _v0.9.2-bugs:
+
+Bug Fixes
+---------
+
+* Detector reader can handle sequential detectors with very similar
+ ... | BUG DetectorReader misses detectors that start with and contain identical names
## Summary of issue
A colleague has a detector file with the following energy dependent detectors: `spectrum`, `spectrumA`, and `spectrumB`. The DetectorReader fails to capture the later two detectors, and messes up the data stored on `spe... | CORE-GATECH-GROUP/serpent-tools | diff --git a/tests/test_detectors.py b/tests/test_detectors.py
index f60aaeb..0462578 100644
--- a/tests/test_detectors.py
+++ b/tests/test_detectors.py
@@ -4,8 +4,10 @@ Test various aspects of the detectors classes
import numpy
import pytest
+import serpentTools
from serpentTools import detectors
+
@pytest.fix... | [
"tests/test_detectors.py::test_similarDetectors"
] | [] | [
"tests/test_detectors.py::testDetectorProperties",
"tests/test_detectors.py::testCartesianDetector[bins]",
"tests/test_detectors.py::testCartesianDetector[grids]",
"tests/test_detectors.py::testCartesianDetector[bare]",
"tests/test_detectors.py::testCartesianDetector[init]",
"tests/test_detectors.py::test... | [] | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.7",
"reqs_path": [
"requirements.txt"
],
"test_cmd": "pytest --... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.