<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-coveragepy-git.git/tests/test_html.py, branch nedbat/bug989</title>
<subtitle>github.com: nedbat/coveragepy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/'/>
<entry>
<title>fix: don't overwrite a .gitignore in the html output directory. #1244</title>
<updated>2021-11-13T00:06:14+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-11-13T00:06:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=b471e55a92718fa4711c040edc88308d5101fc86'/>
<id>b471e55a92718fa4711c040edc88308d5101fc86</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor(test): use the expected name for initializing tests.</title>
<updated>2021-11-07T22:41:22+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-11-07T22:41:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=2a2293cafb6b322eb3329b5a7abd98435c56f361'/>
<id>2a2293cafb6b322eb3329b5a7abd98435c56f361</id>
<content type='text'>
Originally I used setup_test because something went wrong when I used setUp.  I
wrote https://github.com/pytest-dev/pytest/issues/8424 about it.  There they say
to use `-p no:nose` to disable nose interpretation.

But now I simply went back to setUp, and all seems well? Not sure what changed,
but using the expected name is better.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Originally I used setup_test because something went wrong when I used setUp.  I
wrote https://github.com/pytest-dev/pytest/issues/8424 about it.  There they say
to use `-p no:nose` to disable nose interpretation.

But now I simply went back to setUp, and all seems well? Not sure what changed,
but using the expected name is better.
</pre>
</div>
</content>
</entry>
<entry>
<title>style: remove implicit string concatenation</title>
<updated>2021-10-30T13:28:50+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-10-30T13:28:50+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=3d962a30a3f659978b96ef59811e8062867b358b'/>
<id>3d962a30a3f659978b96ef59811e8062867b358b</id>
<content type='text'>
.. and also add trailing commas where needed to remove ambiguity.

I used semgrep with this config:
```
rules:
  - id: implicit-string-concatenation
    pattern: |
      "$X" "$Y"
    languages:
      - python
    message: string cat BAD
    severity: INFO
```

Running it showed this:

```
$ semgrep --config=../lab/string-cat.yml coverage tests doc ci igor.py setup.py __main__.py
Running 1 rules...
setup.py
severity:info rule:lab.implicit-string-concatenation: string cat BAD
128:            'https://tidelift.com/subscription/pkg/pypi-coverage'
129:            '?utm_source=pypi-coverage&amp;utm_medium=referral&amp;utm_campaign=pypi'

tests/test_api.py
severity:info rule:lab.implicit-string-concatenation: string cat BAD
319:            "!coverage.py: This is a private format, don't read it directly!"
320:            '{"lines":{"/private/tmp/foo.py":[1,5,2,3]}}'

tests/test_html.py
severity:info rule:lab.implicit-string-concatenation: string cat BAD
614:            ('&lt;span class="key"&gt;if&lt;/span&gt; &lt;span class="num"&gt;1&lt;/span&gt; '
615:             '&lt;span class="op"&gt;&amp;lt;&lt;/span&gt; &lt;span class="num"&gt;2&lt;/span&gt;'),
--------------------------------------------------------------------------------
616:            ('    &lt;span class="nam"&gt;a&lt;/span&gt; '
617:             '&lt;span class="op"&gt;=&lt;/span&gt; &lt;span class="num"&gt;3&lt;/span&gt;'),
--------------------------------------------------------------------------------
665:            ('&lt;span class="key"&gt;if&lt;/span&gt; &lt;span class="nam"&gt;x&lt;/span&gt; '
666:             '&lt;span class="op"&gt;&amp;lt;&lt;/span&gt; &lt;span class="num"&gt;2&lt;/span&gt;'),
--------------------------------------------------------------------------------
667:            ('    &lt;span class="nam"&gt;a&lt;/span&gt; &lt;span class="op"&gt;=&lt;/span&gt; '
668:             '&lt;span class="num"&gt;3&lt;/span&gt;'),
--------------------------------------------------------------------------------
949:            ('&lt;span class="key"&gt;if&lt;/span&gt; &lt;span class="num"&gt;1&lt;/span&gt; '
950:             '&lt;span class="op"&gt;&amp;lt;&lt;/span&gt; &lt;span class="num"&gt;2&lt;/span&gt;'),
--------------------------------------------------------------------------------
951:            ('    &lt;span class="nam"&gt;a&lt;/span&gt; &lt;span class="op"&gt;=&lt;/span&gt; '
952:             '&lt;span class="num"&gt;3&lt;/span&gt;'),
ran 1 rules on 134 files: 8 findings
```

This wasn't all of the instances, so I wrote a bug report: https://github.com/returntocorp/semgrep/issues/4184
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
.. and also add trailing commas where needed to remove ambiguity.

I used semgrep with this config:
```
rules:
  - id: implicit-string-concatenation
    pattern: |
      "$X" "$Y"
    languages:
      - python
    message: string cat BAD
    severity: INFO
```

Running it showed this:

