Laurent Monin
5329e3592a
Clean up and sort imports using isort
...
Add a config for isort (https://github.com/timothycrosley/isort )
Run isort -rc . and make import style consistent across files
Add a note about `isort` in CONTRIBUTING.md
2018-08-22 08:51:25 +02:00
Sophist
c067bd5e26
Merge branch 'master' into PICARD-922_improve-inmulti-as-per-1.4.1
2017-05-11 08:26:15 +01:00
Sophist
303cf79390
Use assertScriptResultEquals...
...
... instead of assertEqual(self.parser.eval
2017-05-03 09:09:27 +01:00
Wieland Hoffmann
05b343a232
Reject functions with required keyword-only arguments
...
Python 3 / PEP3102 introduced keyword-only arguments, like in
def foo(a, *, b):
pass
where `b` can't be set as a positional argument. This can't be expressed in
tagger script, so reject calls to register such functions.
This also gets rid of a DeprecationWarning for inspect.getargspec.
Signed-off-by: Wieland Hoffmann <themineo@gmail.com >
2017-05-01 18:27:07 +02:00
Sophist
9bb4802144
Add explanatory comments
2017-05-01 13:50:35 +01:00
Sophist
f4ce8e2ca6
Add tests for override with standard sep
2017-05-01 13:44:33 +01:00
Sophist
fca5061a11
Add seperator override tests for $lenmulti
2017-05-01 13:36:29 +01:00
Sophist
64e3c89180
Fix bug with default separator overridden.
2017-05-01 13:28:56 +01:00
Sophist
602dfbb36e
Add $lenmulti function
2017-04-29 14:01:50 +01:00
Sophist
60983a2a22
Fix copymerge
...
1. Newsvals deduped
2. Oldvals in original sequence
2017-04-29 14:01:50 +01:00
Sophist
0b4b14ce9c
Fix $inmulti as per #623
2017-04-29 14:01:22 +01:00
Wieland Hoffmann
a749e996e7
Remove unused imports
2017-04-17 18:14:46 +02:00
Wieland Hoffmann
06dd81b78e
Move the self.assertEqual(self.parser.eval(...), ...) pattern to a function
2017-04-17 18:14:20 +02:00
Sambhav Kothari
b0fcc9eedf
Fix test_script
2017-04-07 16:06:15 +05:30
Sambhav Kothari
428e168b87
Port Picard to Qt5
2017-04-03 16:45:42 +05:30
Laurent Monin
1013cd5ed7
Revert "PICARD-922: Fix inmulti behaviour with multi-values"
2017-02-15 11:38:35 +01:00
Antonio Larrosa
b7c324b4de
Fix PEP8 issues (mostly lines too large)
...
Add a few empty lines and wrap some lines so they're not so large
2017-02-13 15:41:20 +01:00
Antonio Larrosa
85282935f6
Add test for the inmulti function
...
Add a test to check that the inmulti function works as expected.
2017-02-12 20:47:15 +01:00
Sambhav Kothari
2ed4fbe8d4
Add tests for startswith and endswith functions
2017-01-19 02:18:09 +05:30
Laurent Monin
6cc8ebce72
Merge pull request #549 from samj1912/picard384
...
PICARD-384: Allow wildcards for unsetting certain tags
2017-01-14 15:44:36 +01:00
Sambhav Kothari
69c4abe2b5
Add tests for arbitrary number of arguments
2017-01-13 22:06:59 +01:00
Sambhav Kothari
d028418d2e
Add more tests for unset script function
2017-01-13 03:24:06 +05:30
Sambhav Kothari
fe65394c88
Add tests for unset script function
2017-01-13 03:06:55 +05:30
Philipp Wolfer
c6446626aa
Better fix for script functions with zero arguments.
2014-06-25 22:08:10 +02:00
Sophist
08ca42e90f
Add non-NAT and NAT tests
2014-05-14 07:40:11 +01:00
Sophist
dd03540f15
Add eq_all, ne_any as requested by Freso
2014-04-18 15:44:11 +01:00
Sophist
9291fcbb46
Add tests
2014-04-18 15:43:13 +01:00
Laurent Monin
7dd311697f
tests: PEP8 fixes
2013-07-03 03:37:24 +02:00
Michael Wiencek
d5509680ab
Fix tests
2013-06-09 01:45:18 -05:00
Chad Wilson
76faa5b8d7
$setlist -> $setmulti (dont refer to internal data structure in name)
2012-01-20 01:07:06 +08:00
Chad Wilson
38061aeda9
Changed to do nothing on an empty splitter; ValueErrors in the log are annoying.
2012-01-20 00:55:30 +08:00
Chad Wilson
cdddc819bc
failUnless -> assert (impending deprecation)
2012-01-20 00:41:58 +08:00
Chad Wilson
4cda132ad1
Add more tests for set and setlist
2012-01-20 00:40:32 +08:00
Chad Wilson
90dc12e19a
Add tests for $copy, $copymerge; improve test for $get.
2012-01-11 00:33:52 +08:00
Philipp Wolfer
7d5472093d
Fixed $firstwords script function and added some more scripting test cases.
2010-03-14 21:28:23 +01:00
Philipp Wolfer
de5dafc514
Fixed $truncate scripting function.
2010-03-14 21:02:23 +01:00
Lukáš Lalinský
0e3b1e28f9
Change function $gt(), $gte(), $lt(), $lte() to compare numbers, not strings. ( #2848 )
2007-05-14 18:15:40 +02:00
Lukáš Lalinský
757a7645f4
Simple mbxml test.
2007-02-24 15:41:02 +01:00
Lukáš Lalinský
314bdbea62
Fix test_script.py
2007-02-24 15:17:36 +01:00
Lukáš Lalinský
bbb22795da
Remove the old component system.
2007-01-28 12:54:31 +01:00
Lukáš Lalinský
09068a9c7f
Fix the script parser.
2007-01-20 19:05:58 +01:00
Lukáš Lalinský
49d9041bf7
New tagger script parser, new plugin system, options page with plugin list.
2007-01-20 17:59:45 +01:00