Terarea  2
The automation project
Loading...
Searching...
No Matches
tests_sql_bind Namespace Reference

Functions

str _datetime_to_date_str (datetime date)
 
str _datetime_to_datetime_str (datetime date)
 
str _datetime_to_sql_time_str (datetime date)
 
datetime _str_to_datetime (str string)
 
datetime _str_to_date (str string)
 
None test_datetime_to_datetime_string_no_error ()
 
None test_datetime_to_sql_string_no_error ()
 
None test_datetime_to_date_string_no_error ()
 
None test_datetime_to_date_sql_string_no_error ()
 
None test_datetime_to_datetime_string_not_a_datetime_instance ()
 
None test_datetime_to_sql_string_not_a_datetime_instance ()
 
None test_datetime_to_date_string_not_a_datetime_instance ()
 
None test_datetime_to_date_sql_string_not_a_datetime_instance ()
 
None test_string_to_datetime_no_error ()
 
None test_string_to_date_datetime_no_error ()
 
None test_string_to_datetime_datetime_not_a_string_instance ()
 
None test_string_to_date_datetime_not_a_string_instance ()
 
None test_string_to_datetime_datetime_not_a_datetime_string_instance ()
 
None test_string_to_date_datetime_not_a_datetime_string_instance ()
 

Variables

 ERROR = TCONST.ERROR
 
 SUCCESS = TCONST.SUCCESS
 
 DEBUG = TCONST.DEBUG
 
 SI
 

Detailed Description

_summary_
    File in charge of testing the boilerplate Boilerplate non http class.

Function Documentation

◆ _datetime_to_date_str()

str tests_sql_bind._datetime_to_date_str ( datetime date)
protected
_summary_
    Function in charge of converting a datetime object to a string.

Definition at line 34 of file tests_sql_bind.py.

◆ _datetime_to_datetime_str()

str tests_sql_bind._datetime_to_datetime_str ( datetime date)
protected
_summary_
    Function in charge of converting a datetime object to a string.

Definition at line 41 of file tests_sql_bind.py.

◆ _datetime_to_sql_time_str()

str tests_sql_bind._datetime_to_sql_time_str ( datetime date)
protected
_summary_
    Function in charge of converting a datetime object to a string.

Definition at line 48 of file tests_sql_bind.py.

◆ _str_to_date()

datetime tests_sql_bind._str_to_date ( str string)
protected
_summary_
    Function in charge of converting a string to a datetime object.

Definition at line 64 of file tests_sql_bind.py.

◆ _str_to_datetime()

datetime tests_sql_bind._str_to_datetime ( str string)
protected
_summary_
    Function in charge of converting a string to a datetime object.

Definition at line 57 of file tests_sql_bind.py.

◆ test_datetime_to_date_sql_string_no_error()

None tests_sql_bind.test_datetime_to_date_sql_string_no_error ( )
_summary_
    Function in charge of testing the datetime_to_string function.

Definition at line 104 of file tests_sql_bind.py.

◆ test_datetime_to_date_sql_string_not_a_datetime_instance()

None tests_sql_bind.test_datetime_to_date_sql_string_not_a_datetime_instance ( )
_summary_
    Function in charge of testing the datetime_to_string function.

Definition at line 143 of file tests_sql_bind.py.

◆ test_datetime_to_date_string_no_error()

None tests_sql_bind.test_datetime_to_date_string_no_error ( )
_summary_
    Function in charge of testing the datetime_to_string function.

Definition at line 93 of file tests_sql_bind.py.

◆ test_datetime_to_date_string_not_a_datetime_instance()

None tests_sql_bind.test_datetime_to_date_string_not_a_datetime_instance ( )
_summary_
    Function in charge of testing the datetime_to_string function.

Definition at line 133 of file tests_sql_bind.py.

◆ test_datetime_to_datetime_string_no_error()

None tests_sql_bind.test_datetime_to_datetime_string_no_error ( )
_summary_
    Function in charge of testing the datetime_to_string function.

Definition at line 71 of file tests_sql_bind.py.

◆ test_datetime_to_datetime_string_not_a_datetime_instance()

None tests_sql_bind.test_datetime_to_datetime_string_not_a_datetime_instance ( )
_summary_
    Function in charge of testing the datetime_to_string function.

Definition at line 115 of file tests_sql_bind.py.

◆ test_datetime_to_sql_string_no_error()

None tests_sql_bind.test_datetime_to_sql_string_no_error ( )
_summary_
    Function in charge of testing the datetime_to_string function.

Definition at line 82 of file tests_sql_bind.py.

◆ test_datetime_to_sql_string_not_a_datetime_instance()

None tests_sql_bind.test_datetime_to_sql_string_not_a_datetime_instance ( )
_summary_
    Function in charge of testing the datetime_to_string function.

Definition at line 124 of file tests_sql_bind.py.

◆ test_string_to_date_datetime_no_error()

None tests_sql_bind.test_string_to_date_datetime_no_error ( )
_summary_
    Function in charge of testing the string_to_datetime function.

Definition at line 164 of file tests_sql_bind.py.

◆ test_string_to_date_datetime_not_a_datetime_string_instance()

None tests_sql_bind.test_string_to_date_datetime_not_a_datetime_string_instance ( )
_summary_
    Function in charge of testing the string_to_datetime function.

Definition at line 203 of file tests_sql_bind.py.

◆ test_string_to_date_datetime_not_a_string_instance()

None tests_sql_bind.test_string_to_date_datetime_not_a_string_instance ( )
_summary_
    Function in charge of testing the string_to_datetime function.

Definition at line 184 of file tests_sql_bind.py.

◆ test_string_to_datetime_datetime_not_a_datetime_string_instance()

None tests_sql_bind.test_string_to_datetime_datetime_not_a_datetime_string_instance ( )
_summary_
    Function in charge of testing the string_to_datetime function.

Definition at line 194 of file tests_sql_bind.py.

◆ test_string_to_datetime_datetime_not_a_string_instance()

None tests_sql_bind.test_string_to_datetime_datetime_not_a_string_instance ( )
_summary_
    Function in charge of testing the string_to_datetime function.

Definition at line 175 of file tests_sql_bind.py.

◆ test_string_to_datetime_no_error()

None tests_sql_bind.test_string_to_datetime_no_error ( )
_summary_
    Function in charge of testing the string_to_datetime function.

Definition at line 153 of file tests_sql_bind.py.

Variable Documentation

◆ DEBUG

tests_sql_bind.DEBUG = TCONST.DEBUG

Definition at line 22 of file tests_sql_bind.py.

◆ ERROR

tests_sql_bind.ERROR = TCONST.ERROR

Definition at line 20 of file tests_sql_bind.py.

◆ SI

tests_sql_bind.SI
Initial value:
1= SQL(
2 url=CONST.DB_HOST,
3 port=CONST.DB_PORT,
4 username=CONST.DB_USER,
5 password=CONST.DB_PASSWORD,
6 db_name=CONST.DB_DATABASE,
7 debug=DEBUG
8)

Definition at line 24 of file tests_sql_bind.py.

◆ SUCCESS

tests_sql_bind.SUCCESS = TCONST.SUCCESS

Definition at line 21 of file tests_sql_bind.py.