Dataset Viewer
Auto-converted to Parquet Duplicate
repo
string
pull_number
int64
instance_id
string
issue_numbers
list
base_commit
string
patch
string
test_patch
string
problem_statement
string
hints_text
string
created_at
timestamp[s]
language
string
label
string
getlogbook/logbook
183
getlogbook__logbook-183
[ "94" ]
1d999a784d0d8f5f7423f25c684cc1100843ccc5
diff --git a/logbook/handlers.py b/logbook/handlers.py --- a/logbook/handlers.py +++ b/logbook/handlers.py @@ -20,6 +20,7 @@ except ImportError: from sha import new as sha1 import traceback +import collections from datetime import datetime, timedelta from collections import deque from textwrap import dedent @...
diff --git a/tests/test_mail_handler.py b/tests/test_mail_handler.py --- a/tests/test_mail_handler.py +++ b/tests/test_mail_handler.py @@ -7,6 +7,11 @@ from .utils import capturing_stderr_context, make_fake_mail_handler +try: + from unittest.mock import Mock, call, patch +except ImportError: + from mock impo...
SMTP Handler STARTTLS Due to the lack of documentation on this handler it took a little digging to work out how to get it to work... One thing that confused me was the "secure" argument. Python SMTPLib starttls() accepts two optional values: a keyfile and certfile - but these are only required for _checking_ the ident...
You're right. A simple solution is to use `secure = ()`, but I agree it has to be better documented.
2015-12-03T01:44:29
python
Easy
rigetti/pyquil
399
rigetti__pyquil-399
[ "398", "398" ]
d6a0e29b2b1a506a48977a9d8432e70ec699af34
diff --git a/pyquil/parameters.py b/pyquil/parameters.py --- a/pyquil/parameters.py +++ b/pyquil/parameters.py @@ -31,9 +31,11 @@ def format_parameter(element): out += repr(r) if i == 1: - out += 'i' + assert np.isclose(r, 0, atol=1e-14) + out = 'i' elif...
diff --git a/pyquil/tests/test_parameters.py b/pyquil/tests/test_parameters.py --- a/pyquil/tests/test_parameters.py +++ b/pyquil/tests/test_parameters.py @@ -14,6 +14,8 @@ def test_format_parameter(): (1j, 'i'), (0 + 1j, 'i'), (-1j, '-i'), + (1e-15 + 1j, 'i'), + (1e-15 - 1j, '-...
DEFGATEs are not correct There is a problem with DEFGATEs that has manifested itself in the `phase_estimation` module of Grove (brought to our attention here: https://github.com/rigetticomputing/grove/issues/145). I have traced the problem to commit d309ac11dabd9ea9c7ffa57dd26e68b5e7129aa9 Each of the below tes...
2018-04-20T17:39:41
python
Hard
marcelotduarte/cx_Freeze
2,220
marcelotduarte__cx_Freeze-2220
[ "2210" ]
639141207611f0edca554978f66b1ed7df3d8cdf
diff --git a/cx_Freeze/winversioninfo.py b/cx_Freeze/winversioninfo.py --- a/cx_Freeze/winversioninfo.py +++ b/cx_Freeze/winversioninfo.py @@ -12,16 +12,16 @@ __all__ = ["Version", "VersionInfo"] +# types +CHAR = "c" +WCHAR = "ss" +WORD = "=H" +DWORD = "=L" + # constants RT_VERSION = 16 ID_VERSION = 1 -# type...
diff --git a/tests/test_winversioninfo.py b/tests/test_winversioninfo.py --- a/tests/test_winversioninfo.py +++ b/tests/test_winversioninfo.py @@ -9,7 +9,12 @@ import pytest from generate_samples import create_package, run_command -from cx_Freeze.winversioninfo import Version, VersionInfo, main_test +from cx_Freeze...
Cannot freeze python-3.12 code on Windows 11 **Describe the bug** Cannot freeze python 3.12 code on Windows 11 Pro amd64 using cx_Freeze 6.16.aplha versions, last I tried is 20. This was working fine three weeks ago, but suddenly it started to fail like this: ``` copying C:\Users\jmarcet\scoop\apps\openjdk17\17.0.2...
Please check the version installed of cx_Freeze and setuptools with `pip list`. Successfully installed aiofiles-23.2.1 aiohttp-3.9.1 aiosignal-1.3.1 asyncio-3.4.3 asyncio_dgram-2.1.2 attrs-23.2.0 cx-Logging-3.1.0 **cx_Freeze-6.16.0.dev9** defusedxml-0.8.0rc2 filelock-3.13.1 frozenlist-1.4.1 httptools-0.6.1 idna-3.6 li...
2024-01-25T06:06:14
python
Easy
pytest-dev/pytest-django
1,108
pytest-dev__pytest-django-1108
[ "1106" ]
6cf63b65e86870abf68ae1f376398429e35864e7
diff --git a/pytest_django/plugin.py b/pytest_django/plugin.py --- a/pytest_django/plugin.py +++ b/pytest_django/plugin.py @@ -362,8 +362,15 @@ def _get_option_with_source( @pytest.hookimpl(trylast=True) def pytest_configure(config: pytest.Config) -> None: - # Allow Django settings to be configured in a user pyt...
diff --git a/tests/test_manage_py_scan.py b/tests/test_manage_py_scan.py --- a/tests/test_manage_py_scan.py +++ b/tests/test_manage_py_scan.py @@ -144,6 +144,37 @@ def test_django_project_found_invalid_settings_version( result.stdout.fnmatch_lines(["*usage:*"]) +@pytest.mark.django_project(project_root="django...
`pytest --help` fails in a partially configured app having a difficult time narrowing down a minimal example -- the repo involved is https://github.com/getsentry/sentry I have figured out _why_ it is happening and the stacktrace for it: <summary>full stacktrace with error <details> ```console $ pytest --he...
That’s a fun one! Hopefully using `config.stash.get()` calls and acting only on non-`None` values will be enough to fix the issue... here's a minimal case: ```console ==> t.py <== WAT = 1 ==> tests/__init__.py <== ==> tests/conftest.py <== import os def pytest_configure(): os.environ.setdefault('DJA...
2024-01-29T14:22:15
python
Hard
marcelotduarte/cx_Freeze
2,597
marcelotduarte__cx_Freeze-2597
[ "2596" ]
df2c8aef8f92da535a1bb657706ca4496b1c3352
diff --git a/cx_Freeze/finder.py b/cx_Freeze/finder.py --- a/cx_Freeze/finder.py +++ b/cx_Freeze/finder.py @@ -537,7 +537,10 @@ def _replace_package_in_code(module: Module) -> CodeType: # Insert a bytecode to set __package__ as module.parent.name codes = [LOAD_CONST, pkg_const_index, STORE_NAM...
diff --git a/samples/scipy/test_scipy.py b/samples/scipy/test_scipy.py --- a/samples/scipy/test_scipy.py +++ b/samples/scipy/test_scipy.py @@ -1,8 +1,6 @@ """A simple script to demonstrate scipy.""" -from scipy.stats import norm +from scipy.spatial.transform import Rotation if __name__ == "__main__": - print( ...
cx-Freeze - No module named 'scipy._lib.array_api_compat._aliases' **Prerequisite** This was previously reported in the closed issue #2544, where no action was taken. I include a minimal script that produces the problem for me. **Describe the bug** When running the compiled executable, i get the following error: ...
Changing the config to `"zip_exclude_packages": ['scipy']`, things work. I assume it should work just fine/the same from the zip file. This will be my workaround for now
2024-10-02T02:42:26
python
Easy
rigetti/pyquil
1,149
rigetti__pyquil-1149
[ "980" ]
07db509c5293df2b4624ca6ac409e4fce2666ea1
diff --git a/pyquil/device/_isa.py b/pyquil/device/_isa.py --- a/pyquil/device/_isa.py +++ b/pyquil/device/_isa.py @@ -13,8 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. ###########################################################################...
diff --git a/pyquil/device/tests/test_device.py b/pyquil/device/tests/test_device.py --- a/pyquil/device/tests/test_device.py +++ b/pyquil/device/tests/test_device.py @@ -55,10 +55,10 @@ def test_isa(isa_dict): Qubit(id=3, type="Xhalves", dead=True), ], edges=[ - Edge(targets=[...
Change the namedtuples in device.py to dataclasses As discussed in #961, using `dataclasses` instead of `namedtuples` would greatly improve readability, understanding, and use of the structures in the `device` module.
2020-01-02T19:58:40
python
Hard
pallets-eco/flask-wtf
512
pallets-eco__flask-wtf-512
[ "511" ]
b86d5c6516344f85f930cdd710b14d54ac88415c
diff --git a/src/flask_wtf/__init__.py b/src/flask_wtf/__init__.py --- a/src/flask_wtf/__init__.py +++ b/src/flask_wtf/__init__.py @@ -5,4 +5,4 @@ from .recaptcha import RecaptchaField from .recaptcha import RecaptchaWidget -__version__ = "1.0.0" +__version__ = "1.0.1.dev0" diff --git a/src/flask_wtf/form.py b/src/...
diff --git a/tests/test_recaptcha.py b/tests/test_recaptcha.py --- a/tests/test_recaptcha.py +++ b/tests/test_recaptcha.py @@ -80,7 +80,8 @@ def test_render_custom_args(app): app.config["RECAPTCHA_DATA_ATTRS"] = {"red": "blue"} f = RecaptchaForm() render = f.recaptcha() - assert "?key=%28value%29" in ...
Update to Request.get_json() in Werkzeug 2.1.0 breaks empty forms Similar to #510 - the get_json() change in Werkzeug 2.1.0 https://github.com/pallets/werkzeug/issues/2339 breaks any empty submitted form (not json). From form.py: ``` def wrap_formdata(self, form, formdata): if formdata is _Auto: ...
2022-03-31T15:26:26
python
Easy
pytest-dev/pytest-django
979
pytest-dev__pytest-django-979
[ "978" ]
b3b679f2cab9dad70e318f252751ff7659b951d1
diff --git a/pytest_django/fixtures.py b/pytest_django/fixtures.py --- a/pytest_django/fixtures.py +++ b/pytest_django/fixtures.py @@ -167,7 +167,7 @@ def _django_db_helper( serialized_rollback, ) = False, False, None, False - transactional = transactional or ( + transactional = transactio...
diff --git a/tests/test_database.py b/tests/test_database.py --- a/tests/test_database.py +++ b/tests/test_database.py @@ -287,11 +287,16 @@ def test_reset_sequences_disabled(self, request) -> None: marker = request.node.get_closest_marker("django_db") assert not marker.kwargs - @pytest.mark.djan...
4.5.1: reset_sequences=True fails on MariaDB/MySQL Firstly, thanks for maintaining such a powerful and useful testing library for Django. On to the bug: - OS: Windows 10 - Python: 3.9.1 - pytest-6.2.5 - py-1.11.0 - pluggy-1.0.0 - Django: 3.2.10 Example: @pytest.mark.django_db(reset_sequences=True) ...
It's missing `transaction=True`. Needs a better error message. Did it work on pytest-django 4.4.0? If yes, then I'll make it work again. Thanks for the fast response! Yes it works on 4.5.0
2021-12-07T14:17:20
python
Easy
rigetti/pyquil
177
rigetti__pyquil-177
[ "176" ]
e10881922b799ab015f750d07156f03b2bca7046
diff --git a/pyquil/kraus.py b/pyquil/kraus.py --- a/pyquil/kraus.py +++ b/pyquil/kraus.py @@ -50,9 +50,8 @@ def _create_kraus_pragmas(name, qubit_indices, kraus_ops): :rtype: str """ - prefix = "PRAGMA ADD-KRAUS {} {}".format(name, " ".join(map(str, qubit_indices))) pragmas = [Pragma("ADD-KRAUS", -...
diff --git a/pyquil/tests/test_quil.py b/pyquil/tests/test_quil.py --- a/pyquil/tests/test_quil.py +++ b/pyquil/tests/test_quil.py @@ -520,11 +520,11 @@ def test_kraus(): ret = pq.out() assert ret == """X 0 -PRAGMA ADD-KRAUS 0 "(0.0+0.0i 1.0+0.0i 1.0+0.0i 0.0+0.0i)" -PRAGMA ADD-KRAUS 0 "(0.0+0.0i 0.0+0.0i 0...
`ADD-KRAUS` does not pass the gate name to `Pragma` constructor As is `ADD-KRAUS` is broken, but the fix is easy.
2017-11-09T01:17:37
python
Hard
pytest-dev/pytest-django
323
pytest-dev__pytest-django-323
[ "322" ]
274efdfd48e806830e08d003d93af1e6070eb2b3
diff --git a/pytest_django/plugin.py b/pytest_django/plugin.py --- a/pytest_django/plugin.py +++ b/pytest_django/plugin.py @@ -539,6 +539,20 @@ def _template_string_if_invalid_marker(request): else: dj_settings.TEMPLATE_STRING_IF_INVALID.fail = False + +@pytest.fixture(autouse=True, scop...
diff --git a/tests/test_environment.py b/tests/test_environment.py --- a/tests/test_environment.py +++ b/tests/test_environment.py @@ -3,9 +3,12 @@ import os import pytest +from django.contrib.sites.models import Site +from django.contrib.sites import models as site_models from django.core import mail from django...
Tests with django sites framework onetoonefield causes unexpected behavior Assume you have a model: ``` class Customer(models.Model): site = models.OneToOneField('sites.Site') ``` And when using the sites middleware, without setting SITE_ID, the site is looked up and cached based on the requests host information:...
2016-04-01T13:38:30
python
Easy
pytest-dev/pytest-django
1,189
pytest-dev__pytest-django-1189
[ "1188" ]
6d5c272519037031f0b68d78dca44727b860d65e
diff --git a/pytest_django/fixtures.py b/pytest_django/fixtures.py --- a/pytest_django/fixtures.py +++ b/pytest_django/fixtures.py @@ -129,8 +129,8 @@ def _get_databases_for_test(test: pytest.Item) -> tuple[Iterable[str], bool]: test_cls = getattr(test, "cls", None) if test_cls and issubclass(test_cls, Tran...
diff --git a/tests/test_database.py b/tests/test_database.py --- a/tests/test_database.py +++ b/tests/test_database.py @@ -432,6 +432,28 @@ def test_db_access_3(self): ) +def test_django_testcase_multi_db(django_pytester: DjangoPytester) -> None: + """Test that Django TestCase multi-db support works.""" + +...
django.test.TestCase with multiples database doesn't create secondary db in 4.11.0 With the 4.11.0 version, if a Django TestCase is setup to use multiples database with the `databases` attribute, only the default database is created on runtime. ``` class Test(TestCase): databases = {"default", "db2"} ``` Trying ...
Ouch, silly mistake! I will fix and do a patch release. Thanks for the report.
2025-04-03T18:40:04
python
Hard
rigetti/pyquil
1,492
rigetti__pyquil-1492
[ "1486" ]
76c95c2b5ccdca93cce6f2b972dafda5a680ee13
diff --git a/pyquil/api/_abstract_compiler.py b/pyquil/api/_abstract_compiler.py --- a/pyquil/api/_abstract_compiler.py +++ b/pyquil/api/_abstract_compiler.py @@ -102,12 +102,15 @@ def __init__( self._timeout = timeout self._client_configuration = client_configuration or QCSClientConfiguration.load(...
diff --git a/test/unit/conftest.py b/test/unit/conftest.py --- a/test/unit/conftest.py +++ b/test/unit/conftest.py @@ -1,6 +1,5 @@ import json import os -from pathlib import Path from typing import Dict, Any import numpy as np diff --git a/test/unit/test_compiler_client.py b/test/unit/test_compiler_client.py --- ...
Get version info requests to quilc should go through the QCS SDK Currently, the qcs-sdk handles all external requests to `quilc` _except_ for getting version info. We need add a method for getting that data to QCS SDK Rust (see [this issue](https://github.com/rigetti/qcs-sdk-rust/issues/205)), then follow-up and use it...
Good catch!
2022-11-03T16:56:26
python
Hard
pallets-eco/flask-wtf
264
pallets-eco__flask-wtf-264
[ "227" ]
f306c360f74362be3aac89c43cdc7c37008764fb
diff --git a/flask_wtf/_compat.py b/flask_wtf/_compat.py --- a/flask_wtf/_compat.py +++ b/flask_wtf/_compat.py @@ -6,9 +6,11 @@ if not PY2: text_type = str string_types = (str,) + from urllib.parse import urlparse else: text_type = unicode string_types = (str, unicode) + from urlparse import...
diff --git a/tests/base.py b/tests/base.py --- a/tests/base.py +++ b/tests/base.py @@ -1,10 +1,12 @@ from __future__ import with_statement -from flask import Flask, render_template, jsonify -from wtforms import StringField, HiddenField, SubmitField -from wtforms.validators import DataRequired +from unittest import T...
Make it easier to access a CSRF token in automated tests If you want to run your automated tests with CSRF enabled (which is a good idea if it's enabled in production), there's no good built-in way to do so. Even the tests for this project [use regular expressions to parse the CSRF token out of the page](https://github...
2016-10-13T04:41:57
python
Hard
rigetti/pyquil
421
rigetti__pyquil-421
[ "384" ]
9612be90f91405ecbc089b3496f1c85d9c177cc8
diff --git a/pyquil/noise.py b/pyquil/noise.py --- a/pyquil/noise.py +++ b/pyquil/noise.py @@ -296,22 +296,51 @@ def damping_after_dephasing(T1, T2, gate_time): # You can only apply gate-noise to non-parametrized gates or parametrized gates at fixed parameters. NO_NOISE = ["RZ"] -NOISY_GATES = { - ("I", ()): (np...
diff --git a/pyquil/tests/test_noise.py b/pyquil/tests/test_noise.py --- a/pyquil/tests/test_noise.py +++ b/pyquil/tests/test_noise.py @@ -208,3 +208,17 @@ def test_apply_noise_model(): assert i.command in ['ADD-KRAUS', 'READOUT-POVM'] elif isinstance(i, Gate): assert i.name in NO_NOI...
Adding decoherence noise models fails when `RX` angles are perturbed from +/-pi or +/-pi/2 Two ways to fix this: 1. Quick: allow angles to deviate from pi within some tolerance (e.g., 10^{-10}) that is much stricter than any anticipated gate error. 2. Slow: actually implement a mechanism to translate arbitrary pyquil...
@mpharrigan what are your thoughts? Is this an issue in practice? Can we do quick in the near term and slow eventually in the context of noise models for arbitrary gates Yeah, it was an issue for me today when I tried to add noise after compiling the program an external user wants to simulate with noise. I am happy to ...
2018-05-03T19:00:14
python
Hard
marcelotduarte/cx_Freeze
2,759
marcelotduarte__cx_Freeze-2759
[ "2738" ]
aee3a1a3195a358e814c4fcbdc116e192132bbf5
diff --git a/cx_Freeze/_compat.py b/cx_Freeze/_compat.py --- a/cx_Freeze/_compat.py +++ b/cx_Freeze/_compat.py @@ -7,6 +7,7 @@ from pathlib import Path __all__ = [ + "ABI_THREAD", "BUILD_EXE_DIR", "EXE_SUFFIX", "EXT_SUFFIX", @@ -21,8 +22,9 @@ PLATFORM = sysconfig.get_platform() PYTHON_VERSION ...
diff --git a/tests/test_executables.py b/tests/test_executables.py --- a/tests/test_executables.py +++ b/tests/test_executables.py @@ -12,6 +12,7 @@ from cx_Freeze import Executable from cx_Freeze._compat import ( + ABI_THREAD, BUILD_EXE_DIR, EXE_SUFFIX, IS_MACOS, @@ -241,14 +242,18 @@ def test_ex...
Replace _PyMem_RawStrdup with strdup Per https://github.com/python/cpython/issues/127991#issuecomment-2547810583 Fixes #2568
2024-12-30T01:37:43
python
Easy
marcelotduarte/cx_Freeze
2,583
marcelotduarte__cx_Freeze-2583
[ "2572" ]
cf4dc4997e54208d90d4bdc419276da6af39dbc4
diff --git a/cx_Freeze/executable.py b/cx_Freeze/executable.py --- a/cx_Freeze/executable.py +++ b/cx_Freeze/executable.py @@ -116,7 +116,7 @@ def init_module_name(self) -> str: :rtype: str """ - return f"{self._internal_name}__init__" + return f"__init__{self._internal_name}" @...
diff --git a/tests/test_cli.py b/tests/test_cli.py --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -10,16 +10,16 @@ import pytest from generate_samples import create_package, run_command +from cx_Freeze._compat import BUILD_EXE_DIR, EXE_SUFFIX + if TYPE_CHECKING: from pathlib import Path -SUFFIX = ".exe"...
Why is Executable target_name has to be A valid identifier? In https://github.com/marcelotduarte/cx_Freeze/blob/7.2.1/cx_Freeze/executable.py#L234 target_name is required to be a valid identifier. Is there any reason for that? I removed that condition and it seems to work fine. my target_name="6578e4ecf0464d7fb25...
Maybe a regression - issue #884 fixed by #889
2024-09-23T03:32:58
python
Easy
rigetti/pyquil
745
rigetti__pyquil-745
[ "744" ]
98dec8330958af4723b7befb51345cea182a886c
diff --git a/pyquil/noise.py b/pyquil/noise.py --- a/pyquil/noise.py +++ b/pyquil/noise.py @@ -324,10 +324,24 @@ def damping_after_dephasing(T1, T2, gate_time): :param float gate_time: The gate duration. :return: A list of Kraus operators. """ - damping = damping_kraus_map(p=1 - np.exp(-float(gate_tim...
diff --git a/pyquil/tests/test_noise.py b/pyquil/tests/test_noise.py --- a/pyquil/tests/test_noise.py +++ b/pyquil/tests/test_noise.py @@ -70,7 +70,7 @@ def test_damping_after_dephasing(): dephasing = dephasing_kraus_map(p=.5 * (1 - np.exp(-.2))) ks_ref = combine_kraus_maps(damping, dephasing) - ks_actua...
T2 noise model is wrong when T1 is finite In particular, a damping noise model with T1 will lead to a contribution to the dephasing rate 1/T2 that equals 1/(2*T1).
2018-12-21T19:49:19
python
Hard
pytest-dev/pytest-django
231
pytest-dev__pytest-django-231
[ "228" ]
1f279deb0d46c4f7dd161945b50f6e2add85793a
diff --git a/pytest_django/plugin.py b/pytest_django/plugin.py --- a/pytest_django/plugin.py +++ b/pytest_django/plugin.py @@ -51,6 +51,9 @@ def pytest_addoption(parser): group._addoption('--nomigrations', action='store_true', dest='nomigrations', default=False, help='Di...
diff --git a/tests/test_django_settings_module.py b/tests/test_django_settings_module.py --- a/tests/test_django_settings_module.py +++ b/tests/test_django_settings_module.py @@ -244,6 +244,31 @@ def test_debug_is_false(): assert r.ret == 0 +def test_debug_no_force(testdir, monkeypatch): + monkeypatch.delen...
why DEBUG is hardcoded to False? Hi https://github.com/pytest-dev/pytest-django/blob/master/pytest_django/plugin.py#L239 this looks not too flexible I tried a lot of things before i found this hardcode - i needed to understand why my liveserver fails, and it returned just standard 500 instead of debug page, and debug...
IIRC the setup with Django's testrunner is also False, to reflect what would be used in production, but I am not certain. :+1: for a way to configure/override this. ok i'll prepare PR
2015-04-10T13:35:34
python
Easy
rigetti/pyquil
1,477
rigetti__pyquil-1477
[ "1476" ]
57f0501c2d2bc438f983f81fd5793dc969a04ed3
diff --git a/pyquil/quil.py b/pyquil/quil.py --- a/pyquil/quil.py +++ b/pyquil/quil.py @@ -874,9 +874,9 @@ def __add__(self, other: InstructionDesignator) -> "Program": p = Program() p.inst(self) p.inst(other) - p._calibrations = self.calibrations - p._waveforms = self.waveforms...
diff --git a/test/unit/test_program.py b/test/unit/test_program.py --- a/test/unit/test_program.py +++ b/test/unit/test_program.py @@ -56,3 +56,31 @@ def test_parameterized_readout_symmetrization(): p += RX(symmetrization[0], 0) p += RX(symmetrization[1], 1) assert parameterized_readout_symmetrization([0...
Adding two `Program`s together unexpectedly mutates first `Program` Pre-Report Checklist -------------------- - [x] I am running the latest versions of pyQuil and the Forest SDK - [x] I checked to make sure that this bug has not already been reported Issue Description ----------------- Summary: when adding ...
2022-09-20T22:23:51
python
Hard
pytest-dev/pytest-django
881
pytest-dev__pytest-django-881
[ "513" ]
bb9e86e0c0141a30d07078f71b288026b6e583d2
diff --git a/pytest_django/fixtures.py b/pytest_django/fixtures.py --- a/pytest_django/fixtures.py +++ b/pytest_django/fixtures.py @@ -304,7 +304,7 @@ def admin_client(db, admin_user): from django.test.client import Client client = Client() - client.login(username=admin_user.username, password="password"...
diff --git a/tests/test_fixtures.py b/tests/test_fixtures.py --- a/tests/test_fixtures.py +++ b/tests/test_fixtures.py @@ -49,6 +49,17 @@ def test_admin_client_no_db_marker(admin_client): assert force_str(resp.content) == "You are an admin" +# For test below. +@pytest.fixture +def existing_admin_user(django_us...
admin_client is not checking for login success `client.login` inside `admin_client` can return `False` in the case when there's an existing admin user with a password set to something other than `'password'`. Perhaps, `admin_client` should use `force_login` instead?
Seems sensible Can you provide a failing test and fix in a PR? Sure, I'll do that in the next couple of days.
2020-10-09T12:42:31
python
Easy
End of preview. Expand in Data Studio

Dataset Summary

Multi-Docker-Eval is a multi-language, multi-dimensional benchmark designed to rigorously evaluate the capability of Large Language Model (LLM)-based agents in automating a critical yet underexplored task: constructing executable Docker environments for real-world software repositories.

How to Use

from datasets import load_dataset
ds = load_dataset('litble/Multi-Docker-Eval')

Dataset Structure

The data format of Multi-Docker-Eval is directly compatible with the swe-factory and RepoLaunch frameworks.

Field name Type Description
instance_id str A formatted instance identifier, usually as repo_owner__repo_name-PR-number.
repo str The repository owner/name identifier from GitHub.
pull_number int64 The GitHub pull request number that contains the solution (patch and test_patch).
issue_numbers list(str) A list of the GitHub issue numbers that are addressed and resolved by this pull request.
base_commit str The commit hash of the repository representing the HEAD of the repository before the solution PR is applied.
patch str The gold patch, the patch generated by the PR (minus test-related code), that resolved the issue.
test_patch str A test-file patch that was contributed by the solution PR.
problem_statement str The issue title and body.
hints_text str Comments made on the issue prior to the creation of the solution PR’s first commit creation date.
created_at timestamp[s] The creation date of the pull request.
language str The programming language of the repository.
label str Classification of environmental configuration difficulty (Easy/Hard).
Downloads last month
21