Test Vinter Utils
test_vinter_utils
test_classess
This function tests the classes in the vinter_validation.py and vinter_url.py files
Source code in tests/test_vinter_utils.py
            test_get_active_url
The function
get_active_urltakes an asset type as a string and returns the url for the active assets of that type.
Source code in tests/test_vinter_utils.py
            test_get_active_url_invalid_asset_type
get_active_url returns the active url for the given asset type
test_get_url
The function
get_urltakes two arguments,asset_typeandfrequency, and returns a string that is the url for the Vinter API
Source code in tests/test_vinter_utils.py
            test_get_url_by_symbol
Given an asset type and a symbol, return the url for the corresponding API endpoint
Source code in tests/test_vinter_utils.py
            test_get_url_invalid_asset_type
It tests that the function get_url raises a ValueError when an invalid asset type is passed to
it
Source code in tests/test_vinter_utils.py
            test_get_websocket_url
Given an asset type and a symbol, return the url for the corresponding websocket endpoint
Source code in tests/test_vinter_utils.py
            test_get_websocket_url_invalid_asset_type
It tests that the function get_websocket_url raises a ValueError when an invalid asset type is
passed to it
Source code in tests/test_vinter_utils.py
            test_get_websocket_url_no_symbol
It tests that the function get_websocket_url raises a ValueError when no symbol is passed to
it
Source code in tests/test_vinter_utils.py
            test_invalid_asset_type
test_invalid_asset_type tests that the validate_asset_type function raises a ValueError when
an invalid asset type is passed to it
Source code in tests/test_vinter_utils.py
            
          test_invalid_frequency
It raises a ValueError if the frequency is not one of the valid frequencies
test_invalid_symbol
test_symbol_none
It tests that the function validate_symbol_frequency raises a ValueError when no symbol is
passed to it
Source code in tests/test_vinter_utils.py
            
          test_valid_asset_type
test_valid_frequency
test_valid_symbol
validate_symbol_frequency takes a string as input and returns a tuple of two strings. The first
string is the symbol and the second string is the frequency
Source code in tests/test_vinter_utils.py
            test_validate_dates
It tests that the function validate_dates raises an error when it should, and doesn't raise an
error when it shouldn't