mirror of
https://github.com/haiwen/seahub.git
synced 2025-05-12 18:05:05 +00:00
fix test
This commit is contained in:
parent
2000c9b792
commit
8c6ae8676e
@ -1,7 +1,7 @@
|
||||
import React, { Component } from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { Router, navigate } from '@reach/router';
|
||||
import { siteRoot, canAddRepo } from './utils/constants';
|
||||
import { siteRoot, canAddRepo, isDocs } from './utils/constants';
|
||||
import { Utils } from './utils/utils';
|
||||
import SystemNotification from './components/system-notification';
|
||||
import SidePanel from './components/side-panel';
|
||||
@ -61,7 +61,9 @@ class App extends Component {
|
||||
// get reviews
|
||||
// TODO: need refactor later
|
||||
let href = window.location.href.split('/');
|
||||
this.getDrafts();
|
||||
if (isDocs) {
|
||||
this.getDrafts();
|
||||
}
|
||||
this.setState({currentTab: href[href.length - 2]});
|
||||
}
|
||||
|
||||
|
@ -60,9 +60,7 @@ class WikisViewTest(BaseTestCase):
|
||||
assert len(Wiki.objects.all()) == 0
|
||||
|
||||
resp = self.client.post(self.url, {
|
||||
'name': 'test wiki',
|
||||
'repo_id': '',
|
||||
'use_exist_repo': 'false',
|
||||
'repo_id': self.repo.id,
|
||||
})
|
||||
self.assertEqual(200, resp.status_code)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user