GithubHelp home page GithubHelp logo

case's Issues

Archive Case

Most projects stopped using this project. Moreover it seems to be unmaintained.

Non-Free ICC profiles in images

./docs/images/celery_128.png and ./docs/images/favicon.ico contain ICC profiles which are Copyright 2007 Apple Inc. and probably not Free Software[1].

find . -regextype posix-extended -iregex '.*\.(jpg|png|ico|tiff)' -exec sh -c 'identify -verbose "$0" | grep -i copyright && echo "$0"' {} \;
    icc:copyright: Copyright 2007 Apple Inc., all rights reserved.
./docs/images/favicon.ico
    icc:copyright: Copyright 2007 Apple Inc., all rights reserved.
./docs/images/celery_128.png

These can be removed with the commands:

convert -verbose -strip ./docs/images/celery_128.png +profile "icc" ./docs/images/celery_128.png
convert -verbose ./docs/images/favicon.ico +profile "icc" ./docs/images/favicon.ico

Thanks.

Christopher Hoskin

[1] https://lists.debian.org/debian-devel/2014/05/msg00312.html

1.5.3: sphinx warnings

Looks like new sphinx on building documentation emits some warnings.

running build_sphinx
Running Sphinx v4.1.2
making output directory... done
loading intersphinx inventory from https://docs.python.org/dev/objects.inv...
loading intersphinx inventory from https://www.sphinx-doc.org/en/stable/objects.inv...
intersphinx inventory has moved: https://www.sphinx-doc.org/en/stable/objects.inv -> https://www.sphinx-doc.org/en/master/objects.inv
building [mo]: targets for 0 po files that are out of date
building [man]: all manpages
updating environment: [new config] 16 added, 0 changed, 0 removed
reading sources... [100%] reference/index
Changelog:87: WARNING: Inline emphasis start-string without end-string.
Changelog:170: WARNING: Bullet list ends without a blank line; unexpected unindent.
Changelog:175: WARNING: Duplicate explicit target name: "version-2.6.0".
Changelog:226: WARNING: Bullet list ends without a blank line; unexpected unindent.
/home/tkloczko/rpmbuild/BUILD/py-amqp-5.0.6/docs/../amqp/channel.py:docstring of amqp.channel.Channel.basic_qos:66: WARNING: Definition list ends without a blank line; unexpected unindent.
/home/tkloczko/rpmbuild/BUILD/py-amqp-5.0.6/docs/../amqp/connection.py:docstring of amqp.connection.Connection:19: WARNING: Literal block ends without a blank line; unexpected unindent.
/home/tkloczko/rpmbuild/BUILD/py-amqp-5.0.6/docs/../amqp/channel.py:docstring of amqp.channel.Channel.basic_qos:66: WARNING: Definition list ends without a blank line; unexpected unindent.
docstring of amqp.connection.Connection.negotiate_capabilities:7: WARNING: Unexpected indentation.
docstring of amqp.connection.Connection.negotiate_capabilities:9: WARNING: Definition list ends without a blank line; unexpected unindent.
docstring of amqp.connection.Connection.negotiate_capabilities:10: WARNING: Block quote ends without a blank line; unexpected unindent.
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
writing... python-amqp.3 { reference/index reference/amqp.connection reference/amqp.channel reference/amqp.basic_message reference/amqp.exceptions reference/amqp.abstract_channel reference/amqp.transport reference/amqp.method_framing reference/amqp.platform reference/amqp.protocol reference/amqp.sasl reference/amqp.serialization reference/amqp.spec reference/amqp.utils changelog } Changelog:648: WARNING: undefined label: vine:version-1.1.3
Changelog:672: WARNING: undefined label: vine:version-1.1.2
done
build succeeded, 12 warnings.

Getting error after installing package?

Hi, thank you so much for this library. You have exactly the decorators a lot of projects need abstracted out!

I'm experiencing a weird issue trying to incorporate case on a project that already has its unittest infrastructure set up.

This is python 2.7 on FreeBSD 11-CURRENT and OS X. I don't need to alter code to get the error, only need to install case.

For reference, the codebase ref I'm on https://github.com/tony/tmuxp/tree/af322806c55682473f412342f0c3a900561049d5.

I install case:

❯ pip install case
Collecting case
  Using cached case-1.1.4-py2.py3-none-any.whl
Collecting mock>=2.0 (from case)
  Using cached mock-2.0.0-py2.py3-none-any.whl
Collecting nose>=1.3.7 (from case)
  Using cached nose-1.3.7-py2-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): setuptools>=0.7 in ./.venv/lib/python2.7/site-packages (from case)
Collecting unittest2>=0.5.1 (from case)
  Using cached unittest2-1.1.0-py2.py3-none-any.whl
Collecting six (from case)
  Using cached six-1.10.0-py2.py3-none-any.whl
Collecting funcsigs>=1; python_version < "3.3" (from mock>=2.0->case)
  Using cached funcsigs-1.0.2-py2.py3-none-any.whl
