/earth

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

Primary LanguagePythonMIT LicenseMIT

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.