Skip to content

fail to run initial behave and test error #945

@igncampa

Description

@igncampa

Description

I pulled the repo to my machine and followed the contributing guide. Running behave and py.test both gave me an error:

behave command gives the following error:

package root: /home/igncampa/Repos/pgcli
fixture dir: /home/igncampa/Repos/pgcli/tests/features/fixture_data
HOOK-ERROR in before_all: OperationalError: fe_sendauth: no password supplied
HOOK-ERROR in after_all: AttributeError: 'Context' object has no attribute 'cn'

ABORTED: By user.
0 features passed, 0 failed, 0 skipped, 8 untested
0 scenarios passed, 0 failed, 0 skipped, 16 untested
0 steps passed, 0 failed, 0 skipped, 0 undefined, 85 untested
Took 0m0.000s

also running py.test one of the tests fails:
test_naive_completion.py:65: AssertionError

in case it matters, on my pg_hba.conf I have:
local all postgres trust

Your environment

  • Please provide your OS and version information.
    Description: Ubuntu 18.04.1 LTS

  • Please provide your CLI version.
    psql (PostgreSQL) 10.5 (Ubuntu 10.5-1.pgdg18.04+1)

  • What is the output of pip freeze command.
    autopep8==1.3.3
    behave==1.2.6
    certifi==2018.8.24
    chardet==3.0.4
    cli-helpers==1.0.2
    click==6.7
    codecov==2.0.15
    colorama==0.3.9
    configobj==5.0.6
    coverage==4.3.4
    docformatter==1.0
    docutils==0.14
    humanize==0.5.1
    idna==2.7
    mock==2.0.0
    parse==1.8.4
    parse-type==0.4.2
    pbr==4.2.0
    pep8radius==0.9.2
    pexpect==3.3
    -e git+git@github.com:igncampa/pgcli.git@d3bdb89#egg=pgcli
    pgspecial==1.11.2
    pkg-resources==0.0.0
    pkginfo==1.4.2
    pluggy==0.7.1
    prompt-toolkit==1.0.15
    psycopg2==2.7.5
    psycopg2-binary==2.7.5
    py==1.6.0
    pycodestyle==2.4.0
    Pygments==2.2.0
    pytest==3.0.7
    requests==2.19.1
    requests-toolbelt==0.8.0
    setproctitle==1.1.10
    six==1.11.0
    sqlparse==0.2.4
    tabulate==0.8.2
    terminaltables==3.1.0
    toml==0.9.6
    tox==3.4.0
    tqdm==4.26.0
    twine==1.11.0
    untokenize==0.1.1
    urllib3==1.23
    virtualenv==16.0.0
    wcwidth==0.1.7
    yapf==0.24.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions