9ed8dabdc665933cfa86deddceb481d30c3d60b7,tests/test_db.py,,test_write_read_gzip,#Any#,19
Before Change
def test_write_read_gzip(tmp_path):
db_path = tmp_path / "prova.json.gz"
db.register(db_path, "https://alink", 1)
db.write(db_path, range(1, 8))
assert list(db.read(db_path)) == [1, 2, 3, 4, 5, 6, 7]
After Change
def test_write_read_gzip(mock_db):
db_path = mock_db("prova.json.gz")
db.write(db_path, range(1, 8))
assert list(db.read(db_path)) == [1, 2, 3, 4, 5, 6, 7]
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 5
Instances
Project Name: mozilla/bugbug
Commit Name: 9ed8dabdc665933cfa86deddceb481d30c3d60b7
Time: 2019-03-11
Author: mcastelluccio@mozilla.com
File Name: tests/test_db.py
Class Name:
Method Name: test_write_read_gzip
Project Name: mozilla/bugbug
Commit Name: 9ed8dabdc665933cfa86deddceb481d30c3d60b7
Time: 2019-03-11
Author: mcastelluccio@mozilla.com
File Name: tests/test_db.py
Class Name:
Method Name: test_append_zstd
Project Name: mozilla/bugbug
Commit Name: 9ed8dabdc665933cfa86deddceb481d30c3d60b7
Time: 2019-03-11
Author: mcastelluccio@mozilla.com
File Name: tests/test_db.py
Class Name:
Method Name: test_append
Project Name: mozilla/bugbug
Commit Name: 9ed8dabdc665933cfa86deddceb481d30c3d60b7
Time: 2019-03-11
Author: mcastelluccio@mozilla.com
File Name: tests/test_db.py
Class Name:
Method Name: test_write_read_zstd
Project Name: mozilla/bugbug
Commit Name: 9ed8dabdc665933cfa86deddceb481d30c3d60b7
Time: 2019-03-11
Author: mcastelluccio@mozilla.com
File Name: tests/test_db.py
Class Name:
Method Name: test_write_read
Project Name: mozilla/bugbug
Commit Name: 9ed8dabdc665933cfa86deddceb481d30c3d60b7
Time: 2019-03-11
Author: mcastelluccio@mozilla.com
File Name: tests/test_db.py
Class Name:
Method Name: test_delete_gzip
Project Name: mozilla/bugbug
Commit Name: 9ed8dabdc665933cfa86deddceb481d30c3d60b7
Time: 2019-03-11
Author: mcastelluccio@mozilla.com
File Name: tests/test_db.py
Class Name:
Method Name: test_delete