Comments (3)
tests/integration/test_multiple_statements.py:None (tests/integration/test_multiple_statements.py)
../../../progs/miniconda3/envs/pytsql/lib/python3.10/site-packages/_pytest/config/__init__.py:1540: in getoption
val = getattr(self.option, name)
E AttributeError: 'Namespace' object has no attribute 'backend'
The above exception was the direct cause of the following exception:
../../../progs/miniconda3/envs/pytsql/lib/python3.10/site-packages/pluggy/_hooks.py:265: in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
../../../progs/miniconda3/envs/pytsql/lib/python3.10/site-packages/pluggy/_manager.py:80: in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
../../../progs/miniconda3/envs/pytsql/lib/python3.10/site-packages/_pytest/python.py:272: in pytest_pycollect_makeitem
return list(collector._genfunctions(name, obj))
../../../progs/miniconda3/envs/pytsql/lib/python3.10/site-packages/_pytest/python.py:499: in _genfunctions
self.ihook.pytest_generate_tests.call_extra(methods, dict(metafunc=metafunc))
../../../progs/miniconda3/envs/pytsql/lib/python3.10/site-packages/pluggy/_hooks.py:292: in call_extra
return self(**kwargs)
../../../progs/miniconda3/envs/pytsql/lib/python3.10/site-packages/pluggy/_hooks.py:265: in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
../../../progs/miniconda3/envs/pytsql/lib/python3.10/site-packages/pluggy/_manager.py:80: in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
integration/conftest.py:42: in pytest_generate_tests
"backend", [metafunc.config.getoption("backend")], scope="module"
../../../progs/miniconda3/envs/pytsql/lib/python3.10/site-packages/_pytest/config/__init__.py:1551: in getoption
raise ValueError(f"no option named {name!r}") from e
E ValueError: no option named 'backend'
from pytsql.
This code snippet in conftest.py seems to be related:
def pytest_generate_tests(metafunc):
if "backend" in metafunc.fixturenames:
metafunc.parametrize(
"backend", [metafunc.config.getoption("backend")], scope="module"
)
from pytsql.
proposed solution will be as a commit in issue44 (#44) branch/PR:
def pytest_generate_tests(metafunc):
if "backend" in metafunc.fixturenames:
try:
metafunc.parametrize(
"backend", [metafunc.config.getoption("backend")], scope="module"
)
except ValueError:
# some metafunc.config objects don't have an option "backend"
metafunc.parametrize(
"backend", ["default_backend"], scope="module"
)
from pytsql.
Related Issues (20)
- Publish package on conda-forge
- Minimal Python version
- Add keywords in pyproject.toml
- Add sphinx documentation HOT 1
- Use flit-scm for version handling HOT 2
- Deal with freetds driver in CI
- `SET` statements for local variables are unreliable
- Support for `@@ROWCOUNT`
- Extend support for conditionals
- Declaration in Stored Procedure is used to prepend further statements => Error HOT 4
- Potentially make running tests easier for Linux
- pytsql silently changes the isolation level of my engine HOT 2
- Missing support for user-defined table types
- Test suite: one test disables C++ implementation for all subsequent ones
- Latest `speedy-antlr-tool` is not compatible with our ANTLR version HOT 1
- Hit test-pypi memory limit HOT 1
- Add support for returning result tables
- `sa.text()` needs to escape colons (in text)
- How to remove `#pytsql_prints` lines from logs HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytsql.