Commit 806ae44d authored by Wei Shoulin's avatar Wei Shoulin
Browse files

test

parent 21a24bfa
Pipeline #7158 passed with stage
......@@ -8,7 +8,7 @@ class Level0DataTestCase(unittest.TestCase):
self.api = Level0DataApi()
def test_find(self):
recs = self.api.find(obs_id = '100000101', file_type = 'sci', limit = 0)
recs = self.api.find(file_type = 'FLAT', create_time = ('2024-01-01 01:01:01','2024-11-01 01:01:01'), limit = 0)
print('find:', recs)
def test_get(self):
......
import os
import unittest
from astropy.io import fits
from csst_dfs_api.mbi.level1 import Level1DataApi
class Level1DataTestCase(unittest.TestCase):
def setUp(self):
self.api = Level1DataApi()
def test_cutout(self):
recs = self.api.cutout(
ra=120,
dec = 40,
pixels = 100,
filters = ['g', 'r', 'i'])
print('find:', recs)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment