SWDatabase
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Functions | Variables
tests.test_interface_fetch_map2D Namespace Reference

Functions

def test_set_get_cr
 Test set_cr/get_cr routines on some CR values. More...
 
def test_set_get_datetime
 Test set_datetime/get_datetime on some datetime values. More...
 
def test_get_set_cr_db
 Test set_cr/get_cr routines on the whole DB (if any). More...
 
def test_get_set_datetime_db
 Test set_datetime/get_datetime on the whole DB (if any). More...
 
def test_get_time
 Test get_time on the filenames. More...
 
def test_find_fetch_level
 Test find flevel on some filenames. More...
 
def test_find_fetch_level_db
 Test find flevel on the whole DB (if any). More...
 
def test_set_name_np1
 Test set_name_np1 for all fetch types from fetch level 0 to max(fetch levels) - 1. More...
 
def test_find_fetch_types_all
 Test find_fetch_types on all fetch types. More...
 
def test_find_fetch_types_table
 Test find_fetch_types on all tables. More...
 
def fetch_types_crmap
 
def test_find_fetch_types_crmap
 Test find_fetch_types for all CR-fetch types. More...
 
def fetch_types_smap
 
def test_find_fetch_types_smap
 Test find_fetch_types for all Smap-fetch types. More...
 
def fetch_types_fd
 
def test_find_fetch_types_fd
 Test find_fetch_types for all Fd-fetch types. More...
 
def test_read_remote_server
 Test read_remote_server. More...
 
def test_vn2vnp1_noforce
 Test vn2vnp1 routine without Force option. More...
 
def test_vn2vnp1_force
 Test vn2vnp1 routine with Force option. More...
 

Variables

 xfail = pytest.mark.xfail
 
 skip = pytest.mark.skip
 
 skipif = pytest.mark.skipif
 
 parametrize = pytest.mark.parametrize
 
tuple assertions = unittest.TestCase('__init__')
 

Function Documentation

def tests.test_interface_fetch_map2D.fetch_types_crmap ( )
def tests.test_interface_fetch_map2D.fetch_types_fd ( )
def tests.test_interface_fetch_map2D.fetch_types_smap ( )
def tests.test_interface_fetch_map2D.test_find_fetch_level (   fetch_type,
  flevel_in,
  filename_in 
)

Test find flevel on some filenames.

def tests.test_interface_fetch_map2D.test_find_fetch_level_db ( )

Test find flevel on the whole DB (if any).

def tests.test_interface_fetch_map2D.test_find_fetch_types_all ( )

Test find_fetch_types on all fetch types.

def tests.test_interface_fetch_map2D.test_find_fetch_types_crmap (   fetch_types_crmap)

Test find_fetch_types for all CR-fetch types.

def tests.test_interface_fetch_map2D.test_find_fetch_types_fd (   fetch_types_fd)

Test find_fetch_types for all Fd-fetch types.

def tests.test_interface_fetch_map2D.test_find_fetch_types_smap (   fetch_types_smap)

Test find_fetch_types for all Smap-fetch types.

def tests.test_interface_fetch_map2D.test_find_fetch_types_table (   table,
  fetch_types 
)

Test find_fetch_types on all tables.

def tests.test_interface_fetch_map2D.test_get_set_cr_db ( )

Test set_cr/get_cr routines on the whole DB (if any).

def tests.test_interface_fetch_map2D.test_get_set_datetime_db ( )

Test set_datetime/get_datetime on the whole DB (if any).

def tests.test_interface_fetch_map2D.test_get_time (   table,
  filename,
  time_in,
  is_date 
)

Test get_time on the filenames.

def tests.test_interface_fetch_map2D.test_read_remote_server (   fetch_type,
  date_min,
  date_max,
  n_theoric 
)

Test read_remote_server.

For all fetch_type, read the list of available files on server. Print the list with print_metafiles routines. Check it has around the good number of files:

  • ADAPT40_DATE and ADAPT41_DATE: from date_min to today + 68h, every 2 hour
  • NSO_CR: from CR2047 to today, every Carrington rotation
  • NSO_DATE: from date_min to today - 2h, every hour
  • NSOZ_DATE: from date_min to today - 2h, every hour
  • WSO_ORIGIN_CR and WSO_FILLED_CR: from CR1641 to today - 4 month, every Carrington rotation, + CR1614
  • EUV2CARMAP_SDO360_171_DATE: from Jan 22nd 2018 at 00h to today -2h, every 6 hours. Missing 96 in 2018 and 106 in 2019.
  • EUV2CARMAP_SDO360_193_DATE: from Jan 22nd 2018 at 00h to today -2h, every 6 hours. Missing 258 in 2018 and 102 in 2019.
  • EUV2CARMAP_SDO360_304_DATE: from Jan 22nd 2018 at 00h to today -2h, every 6 hours. Missing 96 in 2018 and 106 in 2019.
  • WL2CARMAP_SOHOLASCO_C2_DATE: from Jan 1st 2018 at 00h to today -2h, every 24 hours. Missing 0 in 2018 and 4 in 2019.
  • OBS_MAPS_SDO_AIAFD_XXX: from date_min to today UTC - 6.5 days, every hour
  • OBS_MAPS_SDO_AIAFDNRT_XXX: from date_min to today UTC, every hour
Todo:
Test also SDO_AIA, SOHO_EIT.
def tests.test_interface_fetch_map2D.test_set_get_cr (   cr_in)

Test set_cr/get_cr routines on some CR values.

def tests.test_interface_fetch_map2D.test_set_get_datetime (   date_in)

Test set_datetime/get_datetime on some datetime values.

def tests.test_interface_fetch_map2D.test_set_name_np1 ( )

Test set_name_np1 for all fetch types from fetch level 0 to max(fetch levels) - 1.

def tests.test_interface_fetch_map2D.test_vn2vnp1_force ( )

Test vn2vnp1 routine with Force option.

Create a list of 3 fictive files of flevel n.

  • Vn-file 1: no existing Vn+1 file. Should be in the output list.
  • Vn-file 2: existing and older Vn+1 file. Should be in the output list.
  • Vn-file 3: existing and newer Vn+1 file. Should not be in the output list.

Do not test the case N=-1, when it checks from remote metafiles.

def tests.test_interface_fetch_map2D.test_vn2vnp1_noforce ( )

Test vn2vnp1 routine without Force option.

Create a list of 3 fictive files of flevel n.

  • Vn-file 1: no existing Vn+1 file. Should be in the output list.
  • Vn-file 2: existing and older Vn+1 file. Should be in the output list.
  • Vn-file 3: existing and newer Vn+1 file. Should not be in the output list.

Do not test the case N=-1, when it checks from remote metafiles.

Variable Documentation

tuple tests.test_interface_fetch_map2D.assertions = unittest.TestCase('__init__')
tests.test_interface_fetch_map2D.parametrize = pytest.mark.parametrize
tests.test_interface_fetch_map2D.skip = pytest.mark.skip
tests.test_interface_fetch_map2D.skipif = pytest.mark.skipif
tests.test_interface_fetch_map2D.xfail = pytest.mark.xfail