Skip to content

Commit

Permalink
Update script.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yaakovi authored Jun 21, 2022
1 parent 4cb6e8b commit 23a8b4b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
from packaging.version import parse
from wcmatch.pathlib import Path

from demisto_sdk.commands.common.constants import SCRIPT, FileType
from demisto_sdk.commands.common.constants import (SCRIPT, TEST_PLAYBOOKS_DIR,
FileType)
from demisto_sdk.commands.common.content.objects.pack_objects.abstract_pack_objects.yaml_unify_content_object import \
YAMLContentUnifiedObject
from demisto_sdk.commands.common.tools import get_demisto_version
Expand Down Expand Up @@ -36,4 +37,7 @@ def upload(self, client: demisto_client):
return client.import_script(file=file)

def type(self):
if TEST_PLAYBOOKS_DIR in self.path.parts:
return FileType.TEST_SCRIPT

return FileType.SCRIPT

0 comments on commit 23a8b4b

Please sign in to comment.