forked from github.com/pypiserver
d886bc2eba
* Cleanup setup.py * remove explicit inheritance from object * convert most string interpolations to f-strings Co-authored-by: Pelle Koster <pelle.koster@nginfra.nl>
11 lines
236 B
Python
11 lines
236 B
Python
"""Test doubles."""
|
|
|
|
|
|
class Namespace:
|
|
"""Simple namespace."""
|
|
|
|
def __init__(self, **kwargs):
|
|
"""Instantiate the namespace with the provided kwargs."""
|
|
for k, v in kwargs.items():
|
|
setattr(self, k, v)
|