You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/whats_new.rst
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,8 @@ Breaking Changes
14
14
- Remove ``flogin.errors.SettingNotFound``
15
15
- Rewrite the CLI commands
16
16
- Remove ``flogin.conditions.MultiCondition`` in favor of :class:`flogin.conditions.AnyCondition` and :class:`flogin.conditions.AllCondition`
17
+
- Remove `Query.from_json`
18
+
- For :func:`flogin.testing.plugin_tester.PluginTester.test_query`, switch from receiving a query object to taking kwargs that will be used to make a query object
17
19
- Rename the ``flogin.flow_api`` directory to ``flogin.flow``
18
20
- Rename ``flogin.flow_api.client.py`` to ``flogin.flow.api.py``
19
21
@@ -33,6 +35,8 @@ New Features
33
35
- Make :attr:`flogin.jsonrpc.results.Result.title` optional
Tells flow to change the results shown to the user, using the query from this query object.
97
+
98
+
This method provides quick acess to :func:`flogin.flow_api.client.FlowLauncherAPI.update_results`. Because of that, this method will only take affect if the user has not changed the query.
Applies updates to the query with flow, and to this object.
118
+
119
+
This method provides quick acess to :func:`flogin.flow_api.client.FlowLauncherAPI.change_query`
120
+
121
+
Parameters
122
+
----------
123
+
text: :class:`str`
124
+
The text that will be used with the query.
125
+
keyword: :class:`str`
126
+
The keyword that will be used with the query. Defaults to the pre-existing value of :attr:`Query.keyword`. Set this to ``None`` or `"*"` for no keyword to be used.
127
+
requery: :class:`bool`
128
+
Whether or not to re-send a query request in the event that the new query is the same as the current query
Copy file name to clipboardExpand all lines: flogin/testing/plugin_tester.py
+17-2Lines changed: 17 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9,14 +9,14 @@
9
9
10
10
from .._typesimportPluginT, RawSettings
11
11
from ..flow.plugin_metadataimportPluginMetadata
12
+
from ..queryimportQuery
12
13
from ..settingsimportSettings
13
14
from ..utilsimportMISSING
14
15
from .fillerimportFillerObject
15
16
16
17
ifTYPE_CHECKING:
17
18
from ..jsonrpc.responsesimportQueryResponse
18
19
from ..jsonrpc.resultsimportResult
19
-
from ..queryimportQuery
20
20
21
21
API_FILLER_TEXT="FlowLauncherAPI is unavailable during testing. Consider passing the 'flow_api_client' arg into PluginTester to impliment your own flow api client."
0 commit comments