```
$ semgrep --config=../lab/string-cat.yml coverage tests doc ci igor.py setup.py __main__.py
Running 1 rules...
setup.py
severity:info rule:lab.implicit-string-concatenation: string cat BAD
128:            'https://tidelift.com/subscription/pkg/pypi-coverage'
129:            '?utm_source=pypi-coverage&amp;utm_medium=referral&amp;utm_campaign=pypi'

tests/test_api.py
severity:info rule:lab.implicit-string-concatenation: string cat BAD
319:            "!coverage.py: This is a private format, don't read it directly!"
320:            '{"lines":{"/private/tmp/foo.py":[1,5,2,3]}}'

tests/test_html.py
severity:info rule:lab.implicit-string-concatenation: string cat BAD
614:            ('&lt;span class="key"&gt;if&lt;/span&gt; &lt;span class="num"&gt;1&lt;/span&gt; '
615:             '&lt;span class="op"&gt;&amp;lt;&lt;/span&gt; &lt;span class="num"&gt;2&lt;/span&gt;'),
--------------------------------------------------------------------------------
616:            ('    &lt;span class="nam"&gt;a&lt;/span&gt; '
617:             '&lt;span class="op"&gt;=&lt;/span&gt; &lt;span class="num"&gt;3&lt;/span&gt;'),
--------------------------------------------------------------------------------
665:            ('&lt;span class="key"&gt;if&lt;/span&gt; &lt;span class="nam"&gt;x&lt;/span&gt; '
666:             '&lt;span class="op"&gt;&amp;lt;&lt;/span&gt; &lt;span class="num"&gt;2&lt;/span&gt;'),
--------------------------------------------------------------------------------
667:            ('    &lt;span class="nam"&gt;a&lt;/span&gt; &lt;span class="op"&gt;=&lt;/span&gt; '
668:             '&lt;span class="num"&gt;3&lt;/span&gt;'),
--------------------------------------------------------------------------------
949:            ('&lt;span class="key"&gt;if&lt;/span&gt; &lt;span class="num"&gt;1&lt;/span&gt; '
950:             '&lt;span class="op"&gt;&amp;lt;&lt;/span&gt; &lt;span class="num"&gt;2&lt;/span&gt;'),
--------------------------------------------------------------------------------
951:            ('    &lt;span class="nam"&gt;a&lt;/span&gt; &lt;span class="op"&gt;=&lt;/span&gt; '
952:             '&lt;span class="num"&gt;3&lt;/span&gt;'),
ran 1 rules on 134 files: 8 findings
```

This wasn't all of the instances, so I wrote a bug report: https://github.com/returntocorp/semgrep/issues/4184
</pre>
</div>
</content>
</entry>
<entry>
<title>feat: html output directory gets a .gitignore file. #1244</title>
<updated>2021-10-27T23:03:31+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-10-27T22:57:56+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=ea6906b092d9bb09285094eee94e322d2cb413a5'/>
<id>ea6906b092d9bb09285094eee94e322d2cb413a5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(html): fix a few problems with the html report</title>
<updated>2021-10-24T00:01:48+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-10-23T23:01:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=bd929f953734f3f5d6cf3e0534aa573b44fc45e2'/>
<id>bd929f953734f3f5d6cf3e0534aa573b44fc45e2</id>
<content type='text'>
- highlights weren't showing

- anchored lines were not visible

- some j/k motions were broken

- clicking the big buttons at the top didn't work
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- highlights weren't showing

- anchored lines were not visible

- some j/k motions were broken

- clicking the big buttons at the top didn't work
</pre>
</div>
</content>
</entry>
<entry>
<title>test: sometimes pytest directories have a "popen" component</title>
<updated>2021-10-23T21:34:53+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-10-23T21:24:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=c8ac44828eddfcb444dcdcfc7668370054e96cb9'/>
<id>c8ac44828eddfcb444dcdcfc7668370054e96cb9</id>
<content type='text'>
Those have to be scrubbed too. I'm not sure why it's sometimes there, sometimes
not.  Maybe xdist?
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Those have to be scrubbed too. I'm not sure why it's sometimes there, sometimes
not.  Maybe xdist?
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor: no more need for a search path for static files</title>
<updated>2021-10-23T21:34:53+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-10-23T15:27:52+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=bb2bc1a6295ee8fc4f3cccfe72aeb3d3ae5246cb'/>
<id>bb2bc1a6295ee8fc4f3cccfe72aeb3d3ae5246cb</id>
<content type='text'>
We used to search an OS-specific directory in addition to our own, specifically
so that Debian could use an OS-installed copy of jQuery and its plugins.  But we
no longer have jQuery or any third-party JavaScript code, so we don't need to
search the Debian directories.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We used to search an OS-specific directory in addition to our own, specifically
so that Debian could use an OS-installed copy of jQuery and its plugins.  But we
no longer have jQuery or any third-party JavaScript code, so we don't need to
search the Debian directories.
</pre>
</div>
</content>
</entry>
<entry>
<title>test: remove some obsolete HTML scrubs</title>
<updated>2021-10-17T15:05:45+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-10-17T15:03:28+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=b76d2ccdfd085a2606e8ddc63e930b83c4ebcab5'/>
<id>b76d2ccdfd085a2606e8ddc63e930b83c4ebcab5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test: don't show these functions when HTML gold files fail</title>
<updated>2021-10-17T15:05:45+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-10-17T14:54:04+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=cd384fe19cc5a43b5f99a3996ebdef7313f82ead'/>
<id>cd384fe19cc5a43b5f99a3996ebdef7313f82ead</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test: html scrubs need to account for pytest dir naming</title>
<updated>2021-10-17T15:05:45+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-10-17T14:45:42+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=4da241dc774905ca6b071f584eac19d3fed4523d'/>
<id>4da241dc774905ca6b071f584eac19d3fed4523d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
