Skip to content

Commit 335a174

Browse files
author
Andrey Fedoseev
committed
Remove unnecessary comparison from tests
1 parent 7062fe7 commit 335a174

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

static_precompiler/tests/test_coffeescript.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ def test_sourcemap(monkeypatch, tmpdir):
2929
monkeypatch.setattr("static_precompiler.settings.ROOT", tmpdir.strpath)
3030

3131
compiler = compilers.CoffeeScript(sourcemap_enabled=False)
32-
compiler.compile_file("scripts/test.coffee") == "COMPILED/scripts/test.js"
32+
compiler.compile_file("scripts/test.coffee")
3333
full_output_path = compiler.get_full_output_path("scripts/test.coffee")
3434
assert not os.path.exists(os.path.splitext(full_output_path)[0] + ".map")
3535

3636
compiler = compilers.CoffeeScript(sourcemap_enabled=True)
37-
compiler.compile_file("scripts/test.coffee") == "COMPILED/scripts/test.js"
37+
compiler.compile_file("scripts/test.coffee")
3838
full_output_path = compiler.get_full_output_path("scripts/test.coffee")
3939
assert os.path.exists(os.path.splitext(full_output_path)[0] + ".map")
4040

static_precompiler/tests/test_less.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ def test_sourcemap(monkeypatch, tmpdir):
4040
monkeypatch.setattr("static_precompiler.utils.convert_urls", lambda *args: None)
4141

4242
compiler = compilers.LESS(sourcemap_enabled=False)
43-
compiler.compile_file("styles/test.less") == "COMPILED/styles/test.css"
43+
compiler.compile_file("styles/test.less")
4444
full_output_path = compiler.get_full_output_path("styles/test.less")
4545
assert not os.path.exists(full_output_path + ".map")
4646

4747
compiler = compilers.LESS(sourcemap_enabled=True)
48-
compiler.compile_file("styles/test.less") == "COMPILED/styles/test.css"
48+
compiler.compile_file("styles/test.less")
4949
full_output_path = compiler.get_full_output_path("styles/test.less")
5050
assert os.path.exists(full_output_path + ".map")
5151

static_precompiler/tests/test_scss.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ def test_sourcemap(monkeypatch, tmpdir):
3535
monkeypatch.setattr("static_precompiler.utils.convert_urls", lambda *args: None)
3636

3737
compiler = compilers.SCSS(sourcemap_enabled=False)
38-
compiler.compile_file("styles/test.scss") == "COMPILED/styles/test.css"
38+
compiler.compile_file("styles/test.scss")
3939
full_output_path = compiler.get_full_output_path("styles/test.scss")
4040
assert not os.path.exists(full_output_path + ".map")
4141

4242
compiler = compilers.SCSS(sourcemap_enabled=True)
43-
compiler.compile_file("styles/test.scss") == "COMPILED/styles/test.css"
43+
compiler.compile_file("styles/test.scss")
4444
full_output_path = compiler.get_full_output_path("styles/test.scss")
4545
assert os.path.exists(full_output_path + ".map")
4646

0 commit comments

Comments
 (0)