예제 #1
0
    def test_report(self):

        # I'm too lazy to fix the scheduler.json - missing commissioning
        c = Observing_Type.objects.get_or_create(type = 'commissioning')

        f = file('LstPressures.pdf', 'w')
        lst = LstPressureReport(f)
        lst.report(debug = True)
예제 #2
0
    def test_report_sponsored(self):

        f = file('LstPressures.pdf', 'w')
        r = LstPressureReport(f)
        # Make sure are session belongs to the next semester,
        # no matter when we are running this test.
        # This is a 12A session, that starts 2012-02-01.
        today = datetime(2012, 1, 15)
        r.lst = LstPressures(today = today)

        # make this session sponsored
        self.session.proposal.sponsor = self.sponsor
        self.session.proposal.save()

        r.report(debug = True, hideSponsors = False)
예제 #3
0
    def test_report(self):

        f = file('LstPressures.pdf', 'w')
        lst = LstPressureReport(f)
        lst.report(debug = True)