Fix tests on Windows

This commit is contained in:
ziajka committed 2018-06-28 09:16:51 +02:00
1 parent 41026c74c1
commit dd845eb096
2 files changed
+5 -2

No files matched your search

+4 -1
View File
@@ -15,8 +15,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
from gns3server.utils.static import get_static_path
def test_get_static_path():
assert get_static_path('test').endswith('gns3server/static/test')
expected = os.path.join('gns3server', 'static', 'test')
assert get_static_path('test').endswith(expected)