Collecting pbr>=0.11 (from mock>=2.0->case)
  Using cached pbr-1.9.1-py2.py3-none-any.whl
Collecting traceback2 (from unittest2>=0.5.1->case)
  Using cached traceback2-1.4.0-py2.py3-none-any.whl
Collecting argparse (from unittest2>=0.5.1->case)
  Using cached argparse-1.4.0-py2.py3-none-any.whl
Collecting linecache2 (from traceback2->unittest2>=0.5.1->case)
  Using cached linecache2-1.0.0-py2.py3-none-any.whl
Installing collected packages: funcsigs, pbr, six, mock, nose, linecache2, traceback2, argparse, unittest2, case
Successfully installed argparse-1.4.0 case-1.1.4 funcsigs-1.0.2 linecache2-1.0.0 mock-2.0.0 nose-1.3.7 pbr-1.9.1 six-1.10.0 traceback2-1.4.0 unittest2-1.1.0

I run the (test runner)[https://github.com/tony/tmuxp/blob/af322806c55682473f412342f0c3a900561049d5/run-tests.py]:

❯ make watch_test
if command -v entr > /dev/null; then find . -type f -not -path '*/\.*' | grep -i '.*[.]py' | entr -c make test; else make test; echo "\nInstall entr(1) to automatically run tests on file change.\n See http://entrproject.org/"; fi
./run-tests.py
Traceback (most recent call last):
  File "/usr/home/x/work/python/tmuxp/tmuxp/testsuite/__init__.py", line 236, in main
    unittest.main(testLoader=BetterLoader(), defaultTest='suite')
  File "/usr/home/x/work/python/tmuxp/.venv/lib/python2.7/site-packages/unittest2/main.py", line 89, in __init__
    self.parseArgs(argv)
  File "/usr/home/x/work/python/tmuxp/.venv/lib/python2.7/site-packages/unittest2/main.py", line 135, in parseArgs
    self.createTests()
  File "/usr/home/x/work/python/tmuxp/.venv/lib/python2.7/site-packages/unittest2/main.py", line 142, in createTests
    self.module)
  File "/usr/home/x/work/python/tmuxp/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 245, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/home/x/work/python/tmuxp/tmuxp/testsuite/__init__.py", line 211, in loadTestsFromName
    raise LookupError('could not find test case for "%s"' % name)
LookupError: could not find test case for "s"
*** Error code 1

Stop.
make[1]: stopped in /usr/home/x/work/python/tmuxp
./run-tests.py
Traceback (most recent call last):
  File "/usr/home/x/work/python/tmuxp/tmuxp/testsuite/__init__.py", line 236, in main
    unittest.main(testLoader=BetterLoader(), defaultTest='suite')
  File "/usr/home/x/work/python/tmuxp/.venv/lib/python2.7/site-packages/unittest2/main.py", line 89, in __init__
    self.parseArgs(argv)
  File "/usr/home/x/work/python/tmuxp/.venv/lib/python2.7/site-packages/unittest2/main.py", line 135, in parseArgs
    self.createTests()
  File "/usr/home/x/work/python/tmuxp/.venv/lib/python2.7/site-packages/unittest2/main.py", line 142, in createTests
    self.module)
  File "/usr/home/x/work/python/tmuxp/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 245, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/home/x/work/python/tmuxp/tmuxp/testsuite/__init__.py", line 211, in loadTestsFromName
    raise LookupError('could not find test case for "%s"' % name)
LookupError: could not find test case for "s"
*** Error code 1

Stop.
make[1]: stopped in /usr/home/x/work/python/tmuxp

And bump into an issue when looking up test cases.

https://github.com/tony/tmuxp/blob/af322806c55682473f412342f0c3a900561049d5/tmuxp/testsuite/__init__.py#L211

To recreate (tried on a second machine):

pip install --user virtualenv  # if virtualenv not installed
git clone https://github.com/tony/tmuxp
cd tmuxp
git checkout 44d37d2
virtualenv .venv
. .venv/bin/activate
pip install -e .
./run-tests.py  # assure it runs, may fail time-sensitive tests
pip install case
./run-tests.py

Second example:

❯ ./run-tests.py
Traceback (most recent call last):
  File "/Users/me/study/tmuxp/tmuxp/testsuite/__init__.py", line 239, in main
    unittest.main(testLoader=BetterLoader(), defaultTest='suite')
  File "/Users/me/study/tmuxp/.venv/lib/python2.7/site-packages/unittest2/main.py", line 89, in __init__
    self.parseArgs(argv)
  File "/Users/me/study/tmuxp/.venv/lib/python2.7/site-packages/unittest2/main.py", line 135, in parseArgs
    self.createTests()
  File "/Users/me/study/tmuxp/.venv/lib/python2.7/site-packages/unittest2/main.py", line 142, in createTests
    self.module)
  File "/Users/me/study/tmuxp/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 245, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/Users/me/study/tmuxp/tmuxp/testsuite/__init__.py", line 214, in loadTestsFromName
    raise LookupError('could not find test case for "%s"' % name)
LookupError: could not find test case for "s"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.