recs


Namerecs JSON
Version 0.9.2 PyPI version JSON
download
home_pagehttps://github.com/rec/recs
SummaryTry to import all modules below a given root
upload_time2019-04-01 12:34:29
maintainer
docs_urlNone
authorTom Ritchford
requires_python
licenseMIT
keywords testing
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            recs: @rec's tiny useful Python toolbox
--------------------------------------------

Contains one essential thing, and a few other minorly useful bits.


``ImportAllTest``: test that all modules import successfully
===============================================================

Not every file is covered by unit tests, particularly scripts;  and unit tests
won't report any new warnings that occur.

``ImportAllTest`` automatically loads each Python file or module reachable from
your root directory.  Warnings are by default treated as errors.

I drop this into each new project as my first test.  It inevitably catches a
host of problems, particularly when I'm in rapid development and running a
subset of tests.

In the most common usage, just add this tiny file
`all_test.py <https://raw.githubusercontent.com/rec/import_all/master/all_test.py/>`_.
anywhere in your unit test directory:

.. code-block:: python

    import import_all


    class ImportAllTest(import_all.TestCase):
        pass

You can customize how warnings are treated here.

`all_test.py <https://raw.githubusercontent.com/rec/import_all/master/all_test.py/>`_.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/rec/recs",
    "name": "recs",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "testing",
    "author": "Tom Ritchford",
    "author_email": "tom@swirly.com",
    "download_url": "https://files.pythonhosted.org/packages/29/7b/0fcd4235e2dc7f44c76cfb80b3259b95e36c8bb0ce9837f7a119e29c8f83/recs-0.9.2.tar.gz",
    "platform": "",
    "description": "recs: @rec's tiny useful Python toolbox\n--------------------------------------------\n\nContains one essential thing, and a few other minorly useful bits.\n\n\n``ImportAllTest``: test that all modules import successfully\n===============================================================\n\nNot every file is covered by unit tests, particularly scripts;  and unit tests\nwon't report any new warnings that occur.\n\n``ImportAllTest`` automatically loads each Python file or module reachable from\nyour root directory.  Warnings are by default treated as errors.\n\nI drop this into each new project as my first test.  It inevitably catches a\nhost of problems, particularly when I'm in rapid development and running a\nsubset of tests.\n\nIn the most common usage, just add this tiny file\n`all_test.py <https://raw.githubusercontent.com/rec/import_all/master/all_test.py/>`_.\nanywhere in your unit test directory:\n\n.. code-block:: python\n\n    import import_all\n\n\n    class ImportAllTest(import_all.TestCase):\n        pass\n\nYou can customize how warnings are treated here.\n\n`all_test.py <https://raw.githubusercontent.com/rec/import_all/master/all_test.py/>`_.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Try to import all modules below a given root",
    "version": "0.9.2",
    "project_urls": {
        "Homepage": "https://github.com/rec/recs"
    },
    "split_keywords": [
        "testing"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "297b0fcd4235e2dc7f44c76cfb80b3259b95e36c8bb0ce9837f7a119e29c8f83",
                "md5": "19a1bc3983401642412a4ae18879e9e1",
                "sha256": "1a7db2787c9b9d26f3132201f78271e660e43857d8651538f2887ebdf8aaa5b8"
            },
            "downloads": -1,
            "filename": "recs-0.9.2.tar.gz",
            "has_sig": false,
            "md5_digest": "19a1bc3983401642412a4ae18879e9e1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3108,
            "upload_time": "2019-04-01T12:34:29",
            "upload_time_iso_8601": "2019-04-01T12:34:29.218485Z",
            "url": "https://files.pythonhosted.org/packages/29/7b/0fcd4235e2dc7f44c76cfb80b3259b95e36c8bb0ce9837f7a119e29c8f83/recs-0.9.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2019-04-01 12:34:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rec",
    "github_project": "recs",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "recs"
}
        
Elapsed time: 0.15730s