Module ImportFrom alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias alias FunctionDef arguments args defaults body Expr Str Return Call NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr body If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Str Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareIn Str SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Call NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assert CompareEq SubscriptLoad NameLoad Index Str Str Assert CompareEq SubscriptLoad NameLoad Index Str Str Assert CompareEq SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Call NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assert CompareEq SubscriptLoad NameLoad Index Str Str Assert CompareEq SubscriptLoad NameLoad Index Str Str Assert CompareEq SubscriptLoad NameLoad Index Str Str decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Str Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareIn Str SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Str Str Str Str Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Str Str Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Assert CompareEq NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Str Str Str keyword Str Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assert Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Str Str Call NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Index Num Assert CompareEq NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Str Str Call NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Assert CompareEq NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Str Str Call NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Assert CompareEq NameLoad BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Str Str Call NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Call NameLoad Str decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Str Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareIn Str SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Call NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq Call NameLoad NameLoad Num Assert Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Call NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq Call NameLoad NameLoad Num Assert CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Str Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Call NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Assert CompareEq NameLoad BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Str Call NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Str Str Call NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Str Str Call NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Str Str Call NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Str Str Call NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareNotIn Str AttributeLoad NameLoad attr decorator_list decorator_list
N/A textwrap dedent click.testing CliRunner N/A pytest dennis.cmdline cli tests build_po_string nix_header runner N/A N/A N/A N/A N/A Creates a CliRunner N/A N/A CliRunner N/A N/A pytest fixture build_key_val N/A N/A text N/A N/A N/A pairs N/A N/A line N/A N/A text splitlines N/A N/A N/A : line N/A N/A N/A key val N/A N/A line split : 1 N/A N/A pairs N/A N/A N/A key strip N/A N/A val strip N/A pairs N/A TestStatus N/A N/A test_help N/A N/A self runner N/A N/A N/A result N/A N/A runner invoke cli N/A status --help N/A N/A N/A result exit_code 0 N/A N/A Usage N/A N/A N/A N/A result output splitlines N/A 0 N/A test_status_untranslated N/A N/A self runner tmpdir N/A N/A N/A po_file N/A build_po_string #: foo/foo.py:5
msgid "Foo bar baz"
msgstr ""
 N/A fn N/A N/A tmpdir join messages.po N/A N/A N/A fn write po_file N/A result N/A N/A runner invoke cli N/A status N/A str fn N/A N/A N/A result exit_code 0 N/A pairs N/A build_key_val N/A result output N/A N/A N/A pairs N/A Total strings 1 N/A N/A N/A pairs N/A Total translateable words 3 N/A N/A N/A pairs N/A Percentage 0% N/A test_status_translated N/A N/A self runner tmpdir N/A N/A N/A po_file N/A build_po_string #: foo/foo.py:5
msgid "Foo bar baz"
msgstr "Feh"
 N/A fn N/A N/A tmpdir join messages.po N/A N/A N/A fn write po_file N/A result N/A N/A runner invoke cli N/A status N/A str fn N/A N/A N/A result exit_code 0 N/A pairs N/A build_key_val N/A result output N/A N/A N/A pairs N/A Total strings 1 N/A N/A N/A pairs N/A Total translateable words 3 N/A N/A N/A pairs N/A Percentage 100% COMPLETE! N/A N/A TestTranslate N/A N/A test_help N/A N/A self runner N/A N/A N/A result N/A N/A runner invoke cli N/A translate --help N/A N/A N/A result exit_code 0 N/A N/A Usage N/A N/A N/A N/A result output splitlines N/A 0 N/A test_strings N/A N/A self runner N/A N/A N/A result N/A N/A runner invoke cli N/A translate -p shouty -s ou812 N/A N/A N/A result exit_code 0 N/A N/A OU812 N/A result output N/A test_no_paths N/A N/A self runner N/A N/A N/A result N/A N/A runner invoke cli N/A translate -p shouty N/A N/A N/A result exit_code 2 N/A last_line N/A N/A N/A N/A result output splitlines N/A -1 N/A N/A last_line Error: nothing to work on. Use --help for help. N/A test_pipe N/A N/A self runner N/A N/A N/A result N/A N/A runner invoke cli N/A translate -p shouty - input foo bar N/A N/A N/A result exit_code 0 N/A N/A N/A result output FOO BAR
 N/A test_pipeline N/A N/A self runner tmpdir N/A N/A N/A po_file N/A build_po_string #: foo/foo.py:5
msgid "Foo bar baz"
msgstr ""
 N/A fn N/A N/A tmpdir join messages.po N/A N/A N/A fn write po_file N/A N/A N/A po_file endswith msgstr ""
 N/A result N/A N/A runner invoke cli N/A translate -p shouty N/A str fn N/A N/A N/A result exit_code 0 N/A last_line N/A N/A N/A N/A N/A fn read splitlines N/A -1 N/A N/A last_line msgstr "FOO BAR BAZ" N/A test_bad_pipeline N/A N/A self runner tmpdir N/A N/A N/A po_file N/A build_po_string #: foo/foo.py:5
msgid "Foo bar baz"
msgstr ""
 N/A fn N/A N/A tmpdir join messages.po N/A N/A N/A fn write po_file N/A result N/A N/A runner invoke cli N/A translate -p triangle N/A str fn N/A N/A N/A result exit_code 2 N/A last_line N/A N/A N/A N/A result output splitlines N/A -1 N/A N/A last_line Error: pipeline "triangle" is not valid N/A test_nonexistent_file N/A N/A self runner tmpdir N/A N/A N/A fn N/A N/A tmpdir join missingfile.po N/A result N/A N/A runner invoke cli N/A translate -p shouty N/A str fn N/A N/A N/A result exit_code 2 N/A last_line N/A N/A N/A N/A result output splitlines N/A -1 N/A N/A last_line N/A Error: file %s does not exist. N/A str fn N/A test_plurals N/A N/A self runner tmpdir N/A N/A N/A po_file N/A build_po_string #: test_project/base/views.py:12 test_project/base/views.py:22
#, python-format
msgid "%(num)s apple"
msgid_plural "%(num)s apples"
msgstr[0] ""
msgstr[1] ""
 N/A fn N/A N/A tmpdir join django.po N/A N/A N/A fn write po_file N/A result N/A N/A runner invoke cli N/A translate -p shouty N/A str fn N/A N/A N/A result exit_code 0 N/A pot_file N/A nix_header N/A N/A fn read N/A N/A pot_file N/A dedent             #: test_project/base/views.py:12 test_project/base/views.py:22
            #, python-format
            msgid "%(num)s apple"
            msgid_plural "%(num)s apples"
            msgstr[0] "%(NUM)S APPLE"
            msgstr[1] "%(NUM)S APPLES"
             N/A N/A TestLint N/A N/A test_help N/A N/A self runner N/A N/A N/A result N/A N/A runner invoke cli N/A lint --help N/A N/A N/A result exit_code 0 N/A N/A Usage N/A N/A N/A N/A result output splitlines N/A 0 N/A test_basic_linting N/A N/A self runner tmpdir N/A N/A N/A po_file N/A build_po_string #: foo/foo.py:5
msgid "Foo bar baz"
msgstr "Foo"
 N/A fn N/A N/A tmpdir join messages.po N/A N/A N/A fn write po_file N/A result N/A N/A runner invoke cli N/A lint N/A str fn N/A N/A N/A result exit_code 0 N/A output_lines N/A N/A N/A result output splitlines N/A N/A N/A len output_lines 1 N/A N/A N/A N/A output_lines N/A 0 startswith dennis version N/A test_linting_fail N/A N/A self runner tmpdir N/A N/A N/A po_file N/A build_po_string #: foo/foo.py:5
msgid "Foo %(foo)s bar baz"
msgstr "Foo %(bar)s"
 N/A fn N/A N/A tmpdir join messages.po N/A N/A N/A fn write po_file N/A result N/A N/A runner invoke cli N/A lint N/A str fn N/A N/A N/A result exit_code 1 N/A output_lines N/A N/A N/A result output splitlines N/A N/A N/A len output_lines 16 N/A N/A E201: invalid variables: %(bar)s N/A result output N/A test_no_files_to_work_on N/A N/A self runner N/A N/A N/A result N/A N/A runner invoke cli N/A lint foo N/A N/A N/A result exit_code 2 N/A N/A nothing to work on. N/A result output N/A test_nonexistent_file N/A N/A self runner tmpdir N/A N/A N/A fn N/A N/A tmpdir join missingfile.po N/A result N/A N/A runner invoke cli N/A lint N/A str fn N/A N/A N/A result exit_code 2 N/A last_line N/A N/A N/A N/A result output splitlines N/A -1 N/A N/A last_line N/A Error: file "%s" does not exist. N/A str fn N/A test_quiet N/A N/A self runner tmpdir N/A N/A N/A po_file N/A build_po_string #: foo/foo.py:5
msgid "Foo bar baz"
msgstr "Foo"
 N/A fn N/A N/A tmpdir join messages.po N/A N/A N/A fn write po_file N/A result N/A N/A runner invoke cli N/A lint --quiet N/A str fn N/A N/A N/A result exit_code 0 N/A N/A N/A result output N/A test_rules N/A N/A self runner tmpdir N/A N/A N/A po_file N/A build_po_string #: foo/foo.py:5
msgid "Foo %(bar)s baz"
msgstr "FOO %(bar) BAZ"
 N/A fn N/A N/A tmpdir join messages.po N/A N/A N/A fn write po_file N/A result N/A N/A runner invoke cli N/A lint --rules E101 N/A str fn N/A N/A N/A result exit_code 1 N/A N/A E101: type missing: %(bar) N/A result output N/A test_template_rules N/A N/A self runner tmpdir N/A N/A N/A po_file N/A build_po_string #: foo/foo.py:5
msgid "Foo %(o)s baz"
msgstr ""
 N/A fn N/A N/A tmpdir join messages.pot N/A N/A N/A fn write po_file N/A result N/A N/A runner invoke cli N/A lint --rules W501 N/A str fn N/A N/A N/A result exit_code 0 N/A N/A W501: one character variable name "o" N/A result output N/A test_nonexisting_rule N/A N/A self runner tmpdir N/A N/A N/A po_file N/A build_po_string #: foo/foo.py:5
msgid "Foo %(o)s baz"
msgstr ""
 N/A fn N/A N/A tmpdir join messages.pot N/A N/A N/A fn write po_file N/A result N/A N/A runner invoke cli N/A lint --rules foo N/A str fn N/A N/A N/A result exit_code 2 N/A N/A Error: invalid rules: foo. N/A result output N/A test_excludes N/A N/A self runner tmpdir N/A N/A N/A po_file N/A build_po_string #: foo/foo.py:5
msgid "Foo %(o)s baz"
msgstr ""
 N/A fn N/A N/A tmpdir join messages.pot N/A N/A N/A fn write po_file N/A result N/A N/A runner invoke cli N/A lint --excluderules W501 N/A str fn N/A N/A N/A result exit_code 0 N/A N/A W501: one character variable name "o" N/A result output N/A N/A