initial creation

This commit is contained in:
2025-05-20 11:57:43 -04:00
commit c98b612926
8447 changed files with 1862526 additions and 0 deletions
@@ -0,0 +1,23 @@
#!/usr/bin/env python
from collections import namedtuple
import pytest
Person = namedtuple('Person', 'first_name last_name') # <1>
FIRST_NAME = "Guido"
LAST_NAME = "Von Rossum"
@pytest.fixture # <2>
def person():
"""
Return a 'Person' named tuple with fields 'first_name' and 'last_name'
"""
return Person(FIRST_NAME, LAST_NAME) # <3>
def test_first_name(person): # <4>
assert person.first_name == FIRST_NAME
def test_last_name(person): # <4>
assert person.last_name == LAST_NAME