Skip to content

Example Python project for my talk: Customizing your pytest test suite 🌍

License

Notifications You must be signed in to change notification settings

hackebrot/earth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

earth

Example Python project for my talk: Customizing your pytest test suite 🌍

Requirements

The earth library requires Python 3.7 and attrs >= 18.2.

Example Usage

from earth import adventurers, Event, Months


def main():
    print("Hello adventurers! πŸ•")
    print("-" * 40)

    friends = [
        adventurers.new_frog("Bruno"),
        adventurers.new_lion("Michael"),
        adventurers.new_koala("Brianna"),
        adventurers.new_tiger("Julia"),
    ]

    event = Event("PyCon US", "North America", Months.MAY)

    for adventurer in friends:
        event.invite(adventurer)

    print("-" * 40)

    for attendee in event.attendees:
        attendee.get_ready()
        attendee.travel_to(event)

    print("-" * 40)

    event.start()


if __name__ == "__main__":
    main()

Community

Please note that earth is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

About

Example Python project for my talk: Customizing your pytest test suite 🌍

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages