Completed
Push — master ( ba9964...3ed8db )
by Ronert
13:24 queued 03:23
created

tests.app()   A

Complexity

Conditions 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
dl 0
loc 4
rs 10
1
"""Integration tests configuration file."""
2
import pytest
3
from cf_predict.test.conftest import pytest_configure  # pylint: disable=unused-import
4
from cf_predict import create_app
5
6
7
@pytest.fixture
8
def app():
0 ignored issues
show
Coding Style introduced by
This function should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
9
    app = create_app("integration_testing")
0 ignored issues
show
Comprehensibility Bug introduced by
app is re-defining a name which is already available in the outer-scope (previously defined on line 8).

It is generally a bad practice to shadow variables from the outer-scope. In most cases, this is done unintentionally and might lead to unexpected behavior:

param = 5

class Foo:
    def __init__(self, param):   # "param" would be flagged here
        self.param = param
Loading history...
10
    return app
11