Skip to content

Commit 7631773

Browse files
committed
Update test
Signed-off-by: Jay Wang <jay@zijie.wang>
1 parent f7f6699 commit 7631773

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# clip2imgur <img src="./icon.png" height=40 vertical-align=bottom>
1+
<h1>clip2imgur <img src="./icon.png" height="36" align="right"></h1>
22

33
> A simple macOS command line tool for uploading your screenshots from clipboard
44
> to Imgur
55
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)
87
[![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)
99
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5348350.svg)](https://doi.org/10.5281/zenodo.5348350)
1010

1111
## Usage

python/tests/test_clip2imgur.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
import unittest
7-
7+
from unittest.mock import patch
88
from clip2imgur import clip2imgur
99

1010

@@ -17,7 +17,8 @@ def setUp(self):
1717
def tearDown(self):
1818
"""Tear down test fixtures, if any."""
1919

20-
def test_clip2imgur(self):
20+
@patch("builtins.input", return_value="no")
21+
def test_clip2imgur(self, mock_input):
2122
"""Test something."""
2223
cli = clip2imgur.Clip2imgurApp()
2324
cli.run()

0 commit comments

Comments
 (0)