[self-tests] several failures against toml-test 1.1.0
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- python
- Lĩnh vực
- testing-qa
Hướng nghiên cứu
Bắt đầu với tests/test_toml_tests.py và phiên bản submodule toml-test được đề cập trong báo cáo. Chạy bộ kiểm thử với toml-test 1.1.0 và kiểm tra bốn lỗi invalid_decode liên quan đến dotted keys và carriage returns. Được xem là hoàn tất khi vấn đề tương thích đã được giải quyết và toàn bộ self-test suite chạy thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I've updated toml-test for my distro (1.1.0).
after that tomlkit's tests suite fails with:
=================================== FAILURES ===================================
_____________ test_invalid_decode[table/append-with-dotted-keys-2] _____________
invalid_decode_case = {'toml': '# This is the same issue as in injection-1.toml, except that nests one level\n# deeper. See that file for a ...= 9\n\n[a]\n b.c.d.k.t = "Using dotted keys to add to [a.b.c.d] after explicitly defining it above is not allowed"\n'}
def test_invalid_decode(invalid_decode_case):
> with pytest.raises(TOMLKitError):
E Failed: DID NOT RAISE <class 'tomlkit.exceptions.TOMLKitError'>
tests/test_toml_tests.py:55: Failed
_____________ test_invalid_decode[table/append-with-dotted-keys-1] _____________
invalid_decode_case = {'toml': '# First a.b.c defines a table: a.b.c = {z=9}\n#\n# Then we define a.b.c.t = "str" to add a str to the above ...\n z = 9\n\n[a]\n b.c.t = "Using dotted keys to add to [a.b.c] after explicitly defining it above is not allowed"\n'}
def test_invalid_decode(invalid_decode_case):
> with pytest.raises(TOMLKitError):
E Failed: DID NOT RAISE <class 'tomlkit.exceptions.TOMLKitError'>
tests/test_toml_tests.py:55: Failed
___________________ test_invalid_decode[control/comment-cr] ____________________
invalid_decode_case = {'toml': 'comment-cr = "Carriage return in comment" # \na=1\n'}
def test_invalid_decode(invalid_decode_case):
> with pytest.raises(TOMLKitError):
E Failed: DID NOT RAISE <class 'tomlkit.exceptions.TOMLKitError'>
tests/test_toml_tests.py:55: Failed
_____________________ test_invalid_decode[control/bare-cr] _____________________
invalid_decode_case = {'toml': '# The following line contains a single carriage return control character\n\n'}
def test_invalid_decode(invalid_decode_case):
> with pytest.raises(TOMLKitError):
E Failed: DID NOT RAISE <class 'tomlkit.exceptions.TOMLKitError'>
tests/test_toml_tests.py:55: Failed
=========================== short test summary info ============================
FAILED tests/test_toml_tests.py::test_invalid_decode[table/append-with-dotted-keys-2]
FAILED tests/test_toml_tests.py::test_invalid_decode[table/append-with-dotted-keys-1]
FAILED tests/test_toml_tests.py::test_invalid_decode[control/comment-cr] - Fa...
FAILED tests/test_toml_tests.py::test_invalid_decode[control/bare-cr] - Faile...
======================== 4 failed, 800 passed in 9.35s =========================
tomlkit 0.9.0.
I understand that this project submodules toml-test (1.0.0 atm).
- Ngôn ngữ chính
- Python
- Star
- 850
- Fork
- 163
- Merge trung bình
- 13 phút
- Pull request đã merge (30 ngày)
- 2
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của python-poetry/tomlkit
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
python-poetry/tomlkit#546 · 2 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
python-poetry/tomlkit#603 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
python-poetry/tomlkit#580 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
python-poetry/tomlkit#577 ·
-
Looking for a co-maintainer Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
python-poetry/tomlkit#574 · 5 bình luận ·
Tất cả issue của python-poetry/tomlkit
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
xinnan-tech/xiaozhi-fde-talk#263 ·
-
rules
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
huggingface/Repo2RLEnv#163 · 1 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
huggingface/sentence-transformers#4074 ·
-
comp/dashboard invalid P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
NousResearch/hermes-agent#121143 ·