Beispiel #1
0
    def setUpClass(self):
        create_users(self)
        self.ot_entry = TrackingEntry(
            user=self.linked_user,
            entry_date=datetime.datetime.today(),
            start_time=datetime.time(0, 0, 0),
            end_time=datetime.time(17, 0, 0),
            breaks=datetime.time(0, 15, 0),
            daytype="WKDAY",
        )

	self.pending_entry = TrackingEntry(
            user=self.linked_user,
            entry_date=datetime.datetime.today() + datetime.timedelta(days=123),
            start_time=datetime.time(9, 0, 0),
            end_time=datetime.time(17, 0, 0),
            breaks=datetime.time(0, 15, 0),
            daytype="PENDI",
        )

        self.entry = TrackingEntry(
            user=self.linked_user,
            entry_date=datetime.datetime.today() + datetime.timedelta(days=1),
            start_time=datetime.time(9, 0, 0),
            end_time=datetime.time(16, 45, 0),
            breaks=datetime.time(0, 15, 0),
            daytype="WKDAY",
        )

        self.ot_entry.full_clean()
        self.ot_entry.save()
        self.entry.full_clean()
        self.entry.save()
Beispiel #2
0
    def setUpClass(self):
        create_users(self)
        self.ot_entry = TrackingEntry(
            user=self.linked_user,
            entry_date=datetime.datetime.today(),
            start_time=datetime.time(0, 0, 0),
            end_time=datetime.time(17, 0, 0),
            breaks=datetime.time(0, 15, 0),
            daytype="WKDAY",
        )

        self.pending_entry = TrackingEntry(
            user=self.linked_user,
            entry_date=datetime.datetime.today() +
            datetime.timedelta(days=123),
            start_time=datetime.time(9, 0, 0),
            end_time=datetime.time(17, 0, 0),
            breaks=datetime.time(0, 15, 0),
            daytype="PENDI",
        )

        self.entry = TrackingEntry(
            user=self.linked_user,
            entry_date=datetime.datetime.today() + datetime.timedelta(days=1),
            start_time=datetime.time(9, 0, 0),
            end_time=datetime.time(16, 45, 0),
            breaks=datetime.time(0, 15, 0),
            daytype="WKDAY",
        )

        self.ot_entry.full_clean()
        self.ot_entry.save()
        self.entry.full_clean()
        self.entry.save()
Beispiel #3
0
 def setUpClass(self):
     self.client = Client()
     create_users(self)
     createuseractivities()
     self.indeng = Tbluser.objects.create(
         user_id="*****@*****.**",
         firstname="test",
         lastname="case",
         password="******",
         salt="nothing",
         user_type="INENG",
         market="BG",
         process="AP",
         start_date=datetime.datetime.today(),
         breaklength="00:15:00",
         shiftlength="07:45:00",
         job_code="00F20G",
         holiday_balance=20
     )
     self.indeng.full_clean()
     self.indeng.update_password(self.indeng.password)
     self.indeng.save()
Beispiel #4
0
 def setUpClass(cls):
     cls.client = Client()
     create_users(cls)
     createuseractivities()
Beispiel #5
0
 def setUpClass(cls):
     cls.client = Client()
     create_users(cls)
     createuseractivities()