File: test_copybutton.py

package info (click to toggle)
python-easydev 0.13.3%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 636 kB
  • sloc: python: 1,904; makefile: 116; javascript: 49
file content (14 lines) | stat: -rw-r--r-- 404 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from easydev import copybutton


def test_copybutton():
    copybutton.get_copybutton_path()


def test_copy_javascript_into_static_path():
    copybutton.copy_javascript_into_static_path("_static", copybutton.get_copybutton_path())
    copybutton.copy_javascript_into_static_path("_static", copybutton.get_copybutton_path())
    import os

    os.remove("_static/copybutton.js")
    os.rmdir("_static")