Closed elgarty closed 10 months ago
How to do you get a Frontier API secret i can only get the id
FCMS does not implement tests. These are again Pyramid boiler code that isn't applicable to FCMS. Frontier API secrets are requested through Frontier's developer program.
on pytest and when going on the website i get errors saying Type error options is an invalid keyword argument for this function
Errors:
Pytest: `===================================================================================== test session starts ====================================================================================== platform linux -- Python 3.9.2, pytest-7.4.3, pluggy-1.3.0 rootdir: /home/mmuchi030674/FCMS/FCMS configfile: pytest.ini testpaths: FCMS plugins: cov-4.1.0 collected 2 items
FCMS/tests.py FFE [100%]
============================================================================================ ERRORS ============================================================================================ __ ERROR at teardown of TestMyViewFailureCondition.test_failing_view ___
self =
FCMS/tests.py:40:
env/lib/python3.9/site-packages/sqlalchemy/sql/schema.py:5856: in drop_all bind._run_ddl_visitor( env/lib/python3.9/site-packages/sqlalchemy/engine/base.py:3242: in _run_ddl_visitor with self.begin() as conn: /usr/lib/python3.9/contextlib.py:117: in enter return next(self.gen) env/lib/python3.9/site-packages/sqlalchemy/engine/base.py:3232: in begin with self.connect() as conn: env/lib/python3.9/site-packages/sqlalchemy/engine/base.py:3268: in connect return self._connection_cls(self) env/lib/python3.9/site-packages/sqlalchemy/engine/base.py:145: in init self._dbapi_connection = engine.raw_connection() env/lib/python3.9/site-packages/sqlalchemy/engine/base.py:3292: in raw_connection return self.pool.connect() env/lib/python3.9/site-packages/sqlalchemy/pool/impl.py:421: in connect return _ConnectionFairy._checkout(self, self._fairy) env/lib/python3.9/site-packages/sqlalchemy/pool/base.py:1269: in _checkout fairy = _ConnectionRecord.checkout(pool) env/lib/python3.9/site-packages/sqlalchemy/pool/base.py:716: in checkout rec = pool._do_get() env/lib/python3.9/site-packages/sqlalchemy/pool/impl.py:403: in _do_get c = self._create_connection() env/lib/python3.9/site-packages/sqlalchemy/pool/base.py:393: in _create_connection return _ConnectionRecord(self) env/lib/python3.9/site-packages/sqlalchemy/pool/base.py:678: in init self.connect() env/lib/python3.9/site-packages/sqlalchemy/pool/base.py:903: in connect pool.logger.debug("Error on connect(): %s", e) env/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py:146: in exit raise exc_value.with_traceback(exc_tb) env/lib/python3.9/site-packages/sqlalchemy/pool/base.py:898: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) env/lib/python3.9/site-packages/sqlalchemy/engine/create.py:637: in connect return dialect.connect(*cargs, **cparams)
self = <sqlalchemy.dialects.sqlite.pysqlite.SQLiteDialect_pysqlite object at 0x7b8b14b227c0>, cargs = (':memory:',), cparams = {'check_same_thread': True, 'options': '-c timezone=utc'}
env/lib/python3.9/site-packages/sqlalchemy/engine/default.py:616: TypeError =========================================================================================== FAILURES =========================================================================================== _ TestMyViewSuccessCondition.test_passingview
self =
FCMS/tests.py:47:
FCMS/tests.py:33: in init_database Base.metadata.create_all(self.engine) env/lib/python3.9/site-packages/sqlalchemy/sql/schema.py:5828: in create_all bind._run_ddl_visitor( env/lib/python3.9/site-packages/sqlalchemy/engine/base.py:3242: in _run_ddl_visitor with self.begin() as conn: /usr/lib/python3.9/contextlib.py:117: in enter return next(self.gen) env/lib/python3.9/site-packages/sqlalchemy/engine/base.py:3232: in begin with self.connect() as conn: env/lib/python3.9/site-packages/sqlalchemy/engine/base.py:3268: in connect return self._connection_cls(self) env/lib/python3.9/site-packages/sqlalchemy/engine/base.py:145: in init self._dbapi_connection = engine.raw_connection() env/lib/python3.9/site-packages/sqlalchemy/engine/base.py:3292: in raw_connection return self.pool.connect() env/lib/python3.9/site-packages/sqlalchemy/pool/impl.py:421: in connect return _ConnectionFairy._checkout(self, self._fairy) env/lib/python3.9/site-packages/sqlalchemy/pool/base.py:1269: in _checkout fairy = _ConnectionRecord.checkout(pool) env/lib/python3.9/site-packages/sqlalchemy/pool/base.py:716: in checkout rec = pool._do_get() env/lib/python3.9/site-packages/sqlalchemy/pool/impl.py:403: in _do_get c = self._create_connection() env/lib/python3.9/site-packages/sqlalchemy/pool/base.py:393: in _create_connection return _ConnectionRecord(self) env/lib/python3.9/site-packages/sqlalchemy/pool/base.py:678: in init self.connect() env/lib/python3.9/site-packages/sqlalchemy/pool/base.py:903: in connect pool.logger.debug("Error on connect(): %s", e) env/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py:146: in exit raise exc_value.with_traceback(exc_tb) env/lib/python3.9/site-packages/sqlalchemy/pool/base.py:898: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) env/lib/python3.9/site-packages/sqlalchemy/engine/create.py:637: in connect return dialect.connect(*cargs, **cparams)
self = <sqlalchemy.dialects.sqlite.pysqlite.SQLiteDialect_pysqlite object at 0x7b8b14f75370>, cargs = (':memory:',), cparams = {'check_same_thread': True, 'options': '-c timezone=utc'}
env/lib/python3.9/site-packages/sqlalchemy/engine/default.py:616: TypeError _ TestMyViewFailureCondition.test_failingview
self =
FCMS/tests.py:65:
FCMS/views/default.py:13: in my_view one = query.filter(models.MyModel.name == 'one').first() env/lib/python3.9/site-packages/sqlalchemy/orm/query.py:2748: in first return self.limit(1)._iter().first() # type: ignore env/lib/python3.9/site-packages/sqlalchemy/orm/query.py:2847: in _iter result: Union[ScalarResult[_T], Result[_T]] = self.session.execute( env/lib/python3.9/site-packages/sqlalchemy/orm/session.py:2308: in execute return self._execute_internal( env/lib/python3.9/site-packages/sqlalchemy/orm/session.py:2180: in _execute_internal conn = self._connection_for_bind(bind) env/lib/python3.9/site-packages/sqlalchemy/orm/session.py:2047: in _connection_for_bind return trans._connection_for_bind(engine, execution_options)