Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Tests fix attempt

Tests wip

wip

Restore tests paths

Remove default instance

wip
  • Loading branch information
keianhzo committed Dec 5, 2023
1 parent ab38b01 commit 843c745
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion addons/io_hubs_addon/icons.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def load_icons():

def unload_icons():
global __hubs_icons
__hubs_icons["hubs"].close()
bpy.utils.previews.remove(__hubs_icons["hubs"])
del __hubs_icons


Expand Down
7 changes: 0 additions & 7 deletions addons/io_hubs_addon/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,13 +312,6 @@ def register():
bpy.utils.register_class(UninstallDepsOperator)
bpy.utils.register_class(DeleteProfileOperator)

prefs = get_addon_pref(bpy.context)
if len(prefs.hubs_instances) == 0:
new_instance = prefs.hubs_instances.add()
new_instance.name = "Demo Hub"
new_instance.url = "https://hubs.mozilla.com/demo"
prefs.hubs_instance_idx = len(prefs.hubs_instances) - 1


def unregister():
bpy.utils.unregister_class(DeleteProfileOperator)
Expand Down
7 changes: 3 additions & 4 deletions tests/test/test_export.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ describe('Exporter', function () {
describe(blenderVersion + '_export' + variant[0], function () {
blenderSampleScenes.forEach((scene) => {
it(scene, function (done) {
let outDirName = 'out' + blenderVersion + variant[0];
let blenderPath = `scenes/${scene}.blend`;
let ext = args.indexOf('--glb') === -1 ? '.gltf' : '.glb';
let outDirPath = path.resolve(OUT_PREFIX, 'scenes', outDirName);
let outDirPath = path.resolve(OUT_PREFIX, 'scenes');
fs.mkdirSync(outDirPath, { recursive: true });
let dstPath = path.resolve(outDirPath, `${scene}${ext}`);
utils.blenderFileToGltf(blenderVersion, blenderPath, outDirPath, (error) => {
if (error)
Expand All @@ -52,8 +52,7 @@ describe('Exporter', function () {
});

describe(blenderVersion + '_export_results', function () {
let outDirName = 'out' + blenderVersion;
let outDirPath = path.resolve(OUT_PREFIX, 'scenes', outDirName);
let outDirPath = path.resolve(OUT_PREFIX, 'scenes');

it('can export link', function () {
let gltfPath = path.resolve(outDirPath, 'link.gltf');
Expand Down

0 comments on commit 843c745

Please sign in to comment.