Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
dpdani committed Oct 26, 2023
1 parent 27ab7a3 commit 6630531
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
2 changes: 2 additions & 0 deletions src/cereggii/atomic_dict/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
try:
from cereggii import _atomic_dict
except ImportError: # building sdist (without compiled modules)

class AtomicDict:
def __init__(self):
print("dummy")

else:
AtomicDict = _atomic_dict.AtomicDict

Expand Down
19 changes: 12 additions & 7 deletions tests/test_atomic_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@

def test_init():
AtomicDict()
AtomicDict({
"spam": 42,
3: 4,
})
AtomicDict(
{
"spam": 42,
3: 4,
}
)
AtomicDict(spam=42, cheese=True)
AtomicDict({
"bird": "norwegian blue",
}, bird="spam")
AtomicDict(
{
"bird": "norwegian blue",
},
bird="spam",
)
AtomicDict(initial_size=120)


Expand Down

0 comments on commit 6630531

Please sign in to comment.