File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
- # clip2imgur <img src =" ./icon.png " height =40 vertical- align =bottom >
1
+ < h1 > clip2imgur <img src =" ./icon.png " height =" 36 " align =" right " ></ h1 >
2
2
3
3
> A simple macOS command line tool for uploading your screenshots from clipboard
4
4
> to Imgur
5
5
6
- [ ![ Build Status] ( https://travis-ci.org/xiaohk/clip2imgur.svg?branch=master )] ( https://travis-ci.org/xiaohk/clip2imgur )
7
- <a href =" https://swift.org/package-manager/ " ><img src =" https://img.shields.io/badge/SPM-ready-red.svg " ></a >
6
+ [ ![ Github Actions Status] ( https://github.com/xiaohk/clip2imgur/workflows/build/badge.svg )] ( https://github.com/xiaohk/clip2imgur/actions/workflows/build.yml )
8
7
[ ![ License] ( https://img.shields.io/badge/License-MIT-yellowgreen )] ( https://github.com/xiaohk/clip2imgur/blob/master/LICENSE )
8
+ [ ![ pypi] ( https://img.shields.io/pypi/v/clip2imgur?color=blue )] ( https://pypi.python.org/pypi/clip2imgur )
9
9
[ ![ DOI] ( https://zenodo.org/badge/DOI/10.5281/zenodo.5348350.svg )] ( https://doi.org/10.5281/zenodo.5348350 )
10
10
11
11
## Usage
Original file line number Diff line number Diff line change 4
4
5
5
6
6
import unittest
7
-
7
+ from unittest . mock import patch
8
8
from clip2imgur import clip2imgur
9
9
10
10
@@ -17,7 +17,8 @@ def setUp(self):
17
17
def tearDown (self ):
18
18
"""Tear down test fixtures, if any."""
19
19
20
- def test_clip2imgur (self ):
20
+ @patch ("builtins.input" , return_value = "no" )
21
+ def test_clip2imgur (self , mock_input ):
21
22
"""Test something."""
22
23
cli = clip2imgur .Clip2imgurApp ()
23
24
cli .run ()
You can’t perform that action at this time.
0 commit comments