Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased
## [2.2.1] - 2018-01-06

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion fs/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Version, used in module and setup.py.
"""
__version__ = "2.2.0"
__version__ = "2.2.1"
2 changes: 1 addition & 1 deletion fs/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
class Info(object):
"""Container for :ref:`info`.

Resource informations are returned by the following methods:
Resource information is returned by the following methods:

* `~fs.base.FS.getinfo`
* `~fs.base.FS.scandir`
Expand Down
4 changes: 0 additions & 4 deletions pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# PyFilesystem Pull Request

Thank you for your pull request!

## Type of changes

- [ ] Bug fix
Expand Down
15 changes: 15 additions & 0 deletions tests/test_opener.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from fs.memoryfs import MemoryFS
from fs.appfs import UserDataFS
from fs.opener.parse import ParseResult
from fs.opener.registry import Registry


class TestParse(unittest.TestCase):
Expand Down Expand Up @@ -167,6 +168,20 @@ def open_fs(self, *args, **kwargs):
"could not instantiate opener; some creation error", str(ctx.exception)
)

def test_install(self):
"""Test Registry.install works as a decorator."""
registry = Registry()
self.assertNotIn("foo", registry.protocols)

@registry.install
class FooOpener(opener.Opener):
protocols = ["foo"]

def open_fs(self, *args, **kwargs):
pass

self.assertIn("foo", registry.protocols)


class TestManageFS(unittest.TestCase):
def test_manage_fs_url(self):
Expand Down