Skip to content

Commit

Permalink
Clear up
Browse files Browse the repository at this point in the history
  • Loading branch information
hao.long authored and Hal committed Apr 21, 2020
1 parent 07c71be commit e80bc8a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Generated Pylint configuration file that disables default output tables.

[MESSAGES CONTROL]
disable=RP0001,RP0002,RP0003,RP0101,RP0401,RP0402,RP0701,RP0801,C0103
disable=RP0001,RP0002,RP0003,RP0101,RP0401,RP0402,RP0701,RP0801,C0103,R0903

[REPORTS]
output-format=text
7 changes: 4 additions & 3 deletions test/test_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@

from photoshop.application import Application
from photoshop.solid_color import SolidColor
from photoshop.string_ids import StringIDs
from photoshop.event_id import EventID


class TestApplication:
"""Test the solidColor."""

# pylint: disable=attribute-defined-outside-init
@pytest.fixture(autouse=True)
def setup(self):
self.app = Application()
Expand Down Expand Up @@ -108,9 +109,9 @@ def test_notifiers(self):
def test_add_notifiers(self, tmpdir):
jsx_file = tmpdir.join("event.jsx")
jsx_file.write('alert("Test Event")')
self.app.notifiers.add(StringIDs.Open, str(jsx_file))
self.app.notifiers.add(EventID.Open, str(jsx_file))
assert self.app.notifiers.length == 1
assert self.app.notifiers[0].EventID == StringIDs.Open
assert self.app.notifiers[0].EventID == EventID.Open

def test_get_notifiersEnabled(self):
assert not self.app.notifiersEnabled
Expand Down
1 change: 1 addition & 0 deletions test/test_solid_color.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
class TestSolidColor:
"""Test the solidColor."""

# pylint: disable=attribute-defined-outside-init
@pytest.fixture(autouse=True)
def setup(self):
self.session = Session()
Expand Down

0 comments on commit e80bc8a

Please sign in to comment.