Skip to content

Commit

Permalink
Adding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Aug 27, 2017
1 parent f6a6d9a commit 2d2b274
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,15 @@ Apart from :ref:`shell-like syntax <guide-local-commands>` and :ref:`handy short
the library provides local and :ref:`remote <guide-remote-commands>` command execution (over SSH),
local and remote file-system :ref:`paths <guide-paths>`, easy working-directory and
environment :ref:`manipulation <guide-local-machine>`, quick access to ANSI :ref:`colors <guide-colors>`, and a programmatic
:ref:`guide-cli` application toolkit. Now let's see some code! (If you are an old pro, :ref:`here is a quick-ref guide<guide-quickref>`.
:ref:`guide-cli` application toolkit. Now let's see some code!

News
====

.. include:: _news.rst

* :doc:`changelog`
* :doc:`quickref`

Cheat Sheet
===========
Expand Down
2 changes: 1 addition & 1 deletion plumbum/path/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def _glob(self, pattern, fn):

def resolve(strict=False):
"""Added to allow pathlib like syntax. Does nothing since
plubmum paths are always absolute. Does not (currently) resolve
Plumbum paths are always absolute. Does not (currently) resolve
symlinks."""
# TODO: Resolve symlinks here
return self
Expand Down
3 changes: 2 additions & 1 deletion tests/test_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ def filename_compare(name):
assert p.as_uri() == pl.as_uri()
assert str(p.with_suffix('.this')) == str(pl.with_suffix('.this'))
assert p.name == pl.name
assert str(p.parent) == str(pl.parent)
assert list(map(str,p.parents)) == list(map(str, pl.parents))

filename_compare("/some/long/path/to/file.txt")
filename_compare(local.cwd / "somefile.txt")
Expand Down Expand Up @@ -746,7 +748,6 @@ class TestLocalEncoding:
richstr = chr(40960)

def test_inout_rich(self):

from plumbum.cmd import echo
out = echo(self.richstr)
assert self.richstr in out
Expand Down

0 comments on commit 2d2b274

Please sign in to comment.