Skip to content

Commit

Permalink
Updated setup.py and tests accordingly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jahaja committed Mar 10, 2014
1 parent 78d19f1 commit 693ae2b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
description="Linux system information web dashboard",
long_description="psdash is a system information web dashboard for linux using data mainly served by psutil",
classifiers=[
"System :: Monitoring",
"System :: Logging",
"System :: Networking :: Monitoring",
"Development Status :: 4 - Beta",
"Operating System :: Linux",
"Programming Language :: Python",
Expand All @@ -20,13 +23,14 @@
author_email="[email protected]",
url="https://github.com/Jahaja/psdash",
license="CC0",
packages=find_packages(),
packages=find_packages(exclude=["tests"]),
include_package_data=True,
zip_safe=False,
install_requires=[
"Flask==0.10.1",
"psutil==1.2.1"
],
test_suite="tests",
entry_points={
"console_scripts": [
"psdash = psdash.web:main"
Expand Down
Empty file added tests/__init__.py
Empty file.
4 changes: 2 additions & 2 deletions tests/log_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ def test_searching(self):
log = self.logs.get(self.filename)
log.searcher.reset()
positions = [log.search(self.NEEDLE)[0] for _ in xrange(len(self.POSITIONS))]
self.assertListEqual(self.POSITIONS, positions)
self.assertEqual(self.POSITIONS, positions)

def test_searching_other_buffer_size(self):
log = LogReader(self.filename, LogReader.BUFFER_SIZE / 2)
log.searcher.reset()
positions = [log.search(self.NEEDLE)[0] for _ in xrange(len(self.POSITIONS))]
self.assertListEqual(self.POSITIONS, positions)
self.assertEqual(self.POSITIONS, positions)


if __name__ == "__main__":
Expand Down

0 comments on commit 693ae2b

Please sign in to comment.