summaryrefslogtreecommitdiffstats
path: root/modules/migrations/github_test.go
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2019-08-14 08:16:12 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2019-08-14 14:16:12 +0800
commit46d6b92ad04df87560ee12dfee58a5e8222e52ff (patch)
tree55d7a5ebf3292b79af4eca564f4bdc3f353f58e8 /modules/migrations/github_test.go
parent99a004c343ff0770af4e209ca4634b83f153a23c (diff)
downloadgitea-46d6b92ad04df87560ee12dfee58a5e8222e52ff.tar.gz
gitea-46d6b92ad04df87560ee12dfee58a5e8222e52ff.zip
Import topics during migration (#7851)
* add GetTopics interface * CreateTopics * remove un-needed comment
Diffstat (limited to 'modules/migrations/github_test.go')
-rw-r--r--modules/migrations/github_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/migrations/github_test.go b/modules/migrations/github_test.go
index 54845ab426..62fce6bbcc 100644
--- a/modules/migrations/github_test.go
+++ b/modules/migrations/github_test.go
@@ -71,6 +71,10 @@ func TestGitHubDownloadRepo(t *testing.T) {
OriginalURL: "https://github.com/go-gitea/gitea",
}, repo)
+ topics, err := downloader.GetTopics()
+ assert.NoError(t, err)
+ assert.Contains(t, topics, "gitea")
+
milestones, err := downloader.GetMilestones()
assert.NoError(t, err)
// before this tool release, we have 39 milestones on github.com/go-gitea/gitea