You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
268 B

2 years ago
  1. from fe import conf
  2. from fe.access import buyer, auth
  3. def register_new_buyer(user_id, password) -> buyer.Buyer:
  4. a = auth.Auth(conf.URL)
  5. code = a.register(user_id, password)
  6. assert code == 200
  7. s = buyer.Buyer(conf.URL, user_id, password)
  8. return s