示例#1
0
def app():
    """Return a session-wide application configured in TEST mode."""
    _app = Flask(__name__)
    _app.config.from_object(get_named_config('testing'))
    _db.init_app(_app)

    return _app
示例#2
0
    annual_report,
    change_of_address,
    change_of_directors,
    change_of_name,
    correction,
    incorporation_filing,
    transition,
    voluntary_dissolution,
)
from entity_filer.filing_processors.filing_components import name_request

qsm = QueueServiceManager()  # pylint: disable=invalid-name
APP_CONFIG = config.get_named_config(os.getenv('DEPLOYMENT_ENV', 'production'))
FLASK_APP = Flask(__name__)
FLASK_APP.config.from_object(APP_CONFIG)
db.init_app(FLASK_APP)


def get_filing_types(legal_filings: dict):
    """Get the filing type fee codes for the filing.

    Returns: {
        list: a list of filing types.
    }
    """
    filing_types = []
    for k in legal_filings['filing'].keys():
        if Filing.FILINGS.get(k, None):
            filing_types.append(k)
    return filing_types