Skip to content

Commit

Permalink
chore: fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
clintval committed Sep 10, 2023
1 parent 5a5f307 commit 90d20a6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# caseless

[![Testing Status](https://github.com/clintval/caseless/actions/workflows/test.yml/badge.svg)](https://github.com/clintval/caseless/actions/workflows/test.yml)
[![PyPi Release](https://badge.fury.io/py/caseless.svg)](https://badge.fury.io/py/caseless)
[![Python Versions](https://img.shields.io/pypi/pyversions/caseless.svg)](https://pypi.python.org/pypi/caseless/)
[![MyPy Checked](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)

A caseless typed dictionary in Python

```console
Expand All @@ -11,11 +17,8 @@ Features:
- Caseless key matching
- Typing for support in typed codebases

Read the documentation at: [caseless.readthedocs.io](caseless.readthedocs.io)

```python
from caseless import CaselessDict

CaselessDict({1: 2, "lower": "UPPER"}) != CaselessDict({3: 4, "LOWER": "UPPER"})

```
CaselessDict({"lower": "my-value"}) == CaselessDict({"LOWER": "my-value"})
```
8 changes: 4 additions & 4 deletions tests/test_caselessdict.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ def test__copy__(self):
assert mapping.get("LOWER") == copy(mapping).get("lower")

def test__eq__(self):
CaselessDict({1: 2}) == CaselessDict({1: 2})
CaselessDict({1: 2}) != CaselessDict({3: 4})
CaselessDict({"lower": "UPPER"}) == CaselessDict({"LOWER": "UPPER"})
CaselessDict({1: 2, "lower": "UPPER"}) != CaselessDict({3: 4, "LOWER": "UPPER"})
assert CaselessDict({1: 2}) == CaselessDict({1: 2})
assert CaselessDict({1: 2}) != CaselessDict({3: 4})
assert CaselessDict({"lower": "UPPER"}) == CaselessDict({"LOWER": "UPPER"})
assert CaselessDict({1: 2, "lower": "UPPER"}) != CaselessDict({3: 4, "LOWER": "UPPER"})

def test__getitem__(self):
assert CaselessDict({1: 2})[1] == 2
Expand Down

0 comments on commit 90d20a6

Please sign in to comment.