Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.08 KB | None | 0 0
  1. import consol_run_parameter as run_parameter
  2. class Base_Test1:
  3.  
  4.     CONST_1 = Undefine()
  5.     CONST_2 = Undefine()
  6.  
  7.     ADITIONAL_FUNCIONALITY = []
  8.  
  9.     def check_requirements(self):
  10.         pass
  11.  
  12.     def setup_class(cls):
  13.         if run_parameter.security:
  14.             # przyjmij do testu inne ilimity, wyrocznie itp
  15.             # wykonaj dodatkowe metody
  16.             pass
  17.  
  18.     def setup(self):
  19.         pass
  20.  
  21.     def teardown_class(cls):
  22.         pass
  23.  
  24.     def teardown(self):
  25.         pass
  26.  
  27.     def _test_check_feature(self):
  28.         pass
  29.  
  30.  
  31. # product a
  32. class Test_1(Base_Test1):
  33.  
  34.     CONST_1 = 1
  35.     CONST_2 = 2
  36.  
  37.     def setup_class(cls):
  38.         pass
  39.  
  40.     def setup(self):
  41.         pass
  42.  
  43.     def teardown(self):
  44.         pass
  45.  
  46.     def teardown(self):
  47.         pass
  48.  
  49.     def test_check_feature(self):
  50.         # zrob cos specyficznego dla tego produktu
  51.         Base_Test1._test_check_feature()
  52.  
  53. # uruchomienie bez funkcjonalnsci
  54. # python Test_1
  55.  
  56. # uruchomienie z funkcjonalnicia
  57. # python Test_1 -security
  58.  
  59. # funcjonalnosc security moze miec wiele produktow
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement