Skip to content
Example Python project for my talk: Customizing your pytest test suite 🌍
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
earth
tests
.gitignore
LICENSE
README.md
example1.py
requirements.txt

README.md

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.

You can’t perform that action at this time.