コード例 #1
0
 def setUp(self):
     super(TestDiscountCoupon, self).setUp()
     # Initialize common variables
     self.course_info = get_wl_course_info(org=COURSE_ORG,
                                           num=COURSE_NUMBER,
                                           run=COURSE_RUN)
     self.course_id = str(get_course_key(self.course_info))
     self.course_title = self.course_info["display_name"]
     self.course_price = DEFAULT_COURSE_PRICE
     self.total_price = DEFAULT_COURSE_PRICE
     self.stock_record_id = self.ecommerce_api.get_stock_record_id(
         self.course_id, self.course_title)
コード例 #2
0
 def setUp(self):
     """
     Initialize all objects
     """
     super(TestEnrollmentOtto, self).setUp()
     self.course_info = get_wl_course_info(org=COURSE_ORG,
                                           num=COURSE_NUMBER,
                                           run=COURSE_RUN)
     self.course_id = str(get_course_key(self.course_info))
     self.course_title = self.course_info["display_name"]
     self.course_price = DEFAULT_COURSE_PRICE
     self.total_price = DEFAULT_COURSE_PRICE
     # Initialize page objects
     self.course_about = CourseAboutPage(self.browser, self.course_id)
コード例 #3
0
 def setUp(self):
     """
     Initialize all objects
     """
     super(TestEnrollmentOtto, self).setUp()
     self.course_info = get_wl_course_info(
         org=COURSE_ORG,
         num=COURSE_NUMBER,
         run=COURSE_RUN
     )
     self.course_id = str(get_course_key(self.course_info))
     self.course_title = self.course_info["display_name"]
     self.course_price = DEFAULT_COURSE_PRICE
     self.total_price = DEFAULT_COURSE_PRICE
     # Initialize page objects
     self.course_about = CourseAboutPage(self.browser, self.course_id)
コード例 #4
0
 def setUp(self):
     super(TestDiscountCoupon, self).setUp()
     # Initialize common variables
     self.course_info = get_wl_course_info(
         org=COURSE_ORG,
         num=COURSE_NUMBER,
         run=COURSE_RUN
     )
     self.course_id = str(get_course_key(self.course_info))
     self.course_title = self.course_info["display_name"]
     self.course_price = DEFAULT_COURSE_PRICE
     self.total_price = DEFAULT_COURSE_PRICE
     self.stock_record_id = self.ecommerce_api.get_stock_record_id(
         self.course_id,
         self.course_title
     )