Exemple #1
0
 def setUp(self):
     self.event = Event(
         id=249792023,
         name="January Event",
         time=1527344911000,
         status="upcoming",
         rsvp_limit=40,
         waitlist_count=10,
         yes_rsvp_count=40,
         announced=True,
         event_url=
         "https://www.example.com/Stockholm-Roleplaying-Guild/events/249792023/",
         venue={"name": "STORG Clubhouse"})
     self.member = Member(name="Dave", meetup_id=100001, slack_id="u19292")
     self.table = GameTable(number=1,
                            title="Awesome Game",
                            blurb="Long text goes here",
                            max_players=4,
                            players=["Dave", "John", "Jane"],
                            gm="Doe",
                            system="D&D")
     self.rsvp = Rsvp(venue="STORG Clubhouse",
                      response="yes",
                      answers=["My email is [email protected]"],
                      member={
                          "member_id": 100001,
                          "name": "Dave"
                      })
Exemple #2
0
 def check_circle_event(self, i):
     if (i.e is not None) and (i.e.x != self.x0):
         i.e.valid = False
     i.e = None
     if (i.pprev is None) or (i.pnext is None): return
     flag, x, o = self.circle(i.pprev.p, i.p, i.pnext.p)
     if flag and (x > self.x0):
         i.e = Event(x, o, i)
         self.event.push(i.e)