Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Tests do not run in master repo. #311

Copy link
Copy link

Description

@w-
Issue body actions

Issue Summary

Tests do not run in master repo.

$ python -m unittest discover -v
test_initialization (test.test_config.UnitTests) ... ok
test_helloEmail (test.test_mail.UnitTests) ... ok
test_kitchenSink (test.test_mail.UnitTests) ... ok
test_parse (test.test_parse.UnitTests) ... {}
ok
Activating Prism (~20 seconds)
ERROR
/usr/lib/python3.4/unittest/suite.py:170: ResourceWarning: unclosed file <_io.TextIOWrapper name='/dev/null' mode='w' encoding='UTF-8'>
  self._addClassOrModuleLevelException(result, e, errorName)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
======================================================================
ERROR: setUpClass (test.test_sendgrid.UnitTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/w/hippo/sendgrid-python/test/test_sendgrid.py", line 55, in setUpClass
    "oai_stoplight.json"], stdout=devnull, stderr=subprocess.STDOUT)
  File "/usr/lib/python3.4/subprocess.py", line 859, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.4/subprocess.py", line 1457, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'prism'

----------------------------------------------------------------------
Ran 4 tests in 0.026s

FAILED (errors=1)
sys:1: ResourceWarning: unclosed file <_io.BufferedReader name=4>
sys:1: ResourceWarning: unclosed file <_io.BufferedReader name=5>
100  1353  100  1353    0     0    756      0  0:00:01  0:00:01 --:--:--   756

I notice if i do

git status

I get

$ git status
On branch master
Your branch is up-to-date with 'origin/master'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        prism_linux_amd64

nothing added to commit but untracked files present (use "git add" to track)

Steps to Reproduce

  1. clone repo
  2. craete virtualenv and install dependencies via pip
  3. attempt to run tests

Technical details:

  • latest master (e5323a7)
  • python 3.4.3
  • ubuntu 14.04
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.