Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get workspaces query tests fix #122

Closed
wants to merge 4 commits into from
Closed
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
5 changes: 4 additions & 1 deletion docs/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ Getting started

monday.items.create_item(board_id='12345678', group_id='today', item_name='Do a thing')

**Available methods:** #### Items Resource (monday.items) -
**Available methods:**

Items Resource (monday.items)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
``create_item(board_id, group_id, item_name, column_values=None, create_labels_if_missing=False)``
- Create an item on a board in the given group with name item_name.

Expand Down
13 changes: 5 additions & 8 deletions monday/query_joins.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,19 +605,16 @@ def get_complexity_query():
def get_workspaces_query():
query = '''
query {
boards {
workspace {
id
name
kind
description
}
workspaces {
id
name
kind
description
}
}
'''
return query


def create_workspace_query(name, kind, description=""):
query = '''
mutation {
Expand Down
12 changes: 5 additions & 7 deletions monday/tests/test_workspace_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ def test_get_workspaces_query(self):
query = get_workspaces_query()
self.assertEqual('''
query {
boards {
workspace {
id
name
kind
description
}
workspaces {
id
name
kind
description
}
}
'''.replace(" ", ""), query.replace(" ", ""))
Expand Down